codex can not find mcp

Open 💬 3 comments Opened Apr 27, 2026 by africa1207
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

v0.125.0

What subscription do you have?

plus

Which model were you using?

_No response_

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What terminal emulator and version are you using (if applicable)?

Windows Terminal (PowerShell)

What issue are you seeing?

[mcp_servers]

[mcp_servers.chrome-devtools]
type = "stdio"
command = "npx"
args = ["-y", "chrome-devtools-mcp@latest"]

[mcp_servers.context7]
type = "stdio"
command = "npx"
args = ["-y", "@upstash/context7-mcp", "--api-key", "my_api_key"]

[mcp_servers.mcp-deepwiki]
type = "stdio"
command = "npx"
args = ["-y", "mcp-deepwiki@latest"]

First, I can confirm that my MCP configuration is correct. I tested it using different versions of Codex, up to v0.120.0, and the AI successfully retrieved the configured MCP and made proper calls. However, starting from v0.121.0 and above, while /mcp can retrieve the MCP and its associated tools, the following calls return empty results:

• Called codex.list_mcp_resources({})
└ {"resources": []}

• Called codex.list_mcp_resource_templates({})
└ {"resourceTemplates": []}

As a result, the AI fails to recognize any MCP resources.

What steps can reproduce the bug?

MCP cannot be used with versions ≥ v0.121.0.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #19649
  • #18233
  • #19363
  • #19425

Powered by Codex Action

neurostream · 4 months ago

I've been seeing this since 0.117.0 . 0.116.0 was the last version models from local providers ( namely Ollama in my case ) could invoke mcp tools consistently.

My workaround has been a wrapper script that runs 0.116.0 if the profile parameter isn't for gpt 5.x. If it's a gpt5.x profile, then I run the latest ( 0.125.0 at the moment ). #19871

rnett · 3 months ago