codex - 💡(How to fix) Fix codex can not find mcp [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19815Fetched 2026-04-28 06:36:39
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×2cross-referenced ×1unlabeled ×1

Code Example

[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"]
RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

The issue can likely be resolved by adjusting the MCP configuration or waiting for a fix in a future version of Codex CLI, as the problem seems to be related to changes introduced in version v0.121.0.

Guidance

  • Review the MCP configuration to ensure it is compatible with Codex CLI version v0.121.0 and above, as the issue seems to be related to changes in this version.
  • Try rolling back to a previous version of Codex CLI (e.g., v0.120.0) to verify if the issue is indeed version-specific.
  • Investigate any changes in the codex.list_mcp_resources and codex.list_mcp_resource_templates APIs between versions v0.120.0 and v0.121.0 that might be causing the empty results.
  • Check for any updates or patches for Codex CLI that might address this issue.

Notes

The exact cause of the issue is unclear, and without more information about the expected behavior or additional context, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Roll back to a previous version of Codex CLI (e.g., v0.120.0) until a fix is available in a future version, as this version is known to work with the current MCP configuration.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix codex can not find mcp [2 comments, 3 participants]