Propagate parent env to MCP server subprocess #23
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mcp-env-propagation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes Issue #18
Change
cli/main.py: passenv=os.environ.copy()toStdioServerParametersso the spawned MCP server inherits the CLI's environment. Without this, vars likeMARCHWARDEN_MODELset on the CLI process were silently dropped before reaching the researcher.scripts/docker-test.sh:MARCHWARDEN_MODELinto theaskcontainer if set on the host-itflags so non-interactiveaskruns don't fail withthe input device is not a TTY(needed when invoking from automation/agents)Out of scope
A more conservative env-passing strategy (whitelist
MARCHWARDEN_*plus specific keys instead of copying everything) — noted in Issue #18 as a future hardening.88/88 tests still passing.