MCP OAuth Callback
MCP OAuth Callback
OAuth callback endpoint for completing MCP server OAuth flows.
POST
MCP OAuth Callback
Authentication
Requires JWT token or Platform API key viaAuthorization: Bearer <token> header.
string
required
MCP server UUID
string
required
OAuth authorization code from provider
string
OAuth state parameter (for CSRF protection)
Example Request
Example Response
OAuth Flow
This endpoint is step 4 in the OAuth flow:- User calls
/mcp/servers/{id}/oauth/authorize - OAuth provider shows authorization page
- User grants permissions
- Provider redirects here with authorization code ← This endpoint
- Backend exchanges code for access token
- MCP server configured with credentials
Response Fields
string
required
Success message
string
required
UUID of the MCP server that was authenticated
string
required
OAuth provider name (e.g.,
"google", "github", "slack")string
required
ISO 8601 timestamp of when authentication completed

