mcp_oauth
MCP OAuth callback
Handles OAuth callback, exchanges code for tokens, returns HTML that posts message to opener
get/mcp/oauth/callback
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/mcp/oauth/callback
- Auth: none required
Query parameters
codestring required
OAuth authorization code
statestring required
CSRF state token
Response
HTML page with JavaScript that posts tokens to opener window and closes
Changes
No recorded changes to this operation across all 297 revisions of this API.