Skip to content

Commit e4db4f4

Browse files
authored
fix: check for undefined configInjected
1 parent 8961614 commit e4db4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/mcp/McpHub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class McpHub {
452452
args: configInjected.args,
453453
cwd: configInjected.cwd,
454454
env: {
455-
...configInjected.env,
455+
...(configInjected.env || {}),
456456
...(process.env.PATH ? { PATH: process.env.PATH } : {}),
457457
...(process.env.HOME ? { HOME: process.env.HOME } : {}),
458458
},

0 commit comments

Comments
 (0)