jasonboy/msw-mcp/msw-setup
Claude Code and agent skill by jasonboy/msw-mcp
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Scaffold MSW and @msw-mcp/client in a web project for AI-driven dynamic mocks. Use when the user asks to set up MSW, add mocking to a new app, or migrate an existing MSW project.
Install
npx vskill@latest install jasonboy/msw-mcp/msw-setupSKILL.md
msw-setup
Project scaffolding for MSW + the MCP client bridge. For runtime handler changes after setup, use the msw-cli skill.
Workflow
- Run `msw-cli setup` in the project root (optional:
--framework vite). - Follow the printed setup guide step by step (detect bundler, install deps, create
mocks/, env vars, entry point). - Run `msw-cli open` and set the app's WebSocket URL to the URL from the output.
- Run `msw-cli status` after starting the dev server — confirm
connected: true(this only proves the WebSocket bridge, not that the first browser requests were intercepted). - Hard reload the app and confirm in DevTools → Network that initial API calls are mocked. This catches render-before-mock races that
msw-cli statusmisses. - Use `msw-cli add` (and related commands) to manage mocks at runtime.
Do not duplicate the full setup guide in chat — execute from msw-cli setup output.
Notes
- Ask permission before
npm install/npx msw init(as the guide describes). - The WebSocket URL env var name depends on the framework:
NEXT_PUBLIC_MSW_WS_URL(Next.js),VITE_MSW_WS_URL(Vite), orMSW_WS_URL(Rspack/Rsbuild/Webpack) — must match the port frommsw-cli open. (MCP_SERVER_URLis accepted as a legacy fallback.) - Next.js App Router:
app/layout.tsxis a Server Component; the MSW bootstrap must be a `'use client'` gate so the app subtree does not mount (and fetch) beforeinitMocks()finishes. Follow the guide’s gatedMswProviderpattern — do not start MSW in a paralleluseEffectwhile rendering the full tree. - MCP users can still use
/msw-setupin an MCP client; the same guide backs both paths.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/msw-setup/SKILL.md
Popularity
- Repository stars
- 85
- Repository forks
- 2
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jasonboy/msw-mcp/msw-setup)