MCP

Handle MCP server OAuth2 callback

Changed on
get/api/experimental/mcp/servers/{mcpServer}/oauth2/callback

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/experimental/mcp/servers/{mcpServer}/oauth2/callback
  • Auth
    API key in header Coder-Session-Token

Path parameters

mcpServerstring uuid required

MCP server config ID

Query parameters

codestring

Authorization code issued by the provider. Required together with state on success.

statestring

Opaque state issued by the connect endpoint. Required together with code on success.

errorstring

Provider error code. Present instead of code when authorization fails.

error_descriptionstring

Provider error description accompanying error.

Response

OK

Changes