v2
mcp
mcp
Initiate OAuth login for an MCP server
Changed onDiscover OAuth metadata from the MCP server and return a login URL.
- Discovers the protected-resource metadata (RFC 9728)
- Fetches the authorization server metadata (RFC 8414)
- Performs Dynamic Client Registration (RFC 7591) if available
- Returns the authorization URL for the frontend to open in a popup
post/api/mcp/oauth/login
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
added the new optional request property
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info