Skip to content

[Remote MCP] Error when trying to log in - Error: Metadata error: #5953

@MrAshRhodes

Description

@MrAshRhodes

What version of Codex is running?

codex-cli 0.50.0

What subscription do you have?

api key

Which model were you using?

gpt-5

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

Ive set my config to use a remote mcp with oauth.

I have set - experimental_use_rmcp_client = true

[mcp_servers.remote]
type = "http"
url = "https://xxxx.com/mcp/default"

when using codex mcp login remote

Error: Metadata error: Failed to parse metadata: error decoding response body

The mcp server and oauth work in other applications i.e copilot, claude etc

What steps can reproduce the bug?

set config for a remote server

run codex mcp login $server_name

What is the expected behavior?

directed to an oauth login page for authentication.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions