Files
tendril/src
Ryan Parmeter 034e718a78 fix: Simplify binary resolution - return Homebrew path directly on macOS
## Problem
Binary path discovery was still failing on macOS because:
1. PathBuf::exists() returns false in WASM sandbox for all paths
2. Even though we check all paths first, they all fail exists() check
3. We then hit the fallback logic and return the first absolute path

## Solution
Since WASM sandbox restricts filesystem checks anyway, take a pragmatic approach:
- On macOS: Return /opt/homebrew/bin/gitea-mcp-server directly (Homebrew is the recommended method)
- On Linux/Windows: Try to check exists() on standard paths, then PATH, then fallback

This works because:
- Homebrew is the recommended/preferred installation method for macOS
- Most macOS users installing via Homebrew will use that path
- Users can still override with gitea_mcp_binary_path if needed
- On Linux, exists() checks should work fine without WASM sandbox restrictions

## Testing
-  Builds without errors
- 🔄 Ready for testing on macOS M4 with Homebrew
2025-11-10 18:10:06 -07:00
..