-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Description
What version of Codex CLI is running?
codex-cli 0.98.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.3-codex (current)
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
PowerShell
What issue are you seeing?
English
When adding certain third-party MCP servers that use Streamable HTTP / HTTP streaming transport,
Codex CLI fails to initialize or use them.
Typical symptoms include:
- MCP server appears but shows no tools available
- Initialization or handshake fails
- MCP cannot be used in Codex CLI at all
The same MCP servers work correctly in other MCP clients (e.g. Cursor, Claude Desktop, or other MCP-compatible tools).
This suggests a Codex CLI–specific compatibility issue with some Streamable HTTP MCP implementations.
中文
当在 Codex CLI 中添加 使用 Streamable HTTP / HTTP 流式传输的第三方 MCP Server 时,
Codex CLI 无法正常初始化或使用这些 MCP。
常见表现包括:
- MCP Server 能显示,但 Tools 为空
- 初始化 / 握手失败
- 在 Codex CLI 中完全无法调用 MCP
但 同样的 MCP Server 在其他 MCP 客户端中可以正常使用,
说明这更像是 Codex CLI 对部分 Streamable HTTP MCP 的兼容性问题。
What steps can reproduce the bug?
English
- Configure a third-party MCP server that uses Streamable HTTP in
~/.codex/config.toml - Start Codex CLI
- Run
/mcpor attempt to use the MCP - Observe that the MCP fails to initialize or exposes no tools
Example config (redacted):
[mcp_servers.example_http_mcp]
url = "https://example.com/mcp"
transport = "streamable_http"This MCP works correctly in other MCP clients using the same endpoint.
中文
- 在 ~/.codex/config.toml 中配置一个 使用 Streamable HTTP 的第三方 MCP Server
- 启动 Codex CLI
- 执行 /mcp 或尝试使用该 MCP
- 发现 MCP 初始化失败,或工具列表为空
[mcp_servers.example_http_mcp]
url = "https://example.com/mcp"
transport = "streamable_http"该 MCP 在其他 MCP 客户端中可正常工作。
What is the expected behavior?
English
Codex CLI should be able to:
- Successfully initialize Streamable HTTP MCP servers that follow the MCP specification, or
- Provide clear and actionable error messages explaining why initialization fails
Behavior should be consistent with other MCP clients when connecting to the same MCP server.
中文
Codex CLI 应当:
- 能够成功初始化符合 MCP 规范的 Streamable HTTP MCP,或
- 给出清晰、可操作的错误提示,说明初始化失败的原因
在连接同一个 MCP Server 时,其行为应与其他 MCP 客户端保持一致。
Additional information
English
As a workaround, this issue can be mitigated by using a local transport bridge
(e.g. running supergateway to convert Streamable HTTP MCP → local STDIO MCP),
and then connecting Codex CLI to the local STDIO MCP instead.
This suggests the issue is related to Codex CLI’s handling of
Streamable HTTP / SSE-style MCP transports rather than the MCP servers themselves.
中文
作为临时解决方案,可以通过在本地使用 transport bridge
(例如使用 supergateway 将 Streamable HTTP MCP 转换为本地 STDIO MCP),
再让 Codex CLI 连接本地 STDIO MCP,从而绕过该问题。
这进一步表明问题更可能出在 Codex CLI 对 Streamable HTTP / SSE 类 MCP 的处理方式,
而不是 MCP Server 本身。
解决方案示例 Solution example
