fix(mcp): Graceful fallback on Windows for daemon mode (GH#387)

- Skip daemon mode on Windows (sys.platform == win32)
- Falls back to CLI mode which works on all platforms
- Avoids asyncio.open_unix_connection which does not exist on Windows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-25 19:50:55 -08:00
parent c64ad028b7
commit 488ec56938
2 changed files with 10 additions and 0 deletions

View File

@@ -831,6 +831,11 @@ def create_bd_client(
If prefer_daemon is True and daemon is not running, falls back to CLI client.
To check if daemon is running without falling back, use BdDaemonClient directly.
"""
# Windows doesn't support Unix domain sockets (GH#387)
# Skip daemon mode entirely on Windows
if prefer_daemon and sys.platform == 'win32':
prefer_daemon = False
if prefer_daemon:
try:
from .bd_daemon_client import BdDaemonClient