Codex not finding MCP servers using its go-to `codex.list_mcp_resources` (VS Code Extension)
Resolved 💬 11 comments Opened Nov 4, 2025 by drewclifton Closed Nov 5, 2025
💡 Likely answer: A maintainer (gpeal, contributor)
responded on this thread — see the highlighted reply below.
I have a config.toml file that look like this (on macOS):
model = "gpt-5-codex"
model_reasoning_effort = "medium"
[projects."/Users/drewclifton/projects/trading/trader-py-rt-2"]
trust_level = "trusted"
[shell_environment_policy]
inherit = "all"
set = { PATH = "/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin" }
[mcp_servers.context7]
args = ["-y", "@upstash/context7-mcp", "--api-key", "..."]
command = "npx"
startup_timeout_ms = 20_000
[mcp_servers."chrome-devtools"]
command = "npx"
args = ["chrome-devtools-mcp@latest"]
I seem to remember it worked before but isn't now.
When I ask Codex to use an MCP server (e.g., context7), it says it's not installed. When I ask it to list its available MCP servers, it does this:
• Called codex.list_mcp_resources({})
└ {"resources": []}
(Same result in VS Code extension)
I am using Codex CLI 0.54.0 and Codex VS Code extension 0.4.35 (VS Code 1.105.1 (Universal)), and macOS 26.0.1.
11 Comments
The context7 MCP server has no Resources (a specific thing in MCP terminology). It does have two tools though:
get-library-docsandresolve-library-idIt can't find either server. It keeps saying it has no access to MCP servers, and consistently attempts to use
list_mcp_resources. So how do I help Codex find the servers?You can ask it to use the tools in my last message
Thanks. Curious, have you run into this issue before / does this happen when you try to use context7 with Codex? I seem to remember Codex could use these servers just fine before without handholding. I am wondering if I messed something up somewhere while trying to set these up...
@drewclifton I'm not aware of anything. I just discovered that we're not passing along MCP tool descriptions. Most MCP servers don't provide them but context7 does. Once I land that, it should further help a bit.
I ended up cancelling my ChatGPT subscription, as Codex was the main reason I was keeping it. MCP worked at first and then just quit. Seems others have been having issues as well. I assume OpenAI is working on it but 🤷♂️.
Should I add it to the AGENT.md so it consistently knows to use it or do I have to reference it in every new conversation?
The codex should provide a CLI command to directly restart the MCP client to solve the problem. Is there such a command in codex? I am turning in circles with urgency now.
I have the same issue I can't use any mcp server tools of my config.toml
Here is my .codex/config.toml
@gpeal I don't understand how you see this issue worth to be closed ?
@merwanguerrib, if you're seeing a related issue, please create a new bug report and reference this one. This issue was closed over a month ago.