Skip to content

fix(shared): add fallback PATH probing for Windows MSYS2 environments#798

Merged
horza-bora merged 2 commits intomainfrom
fix/msys2-path-fallback
Apr 8, 2026
Merged

fix(shared): add fallback PATH probing for Windows MSYS2 environments#798
horza-bora merged 2 commits intomainfrom
fix/msys2-path-fallback

Conversation

@Dave-London
Copy link
Copy Markdown
Owner

Summary

  • When the MCP server process doesn't inherit the shell's PATH (common in MSYS2/Git Bash), where fails to find commands like git and gh
  • Adds fallback probing of well-known Windows installation directories (Program Files, LocalAppData) for git, gh, node, and docker
  • Only triggers when where fails — zero impact on the normal resolution path

Closes #797

Test plan

  • Unit tests for _probeFallbackPaths and _WIN32_FALLBACK_PATHS
  • TypeScript compilation clean
  • All 75 runner tests pass

…ironments

When the MCP server process does not inherit the shell PATH, `where`
fails to find commands like git and gh. This adds a fallback that probes
well-known Windows installation directories for common dev tools.

Closes #797
@horza-bora horza-bora merged commit 4383155 into main Apr 8, 2026
11 checks passed
@horza-bora horza-bora deleted the fix/msys2-path-fallback branch April 8, 2026 07:13
@pare-ci-bot pare-ci-bot bot mentioned this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: MCP tools can't find git/gh on Windows (MSYS2/Git Bash PATH)

2 participants