diff --git a/src/client/stdio.ts b/src/client/stdio.ts index 07e9a196..38c6ded8 100644 --- a/src/client/stdio.ts +++ b/src/client/stdio.ts @@ -116,7 +116,7 @@ export class StdioClientTransport implements Transport { this._serverParams.command, this._serverParams.args ?? [], { - env: this._serverParams.env ?? getDefaultEnvironment(), + env: {...getDefaultEnvironment(), ...(this._serverParams.env ?? {}) }, stdio: ["pipe", "pipe", this._serverParams.stderr ?? "inherit"], shell: false, signal: this._abortController.signal,