Local paths in MCP args are not working in Codex app (but work in Codex CLI)

Resolved 💬 3 comments Opened Mar 13, 2026 by slavam2605 Closed Jul 2, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

26.311.21342 (993)

What subscription do you have?

Enterprise

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

MCP servers that are defined in my project have paths relative to the project directory in "args" parameter. This setup works with Codex CLI, but it doesn't work in Codex App

I have MCP servers configured for my project, defined in project_dir/.codex/config.toml like this:

[mcp_servers.my_mcp_server_name]
type = "stdio"
command = "bun"
args = ["some/folder/in/my/project/my-mcp.mjs"]

Notice that args has a path relative to my project folder. So the real path is /Users/My.Name/my_project/some/folder/in/my/project/my-mcp.mjs.
These files are committed in Git, so I can use them in all my worktrees of my project. And this setup works in Codex CLI (and in JetBrains Air, btw).

When I execute /mcp in Codex App, I see only MCPs that are configured in my global config + those that have a full path in their args parameter. And when I explicitly ask the agent to list all MCPs available to it, it lists only global ones + those with a full path.

This prevents my workflow with multiple worktrees and my own MCP servers configured for the project.

What steps can reproduce the bug?

  1. Create a project and it's own project-specific .codex/config.toml
  2. Add an MCP server with a local path in args parameter like this:
[mcp_servers.my_mcp_server_name]
type = "stdio"
command = "bun"
args = ["some/folder/in/my/project/my-mcp.mjs"]
  1. Run Codex App and start an agent thread in this project
  2. Try to use that MCP, run /mcp or ask the agent about available MCPs.

What is the expected behavior?

This MCP server is available and used by the agent.

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗