-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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.