mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-27 04:20:09 +00:00
hanzo_mcp.zap_server imported hanzo_tools.browser.zap_server, which does not exist — the module could not be imported at all. Its caller swallowed that in `except ImportError: return`, so _start_zap_server() ran on every `run()` and started nothing, and the HANZO_NO_ZAP switch guarded a path that never had an effect either way. The browser tool reaches Chrome through the native host -> zapd -> the socket at ~/.zap/run/zapd.sock, where hanzo-mcp is a consumer (hanzo_tools.browser .zapd_consumer). That is the transport, so the WebSocket server and its mDNS discovery go, along with _normalize_mcp_result, which existed to shape results for that wire and had no other caller.