@@ -10,6 +10,7 @@ import (
10 "log/slog"
10 "log/slog"
12 "net/http"
12 "net/http"
@@ -415,7 +416,7 @@ func createMCPTransport(ctx context.Context, m config.MCPConfig, resolver config
415 return nil, fmt.Errorf("mcp stdio config requires a non-empty 'command' field")
416 return nil, fmt.Errorf("mcp stdio config requires a non-empty 'command' field")
417 cmd := exec.CommandContext(ctx, home.Long(command), m.Args...)
418 cmd := exec.CommandContext(ctx, home.Long(command), m.Args...)
418− cmd.Env = m.ResolvedEnv()
419+ cmd.Env = append(os.Environ(), m.ResolvedEnv()...)
419 return &mcp.CommandTransport{
420 return &mcp.CommandTransport{
420 Command: cmd,
421 Command: cmd,