codex 启动老是MCP client start failed,怎么修复。

⚠ MCP client for `codex_apps` failed to start: MCP startup failed: handshaking with MCP server failed: Send message error Transport [rmcp::t
  ransport::worker::WorkerTransport<rmcp::transport::streamable_http_client::StreamableHttpClientWorker<codex_rmcp_client::rmcp_client::Stre
  amableHttpResponseClient>>] error: Client error: error sending request for url (https://chatgpt.com/backend-api/wham/apps), when send init
  ialize request

⚠ MCP startup incomplete (failed: codex_apps)

如题,codex 启动的时候老是报这个提示,看起来好像没有影响什么,但是很丑哎。
是我节点的问题吗?
我尝试让Codex 自己修,也没修好

6 个赞

codex_apps mcp 启动失败!

4 个赞

是的,这个还是比较清楚能看出来的。我的问题应该改一下,应该问怎么解决 :joy:

到~/.codex/config.toml 这里看看呢

1 个赞

手动运行命令启动试试,不过感觉可能是权限问题

1 个赞

奇怪,我发论坛里之后,我又试了一下,啥都没改,现在又好了。看样子是网络问题

看起来工具连的内网?我有个mcp密钥用的内网的服务,codex启动的时候偶尔也会报错,总的来说还是iterm这种终端工具的网络请求和clash没配置好引起的

是不是mcp删除了,但是配置文件里面还有配置。看看 .codex/config.toml 找到对应的删除了试试

我今天刚搞好这个问题,按照下述命令指定到你的代理端口就没问题了:
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
export WS_PROXY=http://127.0.0.1:7890
export WSS_PROXY=http://127.0.0.1:7890
codex e ping --skip-git-repo-check

6 个赞

哥你太牛啦!!!!一搜这个问题就看到这个帖子了,一下就解决了 :heart_eyes:

之前没出现过这个问题 codex cli 最近几个版本好像改了默认任务
config.toml 里加上这个配置 可以解决这个问题
[features]
apps = false

6 个赞

这个的命令和开tun的效果是一样的吧

谢谢哥!!!!!!直接解决我的问题