You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows can not launch MCP servers using PNPM #3245
Then launch codex and type /mcp to see that MCP server "request timed out"
What is the expected behavior?
MCP servers should be connected normally
What do you see instead?
No response
Additional information
PNPM is working fine on Linux and WSL2, only if running from windows has this problem
Windows + PNPM was common problems with lots of CLI agent tool, Claude Code and Gemini CLI used to have this problems, but now they have already fixed this bug
Activity
adsqx commentedon Sep 6, 2025
#2968 I sent a pull request that completely solves this problem by loading reactively.
However, it hasn’t been reviewed, and now there are conflicts.
Using which in Rust makes your code Windows-friendly because it resolves the exact path to the command before execution.
On Linux/Mac, it behaves like the which shell command.
On Windows, it works like where, automatically handling .exe, .cmd, .bat, and PATHEXT rules.
This guarantees you're running the intended program rather than an alias or script and avoids environment and configuration conflicts.
fix(windows-path): preserve PATH order; include core env vars (#5579)
fix(windows-path): preserve PATH order; include core env vars (openai…
fix(windows-path): preserve PATH order; include core env vars (openai…
fix(windows-path): preserve PATH order; include core env vars (openai…