Exchanges an authorization code and PKCE code verifier for an organization MCP Bearer access token. Used by "claude mcp login" and remote AI agents.
/api/mcp/oauth/tokenMust be "authorization_code"
Transient authorization code from /auth/mcp/authorize
Client ID issued by /api/mcp/oauth/register (or sent via HTTP Basic auth)
Callback URL matching the authorize request
PKCE S256 code verifier secret (RFC 7636)
"1" = Success, "0" = Failure.
The response data payload.
Was this endpoint guide helpful?