Skip to main content
POST
Finish connecting an MCP server with OAuth

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
state
string
required
Required string length: 1 - 8192
code
string
Maximum string length: 4096
error
string
Maximum string length: 256
iss
string

The response's iss parameter (RFC 9207), exactly as received; omitted when the response carried none.

Maximum string length: 2048

Response

OK

mcp_server_id
string<uuid> | null
required
oauth_error
string | null
required
Pattern: ^[A-Za-z0-9_.-]{1,64}$
status
enum<string>
required
Available options:
connected,
invalid_state,
state_expired,
other_user,
not_authorized,
iss_mismatch,
authorization_failed,
exchange_failed,
token_invalid,
server_changed