Skip to content
Inspect MCP OAuth metadata

Inspect MCP OAuth metadata

Inspect an MCP server's advertised OAuth settings, optionally using an issuer override.

POST/api/v1/mcp-integrations/detect-oauth

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/mcp-integrations/detect-oauth", {
  method: "POST",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "url": "https://mcp.example.com/mcp"
}),
});
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.

Request body#

urlstringrequired

MCP server URL.

authorizationServerUrlstring

OAuth issuer override.

Responses#

Returns registration strategy, advertised scopes, issuer, and whether an owner app needs a client secret.

200 response
{
  "registration": "owner_app",
  "scopes": [
    "read"
  ],
  "issuer": "https://auth.example.com",
  "clientSecretRequired": true
}
More about this endpoint

Contacts metadata endpoints without registering an OAuth client. Scopes may be an empty array when the server advertises none.