mcp-browser/mcp_browser
Claude4Ξlope 6df97a9dcf Fix Claude Desktop timeout issue in server mode
The server was hanging on initialize requests because:
1. It was calling browser.initialize() at startup which tried to connect to upstream servers
2. It was using blocking stdin.read(4096) instead of line-based reading

Fixed by:
- Removing premature initialization in server mode (let it happen lazily)
- Switching to readline() for proper line-based JSON-RPC handling
- Adding proper error responses for malformed JSON

This resolves the 60-second timeout error when Claude Desktop tries to connect.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 21:49:32 +02:00
..
__init__.py Update project metadata for Xilope0 namespace 2025-06-27 12:45:34 +02:00
__main__.py Fix Claude Desktop timeout issue in server mode 2025-06-27 21:49:32 +02:00
buffer.py Initial prototype of MCP Browser 2025-06-27 12:30:20 +02:00
client_main.py Fix server CPU loops and refactor to client/daemon architecture 2025-06-27 17:46:24 +02:00
config.py Add default config system with ~/.claude/mcp-browser/ directory 2025-06-27 14:37:19 +02:00
daemon.py Replace debug output with proper logging framework 2025-06-27 16:24:24 +02:00
daemon_main.py Fix daemon file descriptor handling 2025-06-27 18:07:15 +02:00
default_configs.py Add default config system with ~/.claude/mcp-browser/ directory 2025-06-27 14:37:19 +02:00
filter.py Fix MCP Browser test suite and add Brave Search integration 2025-06-27 14:11:13 +02:00
logging_config.py Replace debug output with proper logging framework 2025-06-27 16:24:24 +02:00
multi_server.py Replace debug output with proper logging framework 2025-06-27 16:24:24 +02:00
proxy.py Replace debug output with proper logging framework 2025-06-27 16:24:24 +02:00
py.typed Add pip infrastructure and AI development tools 2025-06-27 12:33:43 +02:00
registry.py Initial prototype of MCP Browser 2025-06-27 12:30:20 +02:00
server.py Replace debug output with proper logging framework 2025-06-27 16:24:24 +02:00