解决codex 获取 list_mcp_resources 为空列表的问题

原配置如下,在vscode通过codex插件方式对话,但是按照标准mcp配置总是找不到list_mcp_resources。

关于这个问题的解决方法找了很久,最后终于在Github Issue找到了,问题就出在SSE上,改为http方式可以正常调用。

After cluing in to SSE being deprecated I implemented streamable HTTP instead. I believe I'm implementing the 2025-06-18 MCP server-side specification to the letter. I get the same error.


model = "gpt-5.2-codex"
model_reasoning_effort = "xhigh"

[mcp_servers.jadx]
command = ".../AppData/Local/Programs/Python/Python312/Scripts/uv.exe"
cwd = "F:/jadx-mcp-server"
args = ["run", "jadx_mcp_server.py", "--jadx-port", "8650"]
startup_timeout_sec = 120
tool_timeout_sec = 600

下面是可用的正确配置,这种方式需要手动启动jadx_mcp_server.py服务

.../AppData/Local/Programs/Python/Python312/Scripts/uv.exe --directory F:/jadx-mcp-server run jadx_mcp_server.py --http --port 9999

model = "gpt-5.2-codex"
model_reasoning_effort = "xhigh"

[mcp_servers.jadx]
url = "http://127.0.0.1:9999/mcp"
startup_timeout_sec = 30
tool_timeout_sec = 600
posted @ 2026-01-19 16:43  Naihe\  阅读(1)  评论(0)    收藏  举报
// 音乐播放器