chrome-devtools-mcp
3
总安装量
3
周安装量
#54808
全站排名
安装命令
npx skills add https://github.com/huynhsang2005/blog-tanstack --skill chrome-devtools-mcp
Agent 安装分布
trae
2
claude-code
1
Skill 文档
Chrome DevTools MCP Skill
When to use
- Debugging UI behavior or layout issues.
- Investigating network requests, caching, or API failures.
- Measuring performance (rendering, long tasks, slow loads).
Connect options
- Connect to a running Chrome instance (remote debugging):
- –browserUrl=http://127.0.0.1:9222
- Connect via WS endpoint (e.g., forwarded device/debug port):
- –wsEndpoint=ws://127.0.0.1:9222/devtools/browser/
Capabilities (high-level)
- Input: click/type/drag, file upload, dialog handling.
- Navigation: open pages, navigate URLs, wait for elements.
- Emulation: network throttling, CPU throttling, viewport, geolocation.
- Debugging: evaluate JS, screenshots, console messages.
- Network: inspect requests, headers, response bodies.
- Performance: traces + Core Web Vitals + insight analysis.
Workflow checklist
- Attach to the target browser/page via chrome-devtools-mcp.
- Reproduce the issue step-by-step.
- Collect evidence: console errors, network timing, performance trace, screenshots if needed.
- Summarize root cause and actionable fixes.
- Re-test after changes to confirm resolution.
Dev / test / debug playbooks
- Console errors: list_console_messages (filter errors/warnings) â capture stack + failing URL.
- Network failures: capture request/response details â check status, headers, caching.
- Perf regression: performance_start_trace (reload) â analyze Core Web Vitals â throttle network and re-test.
- UI issue: screenshot + evaluate JS for DOM state â verify expected classes/attributes.
Quality gates
- After dev/test/debug tasks, run: bun run build, bun run tsc (if available), bun run lint, bun run check.
- Follow Biome lint results; do not bypass.
Best practices
- Keep captures small and focused on a single scenario.
- Prefer reproducible steps and minimal noise.
- Report findings with clear âsymptom â cause â fixâ structure.