PowerShell tool fails with FileNotFoundError (WinError 2), silently, even with debug logging enabled
Environment
- Claude Desktop version: 1.52386.0
- Windows-MCP extension version: 0.7.2
- Install type: Windows Store / Microsoft Store (MSIX)
- Windows 11
- Python: 3.13.15
- Extension install path (confirmed via logs):
C:\Users\<user>\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\Claude Extensions\ant.dir.cursortouch.windows-mcp
Problem
The PowerShell tool consistently fails with:
Command execution failed: FileNotFoundError: [WinError 2] The system cannot find the file specifiedThis happens on every invocation, regardless of the command given (tested with a bare hostname). Other tools (FileSystem, etc.) work correctly and reliably throughout — this is isolated to the PowerShell tool specifically.
What's been ruled out
- The target executable exists.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeis present, correct size (484 KB / 495,616 bytes), and its file-access timestamp updates in step with each failed attempt — something is touching it and still failing. - Antivirus interference. Surfshark Antivirus's real-time protection had quarantined
windows-mcp.exeearlier in this session (confirmed via its Protection History log, timestamped). A folder-level exclusion was added for the full MSIX-resolved.venvdirectory. Protection History has logged nothing new since, confirming the exclusion is holding — yet the PowerShell tool still fails identically. - Stale process / needs restart. Full Claude Desktop restarts (multiple, across the session) did not change the outcome.
- Corrupted install. A full uninstall/reinstall of the Windows-MCP extension did not change the outcome — identical error, byte-for-byte, immediately after reinstall.
- Insufficient logging detail. Enabled
WINDOWS_MCP_DEBUG=trueand restarted. Debug logging is confirmed active (visibleDEBUG:comtypes,DEBUG:asyncio,DEBUG:mcp.server.lowlevel.serverlines around other calls). But around the failing PowerShell call specifically, the log shows only:
DEBUG:mcp.server.lowlevel.server:Dispatching request of type CallToolRequest
DEBUG:mcp.server.lowlevel.server:Response sentNo exception trace, no stderr output tied to the failure. Whatever catches the FileNotFoundError inside the PowerShell tool's implementation does not appear to log it at any level.
Possibly related
This may share a root cause with #209 (MSIX ${__dirname} path resolution) — the extension runs under the same Windows Store virtualized path (Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\...) rather than the non-Store path. However, this is a distinct symptom: the server itself starts and runs correctly (confirmed via working FileSystem calls and successful tools/list), so this doesn't look like the same uv --directory startup failure — it's specifically the PowerShell tool's runtime path/subprocess resolution.
Reproduction
- Install Windows-MCP via the Claude Desktop extension on a Windows Store (MSIX) install of Claude Desktop.
- Call the
PowerShelltool with any command (e.g.hostname). - Observe
FileNotFoundError: [WinError 2]every time, with no further detail even in debug mode.
Request
Would appreciate:
- Confirmation of whether this is a known MSIX-path issue affecting the PowerShell tool specifically (separate from #209)
- If not logged intentionally, adding exception logging around the PowerShell tool's subprocess call so the actual missing path/file is surfaced
Source: CursorTouch/Windows-MCP