BrowserTrack π
Local browser diagnostics shared with AI coding agents through Model Context Protocol (MCP).
BrowserTrack is a lightweight, framework-agnostic local development daemon and MCP bridge. It continuously captures browser runtime errors, unhandled promise rejections, console logs, network failures (4xx/5xx), user interaction breadcrumbs, live DOM snapshots, and visual design annotationsβmaking them instantly accessible to AI coding assistants (Antigravity, Cursor, Claude Code, Windsurf) for autonomous debugging and closed-loop verification.
β‘ Why BrowserTrack? #
Traditional browser debugging with AI coding agents relies on manual copy-pasting of truncated error messages or sending cropped screenshots. BrowserTrack removes the human in the middle:
- π Real-time Diagnostics Pipeline: Your browser communicates with the local daemon via WebSockets.
- π― Visual Annotations & Notes: Hold Alt and click any element (or drag a region) to leave notes with DOM context and screenshots directly for coding agents.
- π Persistent On-Screen Markers: Visual note pins appear directly on your web pages and can be inspected or resolved with a single click.
- π€ Closed-Loop Verification: After an agent edits your code, it automatically reloads the browser, executes verification probes, checks for regressions, and captures before/after screenshots.
- π‘οΈ Zero-Leak Security: Integrated with
@visulima/redactto automatically sanitize passwords, auth tokens, cookies, credit cards, and secret query parameters.
ποΈ Architecture Overview #
View diagram source
graph TD
A[Browser Client<br>Vanilla / React / Vue / Vite] <-->|WebSocket ws://127.0.0.1:7331| B[Local Daemon<br>SQLite Storage + Verification Engine]
B <-->|Model Context Protocol / stdio| C[AI Coding Agents<br>Antigravity / Cursor / Claude Code]
B -->|Static Docs & Web UI| D[Local Dashboard / Dev Server]
π Quick Navigation #
- Getting Started β Quick installation and setup in under 2 minutes.
- Visual Notes & Annotations β Screen notes, region selection, and persistent markers.
- Multi-Step Scenarios & Flows β Sequential reproduction flows, Save & Next Step, and stepper walk-throughs.
- Component & Source Resolver β Map live DOM elements to React Fiber, Vue VNode, Svelte, and exact source file locations.
- Incidents & Error Diagnostics β Ingest runtime errors, stack traces, and breadcrumbs.
- Closed-Loop Verification β Automated bug-fix and layout verification.
- MCP Tool Reference β Complete guide to all MCP tools.
- Security & Redaction β Privacy architecture and
@visulima/redactintegration. - CLI Reference β Command-line interface usage.