Skip to content

Streamable http MCP server handshaking failed #5208

@ouyangjunfei

Description

@ouyangjunfei

What version of Codex is running?

codex-cli 0.46.0

Which model were you using?

qwen3-coder-plus

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

  1. Add a custom mcp server config(url just for example cause it's deployed in our net)
[mcp_servers.custom]
url = "https://xxx.yyy.com/mcp"

2 Open codex

codex
  1. Wait
    CLI shows error :

MCP client for custom failed to start: handshaking with MCP server failed: Send message error Transport
[rmcp::transport::worker::WorkerTransport<rmcp::transport::streamable_http_client::StreamableHttpClientWorker<reqwest::a
sync_impl::client::Client>>] error: Transport channel closed, when send initialized notification

And no tools:

Image

What is the expected behavior?

No errors for mcp servers, and I can see tools.

Same MCP Server URL for claude code works fine

Image

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmcp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions