claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Windows Git Bash Path Resolution Failure for MCP Server

Open phillipphoenix opened this issue 1 year ago • 4 comments

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"}]

phillipphoenix avatar Jul 27 '25 09:07 phillipphoenix

Looks like a duplicate of #4223

tskimmett avatar Jul 27 '25 15:07 tskimmett

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 03 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 05 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 12 '26 14:01 github-actions[bot]