Windows Git Bash Path Resolution Failure for MCP Server

Resolved 💬 4 comments Opened Jul 27, 2025 by phillipphoenix Closed Jan 5, 2026

Bug Description
I am trying to add an MCP server to Claude Code running on Windows (not in WSL) and I am getting the following error:
[ERROR] MCP server "shadcn-ui" Server stderr: /usr/bin/bash: Files\Git\bin\bash.exe: No such file or directory

I am running this from Git Bash (inside Warp)

Environment Info

  • Platform: win32
  • Terminal: WarpTerminal
  • Version: 1.0.61
  • Feedback ID: be221eef-93ac-49b6-ba82-0f6dea58402b

Errors

[{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: Cannot open Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:924:11)\n    at execSync (node:child_process:996:15)\n    at i7 (file:///C:/Users/pphoe/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:865:5106)\n    at St (file:///C:/Users/pphoe/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1346:1937)\n    at file:///C:/Users/pphoe/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1876:7273\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///C:/Users/pphoe/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1877:1485\n    at async Promise.all (index 12)","timestamp":"2025-07-27T09:02:59.122Z"}]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗