openai / openai/codex

Meta Ads MCP OAuth fails before browser login in Codex 0.153.4 (endpoint origin validation)

Open
#44,437 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auth bug CLI mcp
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Local reproduction on macOS, 2026-09-10. The official Meta endpoint is configured as Streamable HTTP:

[mcp_servers.meta_ads]
url = "https://mcp.facebook.com/ads"
enabled_tools = []
default_tools_approval_mode = "prompt"

Running codex mcp login meta_ads fails before browser login:

OAuth authorization endpoint origin does not match the authorization server origin without issuer-bound callbacks

Public Meta discovery metadata observed on 2026-09-10:

The same endpoint is shown as connected in Claude Desktop, with its tool catalog visible. No Claude credentials were copied and no authenticated Meta data query was performed in this investigation.

The official rust-v0.154.0 source still rejects this combination in codex-rs/rmcp-client/src/oauth/issuer_binding.rs. That release was inspected, not installed or executed. No Meta exception appears there. A pre-registered client does not by itself resolve the observed endpoint-origin mismatch.

Request: Please provide a supported Meta-compatible OAuth flow that preserves issuer validation, or coordinate RFC 9207 issuer-bound authorization response support with Meta. Please clarify whether a supported alternative authentication path exists for this endpoint.

Related reports (different historical failures; not proof of a fix):

Source inspected:
https://github.com/openai/codex/blob/rust-v0.154.0/codex-rs/rmcp-client/src/oauth/issuer_binding.rs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading codex-rs/rmcp-client/src/oauth/issuer_binding.rs and compare its issuer and authorization-endpoint validation with the Meta discovery metadata described here. Done would require a supported Meta-compatible OAuth flow that preserves issuer validation, or a documented supported alternative authentication path.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authentication
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.