v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
mcp
mcp

Initiate OAuth login for an MCP server

Discover OAuth metadata from the MCP server and return a login URL.

  1. Discovers the protected-resource metadata (RFC 9728)
  2. Fetches the authorization server metadata (RFC 8414)
  3. Performs Dynamic Client Registration (RFC 7591) if available
  4. Returns the authorization URL for the frontend to open in a popup
post/api/mcp/oauth/login

Request body

server_urlstring required

URL of the MCP server that requires OAuth

Response

Successful Response

login_urlstring required
state_tokenstring required