v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01251238661.6 KB
v1
protected
mcp-oauth-connect

Oauth Authorize

Initiate MCP OAuth flow: discover AS, register client, redirect to auth page.

  1. Look up the MCP instance's remote URL
  2. Discover the authorization server (RFC 9728 → RFC 8414)
  3. Dynamically register as an OAuth client (RFC 7591)
  4. Generate PKCE pair and state
  5. Redirect user to the authorization endpoint
get/v1/mcp-oauth/authorize

Query parameters

instance_idstring uuid required

MCP instance to connect

MCP instance to connect

return_tostring

Frontend URL to redirect after OAuth completes

Frontend URL to redirect after OAuth completes

Response

Successful Response

{"stackTrail":"paths:/v1/mcp-oauth/authorize:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}