fix(mcp): fix error loading config when running MCP Server with npx and bunx (#3922)

This commit is contained in:
DEV×PAIN 2025-05-25 00:07:05 +08:00 committed by GitHub
parent b655c0d2e9
commit a734aca02e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -451,6 +451,7 @@ export class McpHub {
env: {
...(config.env ? await injectEnv(config.env) : {}),
...(process.env.PATH ? { PATH: process.env.PATH } : {}),
...(process.env.HOME ? { HOME: process.env.HOME } : {}),
},
stderr: "pipe",
})