Fix Windows MCP subprocess timeout for git detection (bd-r79z)

- Add shell=True for subprocess.run() on Windows platform
- Improves git command PATH resolution on Windows
- Add debug logging for git detection failures
- Fixes GH#245 timeout issue where git rev-parse times out in MCP server

Amp-Thread-ID: https://ampcode.com/threads/T-71b3ce65-87cb-451a-a30d-162d76d92f9c
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-11-07 19:05:02 -08:00
parent 7fa0c93195
commit 62643ea8c6
4 changed files with 299 additions and 219 deletions

File diff suppressed because one or more lines are too long