Get the consent URL for per-user MCP server authorization
Returns the per-subject auth status for the MCP server. When status is authentication_required, the response additionally includes an authorization_endpoint: a single MCP-gateway-proxied consent URL that seeds the chained consent flow for the requested server. For virtual MCP servers the chain walks every source still needing auth before landing the user on the tenant control-plane mcp-server-success page.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
MCP server id (the id returned by GET /v1/mcp, not the name).
"mcp-01HXYZ..."
Query Parameters
Base URL of the MCP gateway (used as the resource indicator and to substitute {{mcpProxyBaseURL}} for the proxied MCP server URL). Defaults to the tenant's gateway-default installation URL when omitted.
Response
Per-subject auth status; the AUTHENTICATION_REQUIRED branch carries the consent URL to open.
- MCPServerAuthStatusAuthenticated
- MCPServerAuthorizeAuthRequired
- MCPServerAuthStatusAuthNotRequired