Skip to main content

initiateMcpServerOAuth

Generate an OAuth authorization URL for an MCP server. Opens in a popup; the callback page captures the code. For user-scoped servers, stores the token per-user.

initiateMcpServerOAuth(
id: String!
redirectUri: String!
): InitiateMcpServerOAuthPayload

Arguments

initiateMcpServerOAuth.id ● String! non-null scalar

initiateMcpServerOAuth.redirectUri ● String! non-null scalar

Type

InitiateMcpServerOAuthPayload object