Skip to content

Codex Desktop ignores project .codex/config.toml MCP server (Serena) and only loads ~/.codex/config.toml #13025

@PaulRBerg

Description

@PaulRBerg

What version of Codex CLI is running?

codex-cli 0.104.0

What subscription do you have?

Logged in using ChatGPT (plan tier unknown).

Which model were you using?

gpt-5.3-codex

What platform is your computer?

macOS v26.3

What terminal emulator and version are you using (if applicable)?

Codex Desktop app (internal terminal context). In-command env shows TERM=dumb and empty TERM_PROGRAM.

What issue are you seeing?

Project-scoped MCP config is ignored for this thread/workspace.

In /Users/prb/sablier/new-ui, .codex/config.toml contains a valid Serena MCP server entry:

[mcp_servers.serena]
command = "uvx"
args = ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--context", "codex", "--project-from-cwd"]

But inside the Codex Desktop thread runtime, Serena is missing:

  • available MCP resources/templates are empty for Serena tools
  • Serena tools (find_symbol, rename_symbol, etc.) are not exposed
  • codex mcp list only shows servers from ~/.codex/config.toml
  • codex mcp get serena returns: No MCP server named 'serena' found.

The Serena command itself works when run manually, so startup command/config appears valid.

What steps can reproduce the bug?

  1. In a project, configure Serena only in project-local .codex/config.toml (not in ~/.codex/config.toml).
  2. Open that project in Codex Desktop.
  3. Start a thread and inspect MCP availability.
  4. Run codex mcp list and codex mcp get serena from the same workspace.
  5. Observe that only user-level servers are loaded and Serena is absent.
  6. Run Serena manually:
    uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context codex --project-from-cwd
  7. Observe manual startup succeeds.

Thread ID: 019c9ffc-da8e-7500-8768-c516825ce9ce

What is the expected behavior?

Project-scoped .codex/config.toml should be merged into runtime MCP config (for trusted projects), so Serena should be available in the Desktop thread/toolset.

Additional information

Possibly related to MCP visibility inconsistency issues in Desktop (for example #10499), but this repro is specifically about project-local config not being loaded while user-global config is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversplugins

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions