core-agent-ide/docs
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
..
advanced.md [MCP] Improve docs (#4811) 2025-10-06 11:43:50 -04:00
authentication.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
CLA.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
config.md [MCP] Allow specifying cwd and additional env vars (#5246) 2025-10-17 00:24:43 -04:00
contributing.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
exec.md Fix event names in exec docs. (#4833) 2025-10-06 10:07:52 -07:00
experimental.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
faq.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
getting-started.md enable-resume (#3537) 2025-09-14 19:33:19 -04:00
install.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
license.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
open-source-fund.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
platform-sandboxing.md chore: subject docs/*.md to Prettier checks (#4645) 2025-10-03 11:35:48 -07:00
prompts.md Custom prompt args (numeric) (#4470) 2025-09-29 16:14:37 -07:00
release_management.md fix: make GitHub Action publish to npm using trusted publishing (#3431) 2025-09-16 20:33:59 -07:00
sandbox.md add codex sandbox {linux|macos} (#4782) 2025-10-05 15:51:57 -07:00
zdr.md Never store requests (#3212) 2025-09-05 10:41:47 -07:00