Chrome DevTools MCP Tested in Three Frontend Debugging Scenarios
The author tested Chrome DevTools MCP 1.14.0 with DeepSeek-V4.1-Flash in DSH using a fictional checkout page. The three scenarios covered a coupon-loading failure, page performance and mobile Lighthouse inspection. The agent used console, network, performance-trace, screenshot, emulation and Lighthouse tools. During one test, an unintended sed edit landed in the workspace's server.py; the agent detected it and restored the file, which the author verified was unchanged. The reported performance figures apply only to the synthetic demo and the author's test environment.
The test shows how an AI agent can inspect and modify a browser-based frontend while documenting practical workspace-permission, file-handling and data-exposure risks, including browser-content exposure, CrUX URL transmission, usage statistics and visible request headers.
让 AI 帮忙写前端,最磨人的往往不是写,而是查。
页面一打开,按钮点了没反应。你按 F12,截一张控制台,再去 Network 里翻出那条红色请求,复制响应,一起贴回对话框。AI 看完说“可能是接口返回格式不对”,改完你再刷新、再截图、再贴。一来一回,你成了它的“人肉传话筒”。
问题出在 AI 看不见浏览器。那就让它自己看。
这是 MCP 实测系列的第一篇,每篇挑一个 MCP,在真实项目里跑给你看。
测试用的结算页(虚构的“栖木商城”):左边是桌面端,右边是手机端。优惠券一直“加载中…”,点「提交订单」也没反应
#Chrome DevTools MCP#Google Chrome DevTools#DeepSeek-V4.1-Flash#DeepSeek Harness#dsh-market-pro#Playwright MCP#Lighthouse