Skip to content

Disabled computer-use MCP config uses invalid relative path and breaks third-party MCP discovery #35448

Open

Description

@soulhakr

Summary

Codex Desktop leaves disabled, plugin-managed computer-use MCP server configuration in globally discoverable MCP config locations. Third-party tools that scan known agent config files can pick up this disabled server and attempt to spawn it anyway.

In my case, Warp's "Auto-spawn servers from third-party agents" feature detected Codex's computer-use MCP server configuration and attempted to start it, even though Codex had the server set to disabled. The spawn failed because the exported command is a relative path with cwd = ".", which is not resolvable from the third-party tool's working directory.

This produced persistent MCP connection errors in Warp that could not be removed through Warp's UI, because Warp was re-discovering the server from Codex-managed config files.

Environment

  • OS: macOS Tahoe 26.5.2
  • Hardware: Apple Silicon MacBook Pro
  • App: ChatGPT/Codex Desktop v26.715.72359
  • Plugin: OpenAI-bundled Computer Use plugin
  • Third-party tool affected: Warp v0.2026.07.22.09.01.stable_01

Codex Config Observed

Codex showed Computer Use installed, but the MCP server toggle was off/disabled. However, ~/.codex/config.toml still contained:

[mcp_servers.computer-use]
command = "./Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient"
args = ["mcp"]
cwd = "."
enabled = false

[plugins."computer-use@openai-bundled"]
enabled = true

The enabled = false field appears to be Codex-specific metadata. Third-party MCP config readers do not necessarily know to honor it.

Plugin Cache Configs Observed

The plugin cache also exposed .mcp.json files containing a computer-use MCP entry without any enabled/disabled state:

~/.codex/plugins/cache/openai-bundled/computer-use/1.0.1000451/.mcp.json
~/.codex/.tmp/bundled-marketplaces/openai-bundled/plugins/computer-use/.mcp.json

Those files contained this kind of entry:

{
  "mcpServers": {
    "computer-use": {
      "command": "./Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient",
      "args": ["mcp"],
      "cwd": "."
    }
  }
}

Because these are standard-looking MCP configuration files with no disabled flag, third-party tools can reasonably treat the server as available.

Actual Installed Paths

The real executable exists under the Codex home directory:

~/.codex/computer-use/Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient

A plugin launcher also exists in the plugin cache:

~/.codex/plugins/cache/openai-bundled/computer-use/1.0.1000502/bin/computer-use-client-launcher

That launcher resolves the real client through CODEX_HOME:

${CODEX_HOME:-${HOME}/.codex}/computer-use/Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient

There also appears to be a newer plugin .mcp.json shape that points at the launcher instead:

{
  "mcpServers": {
    "computer-use": {
      "command": "./bin/computer-use-client-launcher",
      "args": ["mcp"],
      "cwd": ".",
      "env_vars": ["CODEX_HOME"]
    }
  }
}

That is better than pointing directly at ./Codex Computer Use.app/..., but it may still be ambiguous for third-party readers unless cwd is resolved relative to the plugin directory.

Error Seen in Warp

Warp attempted to auto-spawn the disabled server and produced errors like:

[error] MCP: Failed to spawn 'computer-use': command './Codex Computer Use.app/.../SkyComputerUseClient' not found (cwd: .)
[error] MCP: Failed to connect to server: Transport creation error: No such file or directory (os error 2)

Expected Behavior

Disabled plugin-managed MCP servers should not be exposed in a way that third-party MCP discovery tools interpret as globally available.

At least one of these should be true:

  1. Disabled plugin-managed MCP server entries are removed from ~/.codex/config.toml.
  2. Disabled plugin-managed MCP server entries are not written to standard .mcp.json files in discoverable plugin/cache locations.
  3. If disabled entries must remain, their disabled state is represented in a way that third-party-compatible tooling can reliably detect or ignore.
  4. Exported MCP commands use resolvable absolute paths, a stable launcher command, or a clearly valid working directory.

Actual Behavior

Codex leaves a disabled computer-use MCP entry in ~/.codex/config.toml:

./Codex Computer Use.app/... with cwd = "."

Codex also exposes plugin cache .mcp.json files that contain the same server without an enabled/disabled field.

Third-party tools that scan known MCP config locations can therefore discover and try to spawn computer-use, even though the user disabled the server in Codex. Since the command is relative and cwd = ".", the command is invalid outside Codex's expected execution context.

Local Verification

Verified locally:

  • The Codex UI showed the computer-use MCP server disabled.
  • ~/.codex/config.toml still contained [mcp_servers.computer-use] with enabled = false.
  • Plugin cache .mcp.json files contained computer-use entries with no disabled field.
  • The invalid relative command did not exist from the current third-party/workspace context.
  • The real executable existed under ~/.codex/computer-use.
  • Warp repeatedly rediscovered the server and reported MCP spawn/connect errors.
  • Removing the [mcp_servers.computer-use] block from ~/.codex/config.toml and deleting the plugin cache .mcp.json entries stopped Warp from discovering the broken server.

Not verified:

  • ChatGPT suggested that using working_directory = "~/.codex/computer-use" should make the direct relative command resolvable, because that is where Codex Computer Use.app exists. This has not been tested or confirmed.

Why This Looks Like a Codex Bug

  • Codex writes or retains disabled plugin-managed MCP configuration in locations third-party tools scan.
  • enabled = false in TOML appears to be Codex-specific and is not a reliable interoperability signal.
  • The plugin cache .mcp.json files are standard MCP-style configs and contain no disabled state.
  • The relative command plus cwd = "." is fragile outside Codex's internal launch context.
  • A disabled server should not create user-visible errors in other MCP-aware tools.

Configuration Hygiene Concern

Separate from the third-party interoperability failure, this also looks like a configuration hygiene issue. A disabled plugin-managed MCP server remains represented as an apparently launchable server in user-visible/global config files and plugin cache .mcp.json files.

That makes the user's local Codex state harder to reason about: the UI says the server is disabled, while persisted config still describes a server that external tools can discover and attempt to run. Keeping disabled or stale plugin-managed MCP entries out of globally discoverable config would make Codex's persisted state better match the UI state and reduce accidental side effects across MCP-aware tooling.

Suggested Fixes

Possible fixes:

  1. Do not write disabled plugin-managed MCP server entries to ~/.codex/config.toml.
  2. Do not expose disabled plugin MCP configs in standard .mcp.json files in globally discoverable cache/temp locations.
  3. If Codex needs to retain disabled entries, store them in a Codex-private config file not intended for third-party MCP discovery.
  4. Include a clear namespaced disabled marker such as "x-codex-enabled": false in plugin .mcp.json files, so third-party tools can choose to honor it.
  5. Prefer the plugin launcher over the direct app-relative path.
  6. Ensure exported MCP server definitions have a resolvable command and working directory when read outside Codex.
  7. Consider publishing an explicit registry/sentinel file for MCP servers intended to be globally available, instead of requiring third-party tools to infer availability from all plugin cache configs.

Related Issues

Activity

  1. added
    bug
    app
    mcp
    on Jul 26, 2026
  2. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor
  3. soulhakr commented on Jul 26, 2026

    @soulhakr
    Author

    Thanks for the duplicate check. I reviewed #34269, and I think this is related but not the same issue.

    #34269 is about Codex CLI/TUI itself starting a disabled cached plugin MCP server (openai-api-key-local-confirmation) and then hanging indefinitely because startup has no timeout/child-exit handling.

    This issue is about Codex Desktop exposing disabled computer-use MCP config in globally discoverable config/cache files, which causes a third-party MCP-aware tool (Warp) to discover and attempt to spawn that disabled server. The failure is outside Codex's own startup path and is specifically about third-party discovery/interoperability plus stale/discoverable config hygiene.

    The overlapping root theme is disabled plugin-managed MCP config not being consistently suppressed, but the affected product surface, plugin, failure mode, and expected fix surface are different enough that I think this should remain open as a separate issue.

  4. yaacovcorcos commented on Nov 13, 2026

    @yaacovcorcos

    Same entry, second symptom: when it is enabled, Codex itself can't start it.

    ~/.codex/config.toml on macOS had the entry above, but enabled:

    [mcp_servers.computer-use]
    command = "./Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient"
    args = ["mcp"]
    cwd = "."
    enabled = true

    Codex resolves the relative command against the app-server process's own working directory, not the thread cwd or CODEX_HOME. So the server only starts if codex app-server happens to be launched from ~/.codex/computer-use.

    Checked with thread/start on codex app-server, watching mcpServer/startupStatus/updated for computer-use:

    Codex app-server launched from thread cwd Result
    ChatGPT app's bundled codex-cli 0.167.0-alpha.4.1 / (as the app runs it) a project folder failed: MCP startup failed: No such file or directory (os error 2)
    codex-cli 0.169.0 ~ a project folder failed, same error
    codex-cli 0.169.0 ~ ~/.codex/computer-use failed, same error
    codex-cli 0.169.0 ~/.codex/computer-use a project folder ready

    Effects: the Computer Use tools are missing from Codex threads started this way, with nothing telling the user. Clients that surface MCP startup failures (T3 Code since pingdotgg/t3code#34771) now show this error at the start of every new Codex thread.

    Replacing both paths with absolute ones (~/.codex/computer-use/..., expanded) makes the first two rows report ready.

    Possible fixes, either:

    1. the installer writes an absolute command (or the CODEX_HOME-based computer-use-client-launcher mentioned above), or
    2. Codex resolves a relative command and cwd in config.toml against a fixed base (the config file's directory, or the plugin root for plugin servers), never the process working directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcomputer-usemcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions