Skip to content
Discussion options

You must be logged in to vote

Codex does not appear to expose a CLAUDE_PLUGIN_ROOT equivalent. Instead, plugin MCP configurations support a relative cwd, which Codex resolves against the installed plugin root.

For example:

  {
    "mcpServers": {
      "example": {
        "command": "node",
        "args": ["server/index.js"],
        "cwd": "."
      }
    }
  }

Here, cwd: "." becomes the plugin root, so paths in args can be relative to it. A subdirectory such as "cwd": "server" is also resolved beneath the plugin root.

This behavior is implemented in plugin_config.rs (https://github.com/openai/codex/blob/main/codex-rs/codex-mcp/src/plugin_config.rs). Therefore, relative cwd is the native Codex replacement for embe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tanin47
Comment options

Answer selected by tanin47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants