latestOpenAPI 3.1.02026-08-223321,1001.6 MB

2134ebffd1ef

integrations-v3

Mcp Oauth Callback

Receive the OAuth provider's redirect, exchange the code, render HTML.

Has no session auth — that's by design. This endpoint is the public OAuth redirect_uri; the unguessable state parameter is the defense (RFC 6749 §10.12). The endpoint stores the exchanged tokens on the pending OAuth row keyed by state and returns an HTML page that postMessages the opener and closes the tab.

Emits a per-response Content-Security-Policy: script-src 'nonce-…' header whose nonce whitelists exactly the inline postMessage script in the rendered body. The default app-wide CSP is script-src 'self' which would otherwise block the inline script.

get/v3/integrations/mcp/oauth/callback

Query parameters

statestring nullable
codestring nullable
errorstring nullable
error_descriptionstring nullable

Response

Successful Response

{"stackTrail":"paths:/v3/integrations/mcp/oauth/callback:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}