failed to handle OAuth callback (cloudfare-api)
Open 💬 1 comment Opened Aug 6, 2026 by torahmike
Command:
codex mcp login cloudflare-api
MCP URL:
https://mcp.cloudflare.com/mcp
Error:
failed to handle OAuth callback
Authorization server response missing required issuer:
expected https://mcp.cloudflare.com
codex-cli 0.146.1
1 Comment
Reproduced on codex-cli 0.144.1 (macOS) via Cloudflare's official agent setup flow (developers.cloudflare.com/agent-setup/prompt.md). Affects 4 of the 5 servers:
cloudflare,cloudflare-bindings,cloudflare-builds,cloudflare-observability(all fail with this same error;cloudflare-docsis public and works).Evidence: each host's
.well-known/oauth-authorization-serverpublishesissuer: https://<host>andauthorization_response_iss_parameter_supported: true, but the authorization redirect does not include the RFC 9207issparameter, so the required-issuer check fails withmissing required issuer.The AS advertises
isssupport but does not emit it — see also #31573. It would help if the client error named exactly which claim was missing, and Cloudflare likely needs to emitissper its own metadata. Cross-filed upstream: https://github.com/cloudflare/mcp-server-cloudflare/issues (Cloudflare).