Start the OAuth login flow for an MCP connection
Discovers the MCP server’s authorization server (RFC 9728 / RFC 8414), optionally performs Dynamic Client Registration (RFC 7591) when no client credentials are supplied, and returns the authorization URL for the admin’s browser to complete an Authorization Code + PKCE login. The browser is redirected there; the upstream provider redirects back to the gateway callback, which exchanges the code for a token. Used by the connection create page.
Body
MCP OAuth login request
ServerURL is the MCP endpoint to authorize against (the OAuth resource).
"https://mcp.figma.com/mcp"
ClientID is an optional pre-registered OAuth client id. When empty the gateway registers a client dynamically.
ClientSecret is an optional pre-registered OAuth client secret, paired with ClientID.
Scopes is an optional space-delimited scope string. When empty the scopes advertised by the authorization server are requested.
"openid profile"