Lens Bridge
Bridge between the Lens Chrome extension and AI coding tools in VS Code.

Lens Bridge connects your browser-based visual feedback to your editor. Annotations captured in the Lens Chrome extension flow directly into VS Code, where AI assistants (Claude Code, Copilot, Continue, Cline) can read, resolve, and reply to them via MCP.

Features
- Auto-start MCP server — Launches the local bridge server when VS Code opens
- Per-window port override — Each VS Code window can run Lens Bridge on its own port from the sidebar
- Status bar integration — Live connection state and pending annotation counts at a glance
- Flow mode — Annotations route to AI tools automatically; fixes apply without confirmation
- Queue mode — Review each AI-generated fix in a webview before applying or rejecting
- AI tool detection — Auto-detects Claude Code, Copilot, Continue, and Cline; routes annotations by severity
- MCP tools — Exposes
lens_get_pending, lens_get_session, lens_acknowledge, lens_resolve, lens_dismiss, and lens_reply for any MCP-capable agent
- Guide MCP tools — Full CRUD + analytics for guides recorded in the Chrome extension (
lens_guide_list, lens_guide_get, lens_guide_create, lens_guide_update, lens_guide_export, lens_guide_analytics)
How It Works
- Capture — Use the Lens Chrome extension to click elements and describe visual bugs, QA checks, or video direction notes. Or switch to Guides mode to record click-through workflows with AI-generated step descriptions
- Bridge — Lens Bridge receives annotations and guides over HTTP/SSE from the Chrome extension
- Route — Annotations are routed to available AI tools based on severity (blocking, important, suggestion, cosmetic)
- Fix — AI assistants read annotations via MCP, generate fixes, and resolve them
- Review — In Queue mode, review each fix in the built-in webview before it touches your code

Requirements
- Lens Chrome Extension — Install from the Chrome Web Store or load the
dist/ folder as an unpacked extension
- VS Code 1.96+
Extension Settings
| Setting |
Default |
Description |
lensBridge.port |
4848 |
Default HTTP port for Chrome extension communication; the sidebar can override it for the current VS Code window |
lensBridge.autoStart |
true |
Auto-start server when VS Code opens |
lensBridge.mode |
queue |
Default mode: flow (auto-apply) or queue (review first) |
lensBridge.flow.autoApply |
true |
Auto-apply fixes in Flow mode |
lensBridge.flow.autoResolve |
true |
Auto-resolve after successful apply in Flow mode |
lensBridge.routing.blocking |
auto |
AI tool for blocking annotations |
lensBridge.routing.important |
auto |
AI tool for important annotations |
lensBridge.routing.suggestion |
auto |
AI tool for suggestions |
lensBridge.routing.cosmetic |
auto |
AI tool for cosmetic issues |
Commands
- Lens Bridge: Toggle MCP Server — Start or stop the bridge server
- Lens Bridge: Switch to Flow Mode — Auto-apply incoming fixes
- Lens Bridge: Switch to Queue Mode — Review fixes before applying
- Lens Bridge: Open Fix Queue — Open the queue webview panel
- Lens Bridge: Apply Next Fix — Apply the next pending fix
- Lens Bridge: Apply All Queued Fixes — Apply all pending fixes at once
- Lens Bridge: Show Pending Annotations — Display annotation counts by severity
- Lens Bridge: Run Guide Playwright Tests — Run Playwright tests generated from a recorded guide
- Lens Bridge: Focus Sidebar — Open and focus the Lens Bridge sidebar
MCP Integration
When the bridge server is running, any MCP-capable tool in your editor can use the lens_* tools to interact with annotations and guides. The server also supports SSE for real-time updates back to the Chrome extension.
| Tool |
Description |
lens_get_pending |
Get all pending annotations, optionally filtered by project_slug |
lens_get_session |
Get a session by ID or URL, including project context |
lens_acknowledge |
Mark an annotation as seen |
lens_resolve |
Mark an annotation as fixed |
lens_dismiss |
Dismiss an annotation |
lens_reply |
Reply to an annotation thread |
lens_watch |
Long-poll for new annotations (30s timeout) |
| Tool |
Description |
lens_guide_list |
List all recorded guides, optionally filtered by project slug |
lens_guide_get |
Get a full guide manifest by ID (sections, steps, selectors, metadata) |
lens_guide_create |
Create a new guide from a JSON manifest — generate guides from feature specs |
lens_guide_update |
Update a guide's title, description, or version (partial updates) |
lens_guide_export |
Export a guide as Playwright test, JSON, or clipboard format |
lens_guide_analytics |
Get completion rates, drop-off points, and self-heal frequency for a guide |
See the main repository for full MCP setup instructions across Claude Code, Cursor, Windsurf, and other tools.
License
MIT
Made with care by RenderDraw
| |