Does Codex support an equivalent of CLAUDE_PLUGIN_ROOT for an MCP server inside .mcp.json? #28145
-
|
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Codex does not appear to expose a For example: Here, This behavior is implemented in |
Beta Was this translation helpful? Give feedback.
Codex does not appear to expose a
CLAUDE_PLUGIN_ROOTequivalent. Instead, plugin MCP configurations support a relativecwd, which Codex resolves against the installed plugin root.For example:
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…