MCP servers not detected in Codex VS Code extension (but working in Codex CLI)
What version of the VS Code extension are you using?
0.4.38
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What issue are you seeing?
Hi, I'm encountering an issue where Codex CLI successfully connects to local and remote MCP servers (e.g. Playwright, Supabase), but the Codex VS Code extension fails to detect or list any MCP resources/tools.
This seems to be a session isolation problem between Codex CLI and the Codex IDE extension.
Environment
- OS: Windows 11 (Build 26100.x)
- Codex CLI version: v0.56.0
- Codex VS Code extension: Latest (from OpenAI official marketplace)
- Node.js: v22.13.0
- Playwright MCP: latest via
@playwright/mcp@latest - Supabase MCP:
https://mcp.supabase.com/mcp - config.toml path:
C:\Users\hi\.codex\config.toml
What steps can reproduce the bug?
- Create a
.codex/config.tomlfile:
model = "gpt-5-codex"
model_reasoning_effort = "low"
sandbox = "danger-full-access"
[features]
rmcp_client = true
[mcp_servers.playwright]
command = "cmd"
args = [
"/c",
"C:\\Program Files\\nodejs\\npx.cmd",
"@playwright/mcp@latest",
"--browser", "chrome",
"--extension",
"--no-sandbox"
]
startup_timeout_sec = 120
tool_timeout_sec = 600
[mcp_servers.playwright.env]
APPDATA = "C:\\Users\\hi\\AppData\\Roaming"
LOCALAPPDATA = "C:\\Users\\hi\\AppData\\Local"
HOME = "C:\\Users\\hi"
SystemRoot = "C:\\Windows"
NODE_OPTIONS = "--dns-result-order=ipv4first"
[mcp_servers.supabase]
url = "https://mcp.supabase.com/mcp?project_ref=${SUPABASE_PROJECT_REF}"
bearer_token_env_var = "SUPABASE_ACCESS_TOKEN"
startup_timeout_sec = 120
tool_timeout_sec = 600
- Run in Codex CLI:
````
codex
/mcp
✅ Output:
Playwright detected, tools listed, working normally.
- Open Codex Chat in VS Code (GPT-5-Codex model).
- Run:
````
list_mcp_servers
or
````
list_mcp_resources
❌ Output: empty (no MCP servers detected).
---
What is the expected behavior?
Expected Behavior
Codex IDE should inherit the same MCP configuration and session from ~/.codex/config.toml, or at least spawn MCP processes defined there (just like Codex CLI does).
Playwright MCP should appear in list_mcp_resources and be callable inside Codex IDE.
Actual Behavior
- Codex CLI: Works perfectly, detects MCP Playwright and Supabase.
- Codex IDE (VS Code extension):
list_mcp_resourcesalways empty. - In terminal logs, IDE session doesn’t appear to start MCP processes or read environment variables.
- Restarting VS Code, reloading configuration, and setting env vars globally have no effect.
Additional information
Codex CLI output:
> codex
The supabase MCP server is not logged in. Run `codex mcp login supabase`.
MCP Tools
• playwright
Status: enabled
Command: npx @playwright/mcp@latest --browser chrome --extension --no-sandbox
Tools: browser_click, browser_tabs, browser_wait_for, ...
• supabase
Status: enabled
Auth: OAuth
URL: https://mcp.supabase.com/mcp
Codex VS Code chat output:
There are still no MCP servers connected in this session — list_mcp_resources remains empty.
---
Hypothesis / Possible Cause
The Codex VS Code extension may be launching its own isolated agent session without sharing MCP process context or ~/.codex/config.toml with the CLI environment.
It seems MCP initialization is only performed in CLI-based Codex sessions.
There is currently no manual command (codex mcp start) or extension setting to sync the two.
---
Suggested Fix
- Make the Codex IDE extension automatically detect and initialize MCP servers from the same configuration file (
~/.codex/config.toml). - Optionally, allow Codex IDE to connect to an already-running MCP process from Codex CLI.
- Add a debug log or indicator for MCP connection status in the IDE.
---
Workaround
Currently, the only working approach is:
- Run
codexCLI and keep it open (MCP servers run there). - Then interact with MCP commands through that CLI session only.
The VS Code Codex chat cannot yet call those tools.
This makes MCP development and testing inside VS Code Codex extension impractical, even though the CLI works fine. Please confirm if MCP integration for Codex IDE is expected to be functional yet, or if this is a known limitation.
58 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Just to clarify, this is not a duplicate of #5929 or #6215.
Both of those refer to older Codex releases and
.vscode/mcp.jsonintegration issues on macOS.My report (#6465) is about Codex VS Code extension (v0.56.0) failing to detect MCP servers already working in Codex CLI, even though both share the same
~/.codex/config.tomlconfiguration.Reproduction shows CLI detects Playwright/Supabase MCP successfully, while
list_mcp_resourcesin IDE remains empty — indicating the VS Code extension isn't spawning or connecting to the same MCP runtime session.Tested on Windows 11 + Node v22, so this is cross-platform and not related to
.vscode/mcp.json.Please keep this open — it's a session isolation bug between Codex CLI and IDE, not a config syntax issue.
I have the same problem:
codex-cli 0.57.0
Codex VScode extension: 0.4.38
My
~/.codex/config.toml:Codex CLI can access the MCP server and can list the tables of the DB.
While Codex VScode extension reports this:
Can confirm i have the same issue on a fresh install Win 11 pro.
CLI v0.57.0
VSC extention v0.4.39
Using CLI i can access larvel boost and use the tools, however i cannot through the extention.
Also not working on Mac.
CLI v0.58.0
VSC extension 0.4.40
When prompting the chat to check the status of the tools, it's thinking always outputs:
I have the same problem:
CLI v0.57.0
Extensão VSC v0.4.39
Linux
I also have the same problem:
CLI v0.58.0
Extension v0.4.40
My config.toml:
Using Windows with WSL. CLI works fine, the extension times out.
I'm having the same issue in Win11 and in WSL.
Extension v0.4.43
CLI v0.58.0
I'm having the same issue in Win11, WSL not tested.
Extension v0.4.43
CLI v0.58.0
I'm having the same issue in VS Code Insiders Linux
Extension 0.5.46
CLI v0.60.1
.codex/config.toml:
chat:
but codex recognized installed mcp in CLI
Same here on MacOS. Any workaround / fixes?
I am having the same issue on Win 11/ WSL
Extension: v0.4.46
Codex-CLI 0.63.0
Can get the CLI to utilize the MCP but not the Codex extension
same, it stopped recognizing the .vscode\mcp.json mcp servers per project. i'm in MacOS
This happened to me "randomly" recently as well (MCP servers don't work). Made a thread about it with more details here. I ended up cancelling my ChatGPT sub as Codex was the main readon I was keeping it. But subscribed to this thread just in case it gets addresssed and I decide I want ChatGPT again.
Thanks for your feedback all, let's try to get to the bottom of this:
For starters:
does not seem to be a reliable way to ask the model what is currently active (despite it being a reasonable prompt)
Could somebody run the above query to verify if there are issues or if the model was just confused by the way you were asking before.
We are also working on a proper MCP configuration UI in the extension that will also make this much more clear.
hi @gpeal that's always the way to ask the model, you even ask only "can you detect mcp tools?" and he would detect them. It stopped detecting them, i don't remember which was the version from codex, but
<img width="759" height="341" alt="Image" src="https://github.com/user-attachments/assets/29b7427e-9a92-4f12-b859-87a80b93f27e" />
<img width="518" height="550" alt="Image" src="https://github.com/user-attachments/assets/afb0965b-e606-4382-982d-4cd3d1b9ef97" />
.vscode/mcp.json
{
"servers": {
"herd": {
"command": "php",
"args": ["/Applications/Herd.app/Contents/Resources/herd-mcp.phar"],
"env": {
"SITE_PATH": "/Users/brunogomes/Documents/Herd/projectx"
}
},
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
},
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
},
"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
},
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--channel=canary",
"--headless=true",
"--isolated=true"
]
},
"laravel-boost": {
"command": "php",
"args": ["artisan", "boost:mcp"]
},
"stripe": {
"type": "http",
"url": "https://mcp.stripe.com"
}
}
}
This is copilot, which works always, never had the issues of the MCP that we sometimes have with Codex.
<img width="607" height="678" alt="Image" src="https://github.com/user-attachments/assets/52a2e5b8-4faa-4cea-84f6-80a84965e610" />
hope you guys fix this in the next release because not having up to date documentations are not a good way for the model to work.
@Zokor Could you try with the prompt I suggested? Different models and harnesses may behave differently. I agree that Codex _should_ have a reasonable response to your message but it does seem to work more reliably with:
and knowing whether it's a model behavior issue or a harness issue would help here.
@gpeal I can confirm that its not a model issue, ive asked it to use or
list what MCP tools it has and every time it will say that Laravel boost is
installed but the MCP server isnt running and it cannot see, access or use
the tools. if you do the same thing on CLI it just works.
output when running you're prompt.
also just a FYI, Claude works with the MCP (VSCode extension also)
On Mon, Dec 1, 2025 at 3:15 AM Gabriel Peal @.***>
wrote:
@MatthewGranfield And it works from the CLI? Does it ever work with the extension? Does it matter if you use WSL or not?
I use WSL and VSCode in WSL mode. CLI works fine for me, loads up the MCP
tools at the start and /MCP list shows them. If I run a test prompt it sees
and uses the tools fine.
Never worked for me in the extension, but i've only tried to use it in the last 6w maybe?
also - ive never tried to use the CLI version outside of WSL. Ive tried to use the VSC version outside of WSL but i didn't get it working either.
On Mon, 1 Dec 2025, 07:04 Gabriel Peal, @.***> wrote:
It worked for me with the extension some versions ago :)
I don't use the CLI directly because that's wasting time with another window open getting out of the working context. So having the extension working properly is very important for the product to be viable.
Anyway here's the answer to the question:
<img width="599" height="596" alt="Image" src="https://github.com/user-attachments/assets/bece05c1-68d6-49dd-8dc1-0b2be793fd64" />
Observing with MacOS setup as well - works correctly in CLI, no MCPs in IDE.
i had the same issue but i think it works now i just askes codex extension to check my config.toml because i already setup supabase mcp and it said it can see the supabase entry and it tried to query data and it went through hope this helps
i have mac os btw
I think you may figure out the cause by running the internal codex binary directly. If you are using Unix-like OS, it is located
~/.vscode/extensions/openai.chatgpt-<version>/bin/<arch>/codex.For me, it shows errors like:
which I solved in #7417.
I solved this for my setup with VS Code MCP settings.
Codex in the IDE for some reason picks up these MCPs, not the ones from
~/.codex/config.toml.I am observing something strange. The Codex doesn't regard the configured mcp server as something different.
<img width="549" height="463" alt="Image" src="https://github.com/user-attachments/assets/822e5098-38dd-4c7a-b614-d6840c76ec72" />
Note that I am using the binary I prepared myself because the default version for the VS Code addon has some bug as I mentioned in the comment from two messages ago.
How did you verify whether there are no MCPs in the IDE?
Please check my previous comment with regards to model behavior and how to ask here. It's not ideal but worth noting.
Having the same issue with Codex VS Code Extension not recognizing the mcps. "None detected at the moment. The list_mcp_resources and list_mcp_resource_templates calls both return empty, so no mcp__* tools are loaded."
Problem persists with the 0.64.0 release:
<img width="2176" height="750" alt="Image" src="https://github.com/user-attachments/assets/6a376ffd-3b66-48f7-a5a7-e1776a2161ab" />
Just a quick update, if i try and run the extention's codex file from the term i get:
mcp still not working in codex extension - 7th january 2026
@PangeranSilaen
Try this:
If you have an error, it should be reported as another issue. If you don't, I think it's truly a problem of this extension.
@linuxmetel the issue still persists, no MCP's being detected
@Zokor according to this comment, just asking if it has any access to an mcp server is not enough. So I don't know what happen until you send another screenshot or suchlike. And if you can, also try
~/.vscode/extensions/openai.chatgpt-<version>/bin/<arch>/codex.i've created another, but it's a lot of time in the "dark" with mcp issues
(https://github.com/openai/codex/issues/8836)
@linuxmetel these screenshots? :o
<img width="789" height="427" alt="Image" src="https://github.com/user-attachments/assets/4c1102bd-56af-4bc8-ad76-6219ed42cc93" />
<img width="872" height="196" alt="Image" src="https://github.com/user-attachments/assets/09c72e3c-11b1-425e-a8b7-ce9ad0813fdf" />
@Zokor the codex-cli binary the extension uses is there. I meant the screenshot when you runned it. In order to make it clear if it's the problem of codex-cli binary or not.
And looking at your issue, I don't know what is the problem. Doesn't the extension detect mcp servers you added in config.toml?
Codex was detecting the setup of the .vscode/mcp.json without using the toml some weeks ago.
<img width="592" height="573" alt="Image" src="https://github.com/user-attachments/assets/14413adc-605b-4c62-996b-bc1f9d4de56a" />
i went back on it and the config.toml is working again, thank you. i'll start using it instead of the .vscode\mcp.json. but it would be nice if we start having standards for these things :) cheers
@Zokor, the Codex IDE extension has never supported
.vscode/mcp.json. It reads its MCP configuration fromconfig.toml. In recent versions of the IDE extension, we added a dedicated UI for configuring MCP servers. You can access this through the gear icon in the upper right of the panel. Select "Open MCP Settings".@etraut-openai hi, thank you for the reply, that's strange because, it's what i used since i made my first subscription for a full month between October and November only the .vscode/mcp.json and it was working. ( the config.toml wasn't working ) was cool because i was also using copilot initially and then i switched to Codex in October, plus it was a way i had to commit per project the mcp's i was using
same issue
From codex in VSCode terminal
do you see nx mcp?• Yes — Nx MCP tools are available (e.g., nx_workspace, nx_project_details, nx_docs, etc.).
From Codex Extension
`do you see nxmcp
I don’t see Nx MCP tools (like nx_workspace, nx_project_details, nx_docs) in the current session tool list, so I can’t use them right now. If you expect them to be available, we can check the MCP server configuration—just say the word and I’ll request approval to read config.toml (outside the workspace).`
Config.toml
[mcp_servers.nxmcp]command = "npx"
args = ["nx", "mcp"]
It seems that if I start a new conversation in VSCode extension, it does see the right MCP servers / functions. But if I switch right back to the previous conversation, it doesn't see it
Maybe you can try using this approach: Workaround: (https://gist.github.com/DevloperHS/0bd80665579d80fccac163192c5b6448#file-steps)
Here is proof it works:
<img width="948" height="714" alt="Image" src="https://github.com/user-attachments/assets/d175acbe-c2e6-4640-875c-2e2e59f8b2ee" />
To fix this, I would like to request a new feature, which would allow CODEX_HOME to be set in the
./.vscode/settings.json. Doing so allows us to have 100% repo local Codex, which even allows for using separate work and a personal accounts for separate repos. It should also be easy to implement, since all that's required is setting the CODEX_HOME environment variable before calling codex. This works great when using the CLI, and it even works in VSCode if you launch VSCode with CODEX_HOME set, but that is a huge pain to do every time you need to open your project.I have a similar issue, but only for project-level config.toml. VS Code Codex chat does not pick up project-level MCP servers, while the Codex CLI does. User-level config works fine.
this is piece of shit, settings doesn't able to save changed value, how thfcuk this dev asking 200$ in month but can't make proper UI for his own product. using cli to add mcp is another headache
This is not related to windows-os btw! Incorrect tag!
Is there really no update on this after months? Or even a hint of what causes it? Is this no affecting all users? How are people even able to work without MCPs?
I was able to use MCPs just fine in the extension till a few days ago, when I installed the Codex app on Windows, and now it went haywire. The extension won't be able to use any of the custom MCPs (even after uninstalling the Codex app, which was even worse).
Here's the bug report it created for me after investigation:
I took another pass through this thread and the current reports, and it may help to split this into a small diagnostic matrix. Right now several distinct failure modes all present as “the extension has no MCP tools”.
Suggested triage buckets:
~/.codex/config.tomlworks in CLI, but the extension does not read it.CODEX_HOMEdiffers between CLI, VS Code, WSL, remote SSH, and the standalone app.npx, PHP/Laravel, WSL, and extension-bundledcodexbinary differences./mcpcan show tools while the VS Code assistant only exposes curated namespaces or old conversations miss tools that new conversations can see.A narrow MVP would be a “MCP diagnostics” view or command in the extension that prints, for the current chat: effective
CODEX_HOME, config files considered, server startup status, and count/list of exposedmcp__*tools. That would give reporters a stable artifact instead of relying on prompts like “what MCPs do you see?”, which maintainers have already noted can be model-behavior dependent.Per
docs/contributing.md, I’m sharing analysis rather than opening an unsolicited PR. If useful, this could be narrowed into a test matrix across local VS Code, WSL, remote SSH, and project-level config.Could someone from the core team take a look at this issue? I'm eager to switch over to Codex, but this problem is making the transition quite difficult.
This is more relevant now than ever during the great GHCP exodus.... Looking forward to an update (and confirmed fix) for this soon!
I added a small evidence packer for this MCP discovery/config-scope mismatch class in
trace-to-skill@0.1.64:It is not a fix; it just helps reports include consistent fields that seem useful for this thread: app/CLI/extension version, OS/IDE/remote or WSL state, workspace root, effective
CODEX_HOME, config files considered (~/.codex/config.toml, project.codex/config.toml, IDE-level MCP config), redacted MCP sections, trust/profile/default-permissions state,codex mcp list/getoutput, CLI-vs-Desktop/VS Code comparison, loaded config path/log lines, whether moving the same server to user-global config fixes it, restart/reload/new-conversation results, and whether the current session exposes anymcp__*tools.Release: https://github.com/grnbtqdbyx-create/trace-to-skill/releases/tag/v0.1.64
@grnbtqdbyx-create, please stop spamming our issue tracker with AI-generated responses like this. If you continue, I will ask github to ban your account.
Same issue here, it's incredibly frustrating. I'll go back to Claude in the meantime.
Same issue here. Win 10. VS Code Version: 1.123.0
I wish we'd at least get some better error indications as I'm not entirely sure what exactly is failing.
Right now there's ZERO indication in VSCode Codex Extension whether MCPs work at all. I tried adding MCPs via
codex.tomland via 'GUI' (quoted, because GUI is just a vibe-slopped low-effort attempt to represent toml-strings, withiot any extra functionality compared to direct toml editing). Ample errors in logs though:Was this thing supposed to replace Copilot at some point? Very funny.
FWIW, I'm using VSCode Remote.