Repository navigation
Releases
webbridge v2.1.1 — 扩展空闲优化与可选 Go MCP 前端
webbridge v2.1.1
A local MCP bridge that gives agents control of the user's real browser: real tabs, logins,
extensions, and window state. Everything stays on 127.0.0.1.
This release adds the optional Go MCP front end and removes duplicate extension idle polling.
The Node entry remains the default; the extension and page scripts stay JavaScript.
Extension idle optimization
The extension previously ran two 30-second alarms: the upstream webbridge-reconcile keepalive
and a second webbridge-handoff alarm that polled /handoff even while the push WebSocket was
connected.
- The handoff fallback now reuses
webbridge-reconcile; there is only one resident 30-second
alarm. - While the push WebSocket is connected,
/handoffis not polled. A 5-minute watchdog checks the
receiver and closes a silently dead push socket. - When the push socket is down, the 30-second fallback poll is unchanged.
- In-flight checks are guarded so a watchdog and a handoff event cannot overlap.
Measured in a real Edge session with the push socket connected:
| Metric | Before | After |
|---|---|---|
| Resident 30-second alarms | 2 | 1 |
| Alarm events per hour | 240 | 120 |
/handoff GETs per hour |
120 | 12 |
/handoff GETs per hour, push offline |
120 | 120 |
A 95-second before sample produced 6 alarm events and 3 GETs; a 65-second after sample produced
2 alarm events and 0 GETs. chrome.alarms.getAll() now lists only webbridge-reconcile.
The 30-second control-channel ping remains: it is required to keep the MV3 service worker alive
for low-latency tool calls. Deeper idle savings would require accepting first-call latency while
the worker sleeps.
Optional Go MCP front end
cmd/webbridge-mcp is a functionally equivalent Go implementation of the MCP runtime. It talks
to the same daemon, shares the generated tool catalog, page scripts, and ~/.webbridge lifecycle
files, and leaves the extension and page scripts in JavaScript. Node remains the default entry
point and the source of truth for tool definitions.
Fixed-overhead measurements on the same Windows machine with the same fake daemon:
| Metric | Node | Go |
|---|---|---|
| MCP connect | 469 ms | 44 ms |
| Forwarded call p50 | 2.30 ms | 1.26 ms |
| Idle RSS | 72 MB | 14 MB |
| Distribution | Node + 95 production npm packages | one 8.8 MB binary |
Build it from the extracted release directory:
npm run go:build
# dist/webbridge-mcp[.exe]The release bundle includes cmd/, internal/, go.mod, go.sum, the catalog/build scripts,
and the Go parity and benchmark tests, so the build instructions work without cloning the repo.
Protocol documentation corrected
docs/PROTOCOL.md now matches the actual daemon-extension messages:
{ "type": "tool_call", "requestId": "call-1", "payload": { "name": "snapshot", "args": {} } }
{ "type": "tool_result", "responseToRequestId": "call-1", "payload": { "data": {} } }It also records why loopback WebSocket + JSON is the right transport for this topology and why
HTTP long-polling, SSE + POST, WebTransport, Unix sockets, and native messaging are worse fits.
Release contents
webbridge-2.1.1.zip (956,531 bytes) contains:
SKILL.mdandskill/SKILL.mdsrc/Node MCP server andshared/page scriptscmd/,internal/,go.mod,go.sumfor the optional Go entryscripts/Go catalog/build scripts andtest/Go parity/bench testsextension/a built, loadable unpacked MV3 extensiondocs/,README.md,README.EN.md,INSTALL.md,DESIGN.md,SECURITY.md,
CONTRIBUTING.md,NOTICE.md,LICENSE,package.json,package-lock.json
browser-bridge-2.1.1.zip (795,670 bytes) contains only the built extension for loading unpacked.
SHA-256:
3a7ff9a7079517698c79d7ebcb566d89a6f641113b8e4e23d8a9416e0e169a8e webbridge-2.1.1.zip
a6431eb6ac8d15f0cf0c203f43ccd7094f582bc4c6cf88773eeffc987ae4ca1e browser-bridge-2.1.1.zip
Verification
npm test: catalog, smoke, tools, capture, and lifecycle pass.go test -race ./...: all Go packages pass.node test/go-parity.mjs: core 13 tools / 24 calls and full 40 tools / 23 calls match.- Extracted release smoke:
npm ci --omit=dev,npm run go:build, and Go parity pass from the
release ZIP. - Real Edge: push handoff opens the popup, resume clears it, the real reconcile alarm applies a
fallback handoff, and direct tool calls returntool_resultenvelopes with page content. - Release extension contains no
__WB_PROFILE__marker.
Install
- Download
webbridge-2.1.1.zipand the upstream Browser Bridge daemon for your platform. - Place the daemon at
~/.kimi-webbridge/bin/kimi-webbridge[.exe]or setWEBBRIDGE_BIN. - Extract the zip, run
npm ci --omit=dev, and loadextension/unpacked. - Point the MCP client at
node <extracted>/src/server.mjs. - Optionally run
npm run go:buildand point the client atdist/webbridge-mcp[.exe]. - Copy
SKILL.mdinto the client's skill directory if the client uses skills.
Notes
- One daemon accepts one browser connection at a time.
- The browser execution layer and daemon are upstream Browser Bridge components; see
NOTICE.mdfor licensing. - The release does not include the local profiling build or debug patches.
- Product interaction draws on Tabbit CLI's task/session/tab-group model; the MCP interface is
organized around an agent workflow.
webbridge v2.1.0
webbridge v2.1.0
A local MCP bridge that gives agents control of the user's real browser: real tabs, logins,
extensions, and window state. Everything stays on 127.0.0.1.
Highlights
- Lazy, singleton daemon lifecycle. The daemon starts on the first browser tool call, not at
install time. A cross-process start lock prevents duplicate spawns; per-client PID leases let
concurrent MCP clients share one daemon. The last client, or 15 minutes of inactivity, stops it.
Configure withWEBBRIDGE_AUTOSTARTandWEBBRIDGE_IDLE_MS. - 40 browser tools, 13 core. The default profile follows
status → session → navigate → snapshot → click/fill → wait → verify → close_session;
long-tail tools are discovered throughbrowser_toolsand run withbrowser_call.
WEBBRIDGE_TOOLSET=fulllists all 40. - Reader mode.
read_articlestrips navigation, sidebars, comments, ads, and reference lists
in one in-page pass. Measured at 14–19 ms on blog and Wikipedia articles, with clean Markdown. - Page capture, console, network, PDF, screenshots, batch, human handoff.
- Client integrations. DeepSeek Harness (
dsh), WorkBuddy / CodeBuddy, Claude Code, Cursor,
Claude Desktop, Codex, and generic stdio are documented indocs/INTEGRATIONS.md. - Skill included. The release zip contains
SKILL.mdat the root and the canonical
skill/SKILL.md.
Release contents
webbridge-2.1.0.zip contains:
SKILL.mdandskill/SKILL.mdsrc/MCP server source andshared/page scriptsextension/a built, loadable unpacked MV3 extensiondocs/,README.md,README.EN.md,INSTALL.md,DESIGN.md,SECURITY.md,
CONTRIBUTING.md,NOTICE.md,LICENSEpackage.jsonandpackage-lock.json
Install the runtime dependencies in the extracted directory with:
npm ci --omit=devThe release does not include the local profiling build, debug patches, or test artifacts.
browser-bridge-2.1.0.zip contains only the built extension for loading unpacked.
Performance notes
snapshotJSON is the largest context cost (31.9–139.2 KB in tests); prefer
format:"aria"withmax_chars, orsnapshot(ref).read_pagewith a much largermax_charscan add seconds for little extra text; usestart
to continue.navigateis page-load bound; reuse the task tab.screenshotandsave_as_pdfare the expensive output paths.
See docs/PERFORMANCE.md for the full benchmark.
Install
- Download the release zip and the upstream Browser Bridge daemon for your platform.
- Place the daemon at
~/.kimi-webbridge/bin/kimi-webbridge[.exe]or setWEBBRIDGE_BIN. - Extract the zip, run
npm ci --omit=dev, and loadextension/unpacked. - Point the MCP client at
node <extracted>/src/server.mjs. - Copy
SKILL.mdinto the client's skill directory if the client uses skills.
Notes
- One daemon accepts one browser connection at a time.
- The browser execution layer and daemon are upstream Browser Bridge components; see
NOTICE.mdfor licensing. - Product interaction draws on Tabbit CLI's task/session/tab-group model; the MCP interface is
organized around an agent workflow.