chrome-devtools-mock
CommunityMock API data in the browser without code changes.
Authornotdp
Version1.0.0
Installs0
System Documentation
What problem does it solve?
通过 Chrome DevTools MCP 的 navigate_page + initScript 注入 XMLHttpRequest 拦截,在浏览器层面 mock API 数据,无需修改源码,帮助快速预览 UI 与验证前端逻辑。
Core Features & Use Cases
- 通过 initScript 在页面加载前注入拦截逻辑,确保 API 请求在实际网络调用前被拦截并返回 mock 数据。
- 支持按具体 API 路径匹配和精确路由,避免误拦截。
- 适用于前端无后端、接口变更频繁、需要快速验证 UI 的场景。
Quick Start
Navigate to the target page and inject the initScript before page load to begin mocking.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: chrome-devtools-mock Download link: https://github.com/notdp/.dotfiles/archive/main.zip#chrome-devtools-mock Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.