Fixes #9151 When Windows VS Code connects to WSL, MCP servers failed to start with "cmd.exe not found" because resolveCommandForPlatform() wrapped batch commands (npx, uvx, etc.) with cmd.exe even when the remote is WSL. Changes: - Make resolveCommandForPlatform() async to fetch IDE info - Add isWindowsHostWithWslRemote check (same pattern as PR #9679) - Skip cmd.exe wrapping when remoteName === "wsl" - Add tests for WSL, local Windows, Linux, and non-batch scenarios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| mcp | ||
| providers | ||
| retrieval | ||
| index.ts | ||