@@ -10,6 +10,7 @@ import (
1010 "log/slog"
1111 "maps"
1212 "net/http"
13+ "os"
1314 "os/exec"
1415 "strings"
1516 "sync"
@@ -415,7 +416,7 @@ func createMCPTransport(ctx context.Context, m config.MCPConfig, resolver config
415416 return nil, fmt.Errorf("mcp stdio config requires a non-empty 'command' field")
416417 }
417418 cmd := exec.CommandContext(ctx, home.Long(command), m.Args...)
418− cmd.Env = m.ResolvedEnv()
419+ cmd.Env = append(os.Environ(), m.ResolvedEnv()...)
419420 return &mcp.CommandTransport{
420421 Command: cmd,
421422 }, nil