Repository navigation
MCP servers not detected in Codex VS Code extension (but working in Codex CLI) #6465
Description
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_serversor
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.
Activity
github-actions commentedon Nov 10, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
codex.list_mcp_resources(VS Code Extension) #6215Powered by Codex Action
PangeranSilaen commentedon Nov 10, 2025
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.
Milad commentedon Nov 11, 2025
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:
MatthewGranfield commentedon Nov 13, 2025
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.
crstamps2 commentedon Nov 14, 2025
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:
XFairesV1 commentedon Nov 14, 2025
I have the same problem:
CLI v0.57.0
Extensão VSC v0.4.39
Linux
Robert-Phan commentedon Nov 14, 2025
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.
nicolascanese commentedon Nov 17, 2025
I'm having the same issue in Win11 and in WSL.
Extension v0.4.43
CLI v0.58.0
leike0813 commentedon Nov 19, 2025
I'm having the same issue in Win11, WSL not tested.
Extension v0.4.43
CLI v0.58.0
RyanRiz commentedon Nov 22, 2025
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
FelixKuehl commentedon Nov 25, 2025
Same here on MacOS. Any workaround / fixes?
37 remaining items
alexkmbk commentedon Apr 9, 2026
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.
mqhamdam commentedon Apr 27, 2026
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
rvveber commentedon Apr 28, 2026
This is not related to windows-os btw! Incorrect tag!
Installer: detect Codex VS Code extension + warn about openai/codex#6465
Chaoscontrol commentedon May 20, 2026
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:
SylvainWinning commentedon May 25, 2026
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:
Config not loaded
~/.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.Config loaded, server not started
npx, PHP/Laravel, WSL, and extension-bundledcodexbinary differences.Server started, tools not exposed to the model/session
/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.xuanswe commentedon May 26, 2026
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.
drewclifton commentedon May 26, 2026
This is more relevant now than ever during the great GHCP exodus.... Looking forward to an update (and confirmed fix) for this soon!
grnbtqdbyx-create commentedon May 31, 2026
etraut-openai commentedon May 31, 2026
alessandrotesoro commentedon Jun 1, 2026
Same issue here, it's incredibly frustrating. I'll go back to Claude in the meantime.
elliejayliquid commentedon Jun 7, 2026
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.
movy commentedon Jun 10, 2026
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.
docs(codex): document OpenAI Codex support and its config differences