ai newsDi., 1. Dez.

EyeDOM: Click Any Broken CSS/DOM Element and Stream It Straight to Your AI Agent via MCP (No Extension)

Debugging layout bugs with AI coding agents usually means opening DevTools, copying huge HTML snippets, inspecting two parent containers, checking computed styles, and pasting screenshots into chat. I built EyeDOM to turn that entire loop into a single click — with zero browser extensions and zer

dev.toSamstag 23:16 · 28.11.1 Min. Lesezeit
Bild: dev.to

Debugging layout bugs with AI coding agents usually means opening DevTools, copying huge HTML snippets, inspecting two parent containers, checking computed styles, and pasting screenshots into chat.

I built EyeDOM to turn that entire loop into a single click — with zero browser extensions and zero manual MCP JSON editing.

GitHub: https://github.com/cosmicrouter/eyedom

npm install -g github:cosmicrouter/eyedom eyedom setup eyedom open http://localhost:3000 Enter fullscreen mode Exit fullscreen mode Click the bottom-right Inspect button (or press Alt + Shift + D ), click any broken element on the page, and ask your AI agent to fix the latest captured DOM bug.

Bookmarklets break on modern HTTPS sites because of strict Content-Security-Policy and Mixed Content rules, and browser extensions require per-browser installs (and rarely support Safari).

eyedom open <url> solves this by spinning up a lightweight same-origin Node.js reverse proxy:

Because it has zero browser-specific APIs, it works identically in Chrome, Firefox, Safari, Edge, Brave, and Opera.

Instead of dumping a 10,000-token DOM tree, EyeDOM sends a compact Markdown report via the get_latest_dom_bug MCP tool:

Running eyedom setup auto-detects installed agents across Linux, macOS, and Windows and safely merges the MCP config without overwriting existing settings:

You can also pipe directly into any CLI tool:

eyedom latest | claude eyedom latest | aider --message-file - Enter fullscreen mode Exit fullscreen mode Multi-Agent Safety ( EADDRINUSE ) If you run Claude Code, Cursor, and Antigravity at the same time, they won't fight over port 4789. The first process hosts the local server, and every additional eyedom mcp process catches EADDRINUSE and seamlessly switches to atomic file-backed reads from ~/.eyedom/.

Feedback and PRs are very welcome — what else would you want captured when debugging frontend bugs with AI agents?

Quelle: dev.to (dev.to). Original öffnen