Debug a live front-end bug using real console + network context
언제 쓸까: A bug only reproduces in your actual session (logged in, specific data). You want the agent to read the console and network tab.
사전 조건
- Chrome extension installed + bridge server running — Install extension from releases page, then
npx @agentdeskai/browser-tools-server@latestin a terminal - MCP server wired to your client —
npx -y @agentdeskai/browser-tools-mcp@latest
흐름
-
Reproduce the bug with DevTools openOpen the affected page in Chrome with the extension active. Trigger the bug. Don't close the tab.✓ 복사됨→ Bug visible, extension icon shows it's capturing
-
Pull context into the agentGet the last 50 console messages and any failed network requests. Summarize what the page is yelling about.✓ 복사됨→ Specific errors surfaced with stack traces
-
Diagnose and propose fixBased on the errors, point at the file/line likely responsible. If 404s, identify the bad URL; if JS errors, the root cause.✓ 복사됨→ Concrete hypothesis with evidence
결과: A debugging loop where the agent has the same context as you opening DevTools — faster than reading a screenshot description.
함정
- Bridge server not running, MCP silently returns empty data — Always check
curl localhost:3025/identityresponds first; the bridge must be running before the MCP call - Capturing from the wrong tab — Extension captures the active tab. Click into the right tab before asking the agent