core-agent-ide/codex-rs/common/src
Gabriel Peal bdda762deb
[MCP] Allow specifying cwd and additional env vars (#5246)
This makes stdio mcp servers more flexible by allowing users to specify
the cwd to run the server command from and adding additional environment
variables to be passed through to the server.

Example config using the test server in this repo:
```toml
[mcp_servers.test_stdio]
cwd = "/Users/<user>/code/codex/codex-rs"
command = "cargo"
args = ["run", "--bin", "test_stdio_server"]
env_vars = ["MCP_TEST_VALUE"]
```

@bolinfest I know you hate these env var tests but let's roll with this
for now. I may take a stab at the env guard + serial macro at some
point.
2025-10-17 00:24:43 -04:00
..
approval_mode_cli_arg.rs [approval_policy] Add OnRequest approval_policy (#1865) 2025-08-05 20:44:20 -07:00
approval_presets.rs feat: copy tweaks (#2502) 2025-08-20 07:26:14 +00:00
config_override.rs Added allow-expect-in-tests / allow-unwrap-in-tests (#2328) 2025-08-14 17:59:01 -07:00
config_summary.rs feat: reasoning effort as optional (#3527) 2025-09-12 12:06:33 -07:00
elapsed.rs Add spacing to timer duration formats (#3471) 2025-09-12 12:05:57 -04:00
format_env_display.rs [MCP] Allow specifying cwd and additional env vars (#5246) 2025-10-17 00:24:43 -04:00
fuzzy_match.rs Scrollable slash commands (#1830) 2025-08-06 21:23:09 -07:00
lib.rs [MCP] Allow specifying cwd and additional env vars (#5246) 2025-10-17 00:24:43 -04:00
model_presets.rs Make model switcher two-stage (#4178) 2025-10-02 19:38:24 +00:00
sandbox_mode_cli_arg.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
sandbox_summary.rs feat: add /tmp by default (#1919) 2025-08-07 00:17:00 -07:00