fix(browser-mcp): migrate CDP bridge → zapd consumer; disk authoritative - #35
Merged
Conversation
…oritative The MCP runtime kept pulling the buggy published wheel (hanzo-tools-browser 0.5.7) from PyPI instead of the migrated on-disk source, so every restart re-broke the `cdp` tool. Reinstate `cdp` as a zapd-native tool, finish the bridge->zapd migration (delete dead bridge/server modules + their tests), bump to 0.5.8 and pin hanzo-mcp >=0.5.8, add the package to the uv workspace/sources so disk is authoritative. 9/9 browser tests pass. Pairs with the hanzoai/extension bridge->zapd migration (separate, still uncommitted). The ~/.claude.json MCP invocation was also pointed at the local editable source (machine config, not in this repo). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> (cherry picked from commit 11b4d4ea8a5570d6fb0e51079fa445dba3713f71)
…e are gone) lifecycle.py only wrapped the removed in-process ZAP server + CDP bridge; nothing imports it under the zapd-consumer model. One way: transport is zapd_consumer, tools are browser/cdp/playwright. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates hanzo-mcp's browser tooling to the zapd consumer model and removes the in-process server second-paths.
browser+cdproute opaque CDP through the shared local router~/.zap/run/zapd.sockviazapd_consumer; no in-process server, no9999-9995, no:9224HTTP bridge.zap_server.py,cdp_bridge_server.py,lifecycle.py(+ their tests).TOOLS = [browser, cdp, playwright].hanzo-tools-browser0.5.8;hanzo-mcppinshanzo-tools-browser[playwright]>=0.5.8.cdpsends the bare method, not an{action:cdp}envelope).🤖 Generated with Claude Code