mcp-use TypeScript API
    Preparing search index...

    Function onMcpAuthorization

    • Completes the browser OAuth callback once per page load.

      This host validates the CSRF state and restores the browser provider. The MCP SDK transport owns callback parameter parsing, issuer validation, OAuth error handling, and the authorization-code exchange.

      Returns Promise<void>