We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1fce3 commit e761b68Copy full SHA for e761b68
extensions/cli/src/services/MCPService.ts
@@ -509,8 +509,12 @@ export class MCPService
509
serverConfig: StdioMcpServer,
510
): StdioClientTransport {
511
const env: Record<string, string> = serverConfig.env || {};
512
- if (process.env.PATH !== undefined) {
513
- env.PATH = process.env.PATH;
+ if (process.env) {
+ for (const [key, value] of Object.entries(process.env)) {
514
+ if (!(key in env) && !!value) {
515
+ env[key] = value;
516
+ }
517
518
}
519
520
return new StdioClientTransport({
0 commit comments