v2
mcp
mcp
Exchange OAuth code for MCP tokens
Exchange the authorization code for tokens and store the credential.
The frontend calls this after receiving the OAuth code from the popup. On success, subsequent /discover-tools calls for the same server URL will automatically use the stored credential.
post/api/mcp/oauth/callback
Request body
Response
Successful Response