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.
injectEnv
1 parent d87023b commit e152a93Copy full SHA for e152a93
src/services/mcp/connection/handlers/StdioHandler.ts
@@ -17,6 +17,7 @@ import {
17
McpResourceTemplate,
18
McpServer,
19
} from "../../types"
20
+import { injectEnv } from "../../../../utils/config"
21
22
/**
23
* Stdio connection handler
@@ -66,7 +67,7 @@ export class StdioHandler implements ConnectionHandler {
66
67
command: config.command,
68
args: config.args,
69
env: {
- ...config.env,
70
+ ...(config.env ? await injectEnv(config.env) : {}),
71
...(process.env.PATH ? { PATH: process.env.PATH } : {}),
72
},
73
stderr: "pipe",
0 commit comments