Skip to content
Verify a saved MCP setup

Verify a saved MCP setup

Retry verification using the saved integration and its saved OAuth app credentials.

POST/api/v1/mcp-integrations/:key/verify-setup

Request#

TypeScript
const 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#

keystringrequired

The 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.

200 response
{
  "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.