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
Changes
Changed in 2 of the 165 revisions of this API.12
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ●
added the new
device_codeenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●