You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop app shows MCP servers in Settings, but /mcp in chat shows none (tools unusable); TUI works #10499
What terminal emulator and version are you using (if applicable)?
Terminal.app 2.15
What issue are you seeing?
In Codex Desktop, MCP servers appear in Settings → MCP Servers, but inside the Desktop chat the /mcp command shows only global MCPs, and the model cannot use the project-scoped tools.
In the TUI (codex CLI), /mcp lists all project MCPs correctly and tools work.
What steps can reproduce the bug?
Create config.toml in the repo with several mcp_servers.*.
Trust the project in CLI (Desktop has no trust UI) and restart Desktop.
Open Settings → MCP Servers (servers appear).
In Desktop chat, run /mcp — only global MCPs are listed (project MCPs missing).
In terminal, cd to the project, run codex, then /mcp — all project MCPs are listed and usable.
What is the expected behavior?
Desktop chat /mcp should list the same MCP servers shown in Settings, and the model should be able to use them.
Additional information
No response
Reacted by Luciano Panaro, Ryu Kawakami, Eyal Kraft, Sergey Kochetkov, Daniil Simonyan, Mike Czapik, 浪浪辛, Andrei-Alexandru Podaru, Davey Barker, Vivek and 2 more
The MCP server command itself is valid and starts cleanly from the shell.
The same stdio server works outside the Codex desktop settings save path.
After saving or editing the server in Codex desktop settings, the desktop log records config/batchWrite followed by configValidationError: invalid type: null, expected any valid TOML value.
After that, the server may still appear in Settings but fail to attach in desktop chat.
This looks like a desktop settings serialization bug rather than an MCP server bug.
Local repro:
Add a stdio MCP server with command = "tap" and args = ["mcp"]
Save or edit it in Codex desktop settings
Restart Codex desktop
Open a new chat/session and check MCP availability
Expected:
the config saves cleanly
the server attaches in desktop chat
Actual:
desktop logs configValidationError
the server does not reliably attach, even though the server command itself remains valid
Current hypothesis: the settings UI/save path is emitting optional unset values in a way that becomes null during config write, and the TOML validator rejects that write.
From the repo root, codex mcp list correctly shows the project MCPs, including Sentry, Grafana, kubectl-readonly, and Postgres read-only. These also appear in Codex Desktop Settings.
But inside a Desktop thread, /mcp only shows codex_apps and does not expose the project MCP tools to the model. The agent cannot call any of the expected project tools (mcp__Sentry__*, Grafana, kubectl, Postgres, etc.).
This makes MCP-backed workflows basically unusable in Desktop: the config is visible, but the actual thread/tool surface does not receive the tools, so project skills that rely on MCPs fail or have to fall back to ad hoc shell/API work.
The key mismatch is:
codex mcp list sees the MCPs
Desktop Settings sees the MCPs
/mcp in the thread does not show them
the model does not receive the tools
It would be very helpful to have diagnostics that distinguish “configured”, “server initialized”, “tools discovered”, and “tools injected into this thread”. Right now the UI suggests the MCPs exist, but the session behaves as if they do not.
I am seeing the same Desktop-side discrepancy on a newer version:
Codex Desktop: 26.707.72221
Desktop-bundled Codex CLI/app-server: 0.144.2
macOS
two custom global Streamable HTTP MCP servers
Both servers appear enabled through codex mcp list, including when using the CLI bundled inside Codex.app. Both successfully complete MCP initialization and return valid tool definitions from tools/list. Their tools are callable through a direct MCP client.
Despite that, a fresh Desktop thread exposes no mcp__<server>__... namespace or callable tools. Restarting Desktop and opening a new thread does not resolve it.
I added the detailed reproduction to #19425. Because these servers are tool-oriented and do not advertise resources, #14242 may describe a contributing discovery path. #19649 also documents the same registered-but-not-injected regression family.
This confirms that the Desktop Settings/configuration inventory and the actual per-thread callable tool registry can still diverge on app-server 0.144.2.
Follow-up: I found a concrete cause for the Desktop/thread discrepancy and prepared a tested fix.
When code_mode_only is active, discovered MCP tools are deferred to tool_search. However, tool_search itself had normal exposure and was filtered off the direct model tool surface. This explains how Desktop/config inventory and successful tools/list can coexist with a thread that has neither direct mcp__... tools nor a search bridge.
The patch keeps tool_search top-level as DirectModelOnly, leaves MCP tools deferred, and tests the complete Responses Lite search -> namespace -> MCP call flow.
The review PR is in the fork because the upstream repository uses invitation-only external contributions and rejected direct PR creation. The branch is ready to submit unchanged if a maintainer invites it.
Activity
gapurov commentedon Feb 3, 2026
In addition to that, local mcps, which are defined on the project level are not working in the Desktop App, although fully functional in the TUI.
skoch13 commentedon Feb 27, 2026
I stumbled upon the similar issue, but when opening Codex App from terminal via
codex appenvironment is loaded properlyjlrickert commentedon Mar 18, 2026
I can reproduce a closely related desktop MCP failure locally with a third-party local stdio MCP server.
In my case the server command is
tap mcpfrom https://github.com/jlrickert/tapper, but I do not think the server implementation is the issue.What I see on March 18, 2026:
config/batchWritefollowed byconfigValidationError: invalid type: null, expected any valid TOML value.This looks like a desktop settings serialization bug rather than an MCP server bug.
Local repro:
command = "tap"andargs = ["mcp"]Expected:
Actual:
configValidationErrorCurrent hypothesis: the settings UI/save path is emitting optional unset values in a way that becomes
nullduring config write, and the TOML validator rejects that write.stewones commentedon Apr 9, 2026
same issue here
Trunksome commentedon May 15, 2026
I’m seeing a similar issue in Codex Desktop.
Environment:
0.130.0-alpha.5.codex/config.tomlFrom the repo root,
codex mcp listcorrectly shows the project MCPs, including Sentry, Grafana, kubectl-readonly, and Postgres read-only. These also appear in Codex Desktop Settings.But inside a Desktop thread,
/mcponly showscodex_appsand does not expose the project MCP tools to the model. The agent cannot call any of the expected project tools (mcp__Sentry__*, Grafana, kubectl, Postgres, etc.).This makes MCP-backed workflows basically unusable in Desktop: the config is visible, but the actual thread/tool surface does not receive the tools, so project skills that rely on MCPs fail or have to fall back to ad hoc shell/API work.
The key mismatch is:
codex mcp listsees the MCPs/mcpin the thread does not show themIt would be very helpful to have diagnostics that distinguish “configured”, “server initialized”, “tools discovered”, and “tools injected into this thread”. Right now the UI suggests the MCPs exist, but the session behaves as if they do not.
yunusemregul commentedon Jul 16, 2026
I am seeing the same Desktop-side discrepancy on a newer version:
26.707.722210.144.2Both servers appear enabled through
codex mcp list, including when using the CLI bundled inside Codex.app. Both successfully complete MCP initialization and return valid tool definitions fromtools/list. Their tools are callable through a direct MCP client.Despite that, a fresh Desktop thread exposes no
mcp__<server>__...namespace or callable tools. Restarting Desktop and opening a new thread does not resolve it.I added the detailed reproduction to #19425. Because these servers are tool-oriented and do not advertise resources, #14242 may describe a contributing discovery path. #19649 also documents the same registered-but-not-injected regression family.
This confirms that the Desktop Settings/configuration inventory and the actual per-thread callable tool registry can still diverge on app-server
0.144.2.yunusemregul commentedon Jul 16, 2026
Follow-up: I found a concrete cause for the Desktop/thread discrepancy and prepared a tested fix.
When
code_mode_onlyis active, discovered MCP tools are deferred totool_search. However,tool_searchitself had normal exposure and was filtered off the direct model tool surface. This explains how Desktop/config inventory and successfultools/listcan coexist with a thread that has neither directmcp__...tools nor a search bridge.The patch keeps
tool_searchtop-level asDirectModelOnly, leaves MCP tools deferred, and tests the complete Responses Lite search -> namespace -> MCP call flow.list_mcp_resourcesand fails to discover/use tool-only MCP servers like Context7 #14242The review PR is in the fork because the upstream repository uses invitation-only external contributions and rejected direct PR creation. The branch is ready to submit unchanged if a maintainer invites it.