Skip to content

fix(browser-mcp): migrate CDP bridge → zapd consumer; disk authoritative - #35

Merged
zooqueen merged 2 commits into
mainfrom
browser-zapd-consumer
Jun 17, 2026
Merged

fix(browser-mcp): migrate CDP bridge → zapd consumer; disk authoritative#35
zooqueen merged 2 commits into
mainfrom
browser-zapd-consumer

Conversation

@zooqueen

Copy link
Copy Markdown
Contributor

Migrates hanzo-mcp's browser tooling to the zapd consumer model and removes the in-process server second-paths.

  • browser + cdp route opaque CDP through the shared local router ~/.zap/run/zapd.sock via zapd_consumer; no in-process server, no 9999-9995, no :9224 HTTP bridge.
  • Removed: zap_server.py, cdp_bridge_server.py, lifecycle.py (+ their tests).
  • Preserved main's Playwright/BiDi backend — TOOLS = [browser, cdp, playwright].
  • hanzo-tools-browser 0.5.8; hanzo-mcp pins hanzo-tools-browser[playwright]>=0.5.8.
  • Tests: 9 passed (incl. regression that cdp sends the bare method, not an {action:cdp} envelope).

🤖 Generated with Claude Code

hanzo-dev and others added 2 commits June 16, 2026 22:06
…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>
@zooqueen
zooqueen merged commit 5778c58 into main Jun 17, 2026
12 of 23 checks passed
@zooqueen
zooqueen deleted the browser-zapd-consumer branch June 17, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants