Inspect MCP OAuth metadata
Inspect an MCP server's advertised OAuth settings, optionally using an issuer override.
POST
/api/v1/mcp-integrations/detect-oauthconst 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#
urlstringrequiredMCP server URL.
authorizationServerUrlstringOAuth issuer override.
Responses#
Returns registration strategy, advertised scopes, issuer, and whether an owner app needs a client secret.
{
"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.