We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a54d82 commit 785e09fCopy full SHA for 785e09f
src/mcp/client/stdio.py
@@ -103,7 +103,7 @@ async def stdio_client(server: StdioServerParameters):
103
104
process = await anyio.open_process(
105
[server.command, *server.args],
106
- env=server.env if server.env is not None else get_default_environment(),
+ env={**get_default_environment(), **server.env} if server.env is not None else get_default_environment(),
107
stderr=sys.stderr,
108
cwd=server.cwd,
109
)
0 commit comments