Repository navigation
Description
Summary
Codex Desktop sees a custom stdio MCP server and successfully discovers its tools via tools/list, but the tools are not exposed to Desktop threads or tool_search.
This appears to be a regression or exposure-layer bug in Desktop/App Server 0.124.0-alpha.2.
Environment
- Codex Desktop client:
26.422.21637 - Codex/App Server:
0.124.0-alpha.2 - Platform: macOS
- Server type: custom stdio MCP server
- Config location: project-scoped
.codex/config.toml
MCP config
[mcp_servers.interdomestik_qa]
command = "/bin/bash"
args = ["scripts/start-repo-qa.sh"]
cwd = "."The wrapper script resolves the repo root, changes into it, and starts a TypeScript MCP server over stdio.
Expected behavior
The following custom MCP tools should be exposed to Desktop threads and callable via names like mcp__interdomestik_qa__project_map:
project_mapread_filescode_searchcheck_healthpr_verifysecurity_guarde2e_gate
Actual behavior
- Desktop
/mcpshows the server enabled. codex mcp list --jsonshows the server enabled.- Repo preflight passes, including live MCP
tools/listdiscovery. - Desktop logs show the server starts and returns a
ListToolsResultcontaining the expected custom QA tools. tool_searchreturns 0 callableinterdomestik_qatools.- Thread request payloads do not include any
mcp__interdomestik_qa__*tools. - The current thread's
thread_dynamic_toolsonly contains generic Desktop tools such asautomation_update,read_thread_terminal,load_workspace_dependencies, andinstall_workspace_dependencies.
Evidence collected locally
Manual/repo preflight confirms live MCP discovery works:
pnpm mcp:preflightDesktop logs show the custom server is started and queried successfully:
- custom QA server starts on stdio
- client initializes against the server
ListToolsRequestis sentListToolsResultis received with the expected custom tools
But those discovered tools are not present in the thread/deferred tool surface.
Historical comparison from local Codex state/logs:
- An Apr 20 thread on Codex
0.91.0successfully called tools such as:mcp__interdomestik_qa__read_filesmcp__interdomestik_qa__code_searchmcp__interdomestik_qa__project_map
- Apr 24 threads on Codex
0.124.0-alpha.2do not expose those tools, despite successful/mcpdiscovery.
I also checked whether stale Desktop workspace state was the cause. The active workspace root and thread cwd both point to the correct repo, but the custom MCP tools are still not exposed.
Suspected failure point
The failure appears to be after successful MCP tools/list discovery and before Desktop registers/indexes those tools into the per-thread/deferred tool surface.
It does not appear to be caused by the MCP server implementation, stdio transport, project config, or CLI discovery, because live tools/list discovery succeeds outside the Desktop thread tool surface.
Activity
github-actions commentedon Apr 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
codex mcp listshows server enabled #17904Powered by Codex Action
arbenl commentedon Apr 24, 2026
Update after full Codex Desktop restart:
Outcome is still: Discovery works, exposure still fails.
Fresh thread details:
/Users/arbenlila/development/interdomestik-crystal-home019dc0ed-8043-78b1-badb-e1a5aa5e6f02tool_searchfor expected QA tools returned 0 tools, both initially and after rechecking.codex mcp list --jsonshowsinterdomestik_qaenabled.pnpm mcp:preflightpassed, including livetools/listdiscovery.thread_dynamic_toolsfor the current thread contains only:automation_updateread_thread_terminalload_workspace_dependenciesinstall_workspace_dependenciesthread_dynamic_toolscontains 0interdomestik_qa,project_map,read_files, orcode_searchentries.interdomestik-qaversion1.0.0.ListToolsResultfor this same thread containing the expected QA tool names.tools/listfailure.Versions after restart:
codex --version:codex-cli 0.124.0cli_version:0.125.0-alpha.3Codex.app26.422.30944, build2080Most precise failure boundary:
Desktop/RMCP can start
interdomestik_qaand receiveListToolsResult, but those tools are not persisted/indexed into the current thread's callable dynamic tools, sotool_searchexposes none of them.arbenl commentedon Apr 24, 2026
Reviewed the potential duplicates suggested by the bot. I do not think this is an exact duplicate, though it is likely related to the same MCP exposure/indexing area.
Comparison:
ListToolsResultfor the same current thread containing the expected tool names, whilethread_dynamic_toolsstill contains no custom MCP entries.codex mcp listshows server enabled #17904 is aboutcodex execsession schema. This issue is Desktop thread/tool_search exposure.tools/list, so OAuth is not involved.So the narrower failure here remains: Desktop/RMCP successfully starts the stdio server and receives
ListToolsResult, but the discovered tools are not persisted/indexed into the thread's callable dynamic tools.arbenl commentedon Apr 24, 2026
Additional cross-client comparison from the same local repo/machine:
Gemini/Antigravity is able to mount and use MCP tools successfully in this repo context. Verified working there:
mcp-context-server/project_mapmcp-context-server/read_filescontext7/resolve-library-idplaywright/browser_tabse2e-test-generator/generate_basic_testThis further suggests the MCP server/environment is not the root problem. Other MCP clients can index and call repo/context/playwright-style MCP tools on the same machine, while Codex Desktop still discovers
interdomestik_qaviatools/listbut does not expose the tools to the thread/tool_search surface.One separate note: Gemini's
repo-qawrapper hit a JSON parsing/encoding issue (invalid character 'â') for some QA commands, which looks like command-output formatting inside that wrapper. That is distinct from this Codex issue, where the tools are not mounted at all despite successfulListToolsResultdiscovery.arbenl commentedon Apr 26, 2026
Additional related issue with a useful version boundary: #19649
That report describes the same core failure class: MCP servers are registered and visible via
codex mcp list/codex mcp get, but their tools are not injected into Codex threads.Important detail from #19649:
codex-cli 0.120.0codex-cli 0.122.0-alpha.13and later0.120.0That lines up with this Desktop report:
0.91.0had usablemcp__interdomestik_qa__...calls0.124.x/0.125.xdiscovertools/listbut do not expose the tools totool_search/thread_dynamic_toolsSo this issue may be the Desktop/app-server manifestation of the same regression family as #19649. This issue still adds Desktop-specific evidence: the logs show
ListToolsResultfor the same current thread, whilethread_dynamic_toolsremains missing the discovered MCP tools.rnett commentedon May 1, 2026
This may be #20574, are you using a custom or older model?
arbenl commentedon May 3, 2026
Thanks. I do not think this is #20574.
In this repro I am not using a custom provider like Ollama/LiteLLM/Bifrost. The failing Desktop thread is using the normal Codex Desktop / ChatGPT path with
gpt-5.5.The failure signature is also different:
tool_searchis present but aborts withunsupported payloadwhen called through a non-native provider.tool_searchexecutes successfully, but returns an empty result forinterdomestik_qa.codex mcp list --jsonshowsinterdomestik_qaenabled.pnpm mcp:preflightpasses, including livetools/listdiscovery from the stdio server.ListToolsResultcontaining the expectedinterdomestik_qatool names.mcp__interdomestik_qa__...namespace becomes callable.So this still looks like a Desktop/app-server MCP exposure/indexing issue, not the custom-provider
tool_searchpayload bug from #20574.arbenl commentedon May 3, 2026
Additional update: I also tested a repo-side hardening for a possible stale-workspace-root factor.
Originally the project-scoped MCP entry used a relative cwd:
I changed it to pin the server cwd to the absolute repository root while keeping the launcher argument unchanged:
I also added a local preflight guard so
pnpm mcp:preflightfails ifinterdomestik_qaresolves with a relative cwd or a cwd outside this repo.Verification after that hardening:
codex mcp list --jsonresolvesinterdomestik_qawith the absolute repo cwd.pnpm mcp:preflightpasses.tools/listdiscovery still passes and returns the expected QA tools.However, this did not fix Desktop thread exposure. In the running Desktop session,
tool_searchstill returns 0 results forinterdomestik_qa/project_map/read_files/code_search.So the absolute-cwd change is a useful repo-side mitigation that removes stale root ambiguity, but it is not a complete fix for this issue. The remaining failure is still in the Desktop/app-server exposure/indexing step after successful MCP discovery.
arbenl commentedon May 3, 2026
Additional update from the repo side: I hardened the
interdomestik_qaMCP configuration to remove possible local blockers, but the Desktop exposure failure remains in the current thread.Repo-side changes made and verified:
interdomestik_qais pinned to the absolute repository cwd instead ofcwd = ".".enabled_toolsallowlist for the core agent tools:project_mapread_filesread_file_rangecode_searchgit_status_compactgit_branch_infochanged_filesscope_auditcheck_healthpr_verifysecurity_guarde2e_gateadditionalProperties: false.pnpm mcp:preflightnow verifiescodex mcp get interdomestik_qa --json, including the parsedenabled_toolsallowlist.Verification results:
codex mcp get interdomestik_qa --jsonshows the server enabled with the absolute cwd and the parsedenabled_toolsallowlist.pnpm mcp:preflightpasses.tools/listdiscovery passes.tools/listreturns 35 tools, all with strict object schemas, and the core allowlisted tools are present.However, this existing Codex Desktop thread still returns 0 results from
tool_searchforinterdomestik_qa project_map read_files code_search ....So the repo/server side is now exposure-ready: no relative cwd, no unbounded Codex tool surface, and no permissive input schemas. If a fresh Desktop thread still does not surface
mcp__interdomestik_qa__..., the remaining failure is still in Desktop/app-server MCP indexing/injection after successful discovery.arbenl commentedon May 4, 2026
Additional update from the current Desktop session after restart and after testing the local-plugin/CLI distinction.
Current state:
Interdomestik QAplugin as available/enabled in the session metadata.tool_searchstill returns 0 results forinterdomestik_qa,project_map,read_files, andcode_search.mcp__interdomestik_qa__...namespace in the Desktop session.interdomestik-qa, while the MCP server id remainsinterdomestik_qa; Desktop can know about the plugin/server, but the tools still are not admitted into the callable tool index.CLI / local stdio contrast from the same repo and machine:
tools/list, and can execute tool calls.pnpm mcp:tool listreturns the expected QA tools.pnpm mcp:tool call read_file_range '{"file":"package.json","startLine":1,"endLine":8}'succeeds.interdomestik_qaas enabled with the expected command/cwd/env configuration.So the current narrowed boundary is:
initializeworks.tools/listworks.tool_search/ the callablemcp__...namespace.I also checked public issues/docs for evidence that Codex Desktop has started admitting local custom MCPs into
tool_search; I did not find a confirmed fix or documented supported path for that yet. This still looks like a Desktop/app-server MCP admission/indexing bug, not a repo MCP implementation problem.23 remaining items
TeaShaman-cyber commentedon Aug 8, 2026
Control comparison after restart: Gramps exposed, GitHub unavailable
After a full restart of the current Codex Desktop build (
26.803.5235.0), the live Gramps MCP control became available in the same Desktop context:mcp__family_gramps__*tools appeared in the native manifest;mcp__family_gramps__get_metadatacall succeeded;githubinunavailable_servers.This control comparison rules out a generic inability to refresh the Desktop manifest after restart. The refreshed Desktop can expose and call one external MCP server, while the configured GitHub MCP server remains unavailable. The remaining boundary is therefore GitHub-specific admission, authentication, transport handling, or exposure rather than a universal stale-manifest problem.
No credentials or private payloads are included here.
bbingz commentedon Aug 8, 2026
@TeaShaman-cyber the Gramps vs GitHub control after the same restart is the decisive pin:
mcp__family_gramps__*tools in the native manifest + live call OKunavailable_serversThat rules out a universal stale-manifest / “Desktop never re-binds external MCPs” story. Remaining failure is GitHub-specific admission (auth/env inheritance for
bearer_token_env_var, transport handling, or exposure), not Desktop MCP plumbing in general. CLI path with explicitGH_TOKENremains the working fallback.m13v commentedon Sep 2, 2026
the
always_defer_mcp_toolspath is the swallow here: it routes all 3 tools into tool_search, and when tool_search isn't mounted in the thread they land on a surface that doesn't exist. tool_count=3 logs like a clean handoff while the tools sit nowhere callable, which is why flipping the flag to false changed nothing. defer has to assert the target surface is live before it hands off, else fall back to direct exposure.m13v commentedon Sep 2, 2026
your root cause has tool_search filtered out, but arbenl's repro has it executing and returning 0 for interdomestik_qa. a hidden bridge errors on call, it doesn't return empty. so the DirectModelOnly patch closes a real exposure gap, just maybe not this one, and the passing e2e goes green on a search->deferred path that was already open in this trace, leaving the empty index at thread_dynamic_tools unaudited.
m13v commentedon Sep 2, 2026
the supports_search_tool:false path that works 2/2 looks like the fix, but going direct under Lite reintroduces exactly what deferred tool_search exists to avoid: every MCP schema serialized into every request. fine at 3 tools, not at 30.
m13v commentedon Sep 2, 2026
unknown MCP server linearon a resource probe while mcp list saysenabledis the swallow: the migration carried the connector into the catalog every green light reads, never into the thread's server registry that actually gates the call. so 'existing connections unaffected' is true about the catalog and false about the surface, and every health check keeps reading the catalog.m13v commentedon Sep 2, 2026
an auth test wouldn't catch this though. it asserts tools/list round-trips, which succeeds here, so it stays green while thread_dynamic_tools comes back empty. the layer that fails is registration, and nothing in the harness asserts on it. green check, wrong layer.
m13v commentedon Sep 2, 2026
resources/list returning scratchpads and todos is what keeps this quiet: Codex reports connected, resources render, so every check reads green while the action-tool surface comes back empty. that's a partial mount presenting as a healthy connection. it's also why flipping tool_search_always_defer_mcp_tools = false does nothing, the defer flag isn't the layer dropping the tools, registration is, and nothing downstream asserts on it.
m13v commentedon Sep 2, 2026
the cache fallback you'd give capture_binding_with_metadata is exactly what makes /mcp read green while the thread stays empty. copy it into the binding and you don't close the gap, you invert it: the model gets a spec for a server whose client isn't ready, so the tool shows up and fails at call time instead of never appearing. silent-absent becomes silent-broken.
m13v commentedon Sep 2, 2026
the gramps control narrows it, but it still confounds two variables: the bearer-token auth and the remote-vs-local path. if the real cause is the same registration drop keyed on transport or manifest, treating this as an auth-admission gate patches the wrong layer and the exposure gap survives it. the cleaner isolation is an unauthenticated remote streamable_http server: same transport, no token. if that one also fails to mount, auth isn't the discriminator.
m13v commentedon Sep 2, 2026
the contract as listed already passes today. configured, authenticated, tools/list all come back green, and Desktop treats that same green as "registered." that's the silent partial: the registration link no-ops without erroring, so the chain reports done while the thread surface stays empty. the one link that actually gates a call, tools indexed into thread_dynamic_tools, is the only one nothing asserts on. a contract that doesn't diff the post-registration surface against the ListToolsResult just formalizes the gap.
m13v commentedon Sep 2, 2026
the restart is the tell: it completes clean and mcp list re-reads green, but a full restart only re-runs discovery, not the index step that feeds the mention picker. so it reports healthy while the broken layer stays untouched. open-design being another server with the same tools/list-green, picker-empty split points at the indexer, not any one server.
m13v commentedon Sep 2, 2026
cache-fallback is the half to watch: on a bind Err it serves the 30-min-stale catalog, so a server that's actually failing to bind reads 'present' and only errors at call time. the exposure event surfaces the skip; the fallback quietly re-buries it.
m13v commentedon Sep 2, 2026
the HTTP + node_repl tools mounting alongside the missing STDIO set in the same thread is the tell: init treats a partial registration as ready. nothing diffs mounted sources against discovered, so 2-of-3 reads identical to 3-of-3, and the STDIO drop passes as done with no exposure error to catch it.