Verify a saved MCP setup
Retry verification using the saved integration and its saved OAuth app credentials.
/api/v1/mcp-integrations/:key/verify-setupconst response = await fetch("https://api.smallworld.sh/api/v1/mcp-integrations/example-mcp/verify-setup", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Path parameters#
keystringrequiredThe saved integration's command key, URL-encoded.
Responses#
Returns status, message, registration, and optional clientSecretRequired. Status is ready, unverified, needs_setup, credentials_required, provider_restricted, or verification_failed. HTTP 200 can report unsuccessful setup; inspect status. ready and unverified permit activation.
{
"status": "unverified",
"message": "OAuth app configured. Connection not yet tested.",
"registration": "owner_app",
"clientSecretRequired": true
}
More about this endpoint
Verification can contact the MCP and OAuth servers and register an OAuth client. Detection only discovers metadata; it never registers a client. Identical setup checks share cached work under the existing retry rules.
The saved setup status is refreshed, and existing registration/retry behavior is preserved.