Bug: MCP stdio client doesn't propagate parent env to server subprocess #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Discovered during M2.3 smoke test.
cli/main.pyspawns the web researcher MCP server viaStdioServerParameters. By default themcpSDK does not pass the parent process's environment to the child, so env vars likeMARCHWARDEN_MODELset on the CLI process were silently lost.Workaround already shipped on
chore/smoke-test-1: passenv=os.environ.copy()toStdioServerParameters. This unblocks the smoke test but should be reviewed — copying the full env may be too broad. A future fix could whitelistMARCHWARDEN_*plus any keys the server actually reads.