JM

jasonboy/msw-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

81 stars 2 forks 품질 77 트렌드 4MIT

jasonboy/msw-mcp는 MCP 서버 후보로 수입 https://github.com/jasonboy/msw-mcp.]

개요

jasonboy/msw-mcp는 MCP 서버 후보로 수입 https://github.com/jasonboy/msw-mcp.]

개요(AI 번역)

이 모노레포는 Mock Service Worker (MSW)를 가진 교량 AI 대리인의 한 벌을 제공합니다. MSW 네트워크의 동적 추가, 업데이트 및 제거는 명령행 인터페이스 또는 AI 도구 실행에서 직접 모입니다, 완전히 독립적으로 응용 소스 코드 재시작.

데모

MCP 구동 MSW 워크플로우(browser Bridge, 실시간 핸들러 업데이트):

https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e] https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e]]] https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e]]]]]] [[https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e]]]]]]] [[[[[[https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[

키 기능

  • 🔥 ** AI를 가진 MSW 핸들러 **
  • ⚡ **페이지를 다시로드하지 않고 조롱 **
  • ₪ **Cli/MCP와 브라우저 사이의 웹소켓 브리지 **
  • 542️ Scaffold MSW 설정 msw-cli setup 또는 MCP의 [T2] 프롬프트
  • T **[T3]]**를 통해 Terminal 및 스크립트 제어
  • ܧ️Configurable port, persistence 및 클라이언트 대상
  • ✨ **Agent Skills for AI Agent를 사용하려면 **

구조

이 프로젝트는 pnpm]과 turbo를 사용하여 monorepo로 설정됩니다.

-apps/docs([T7]]): MSW Agent Tools용 Starlight 문서 사이트 (CLI, MCP, 가이드). 소스는 apps/docs/src/content/docs/에서 살아있다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MSW AI Agent Bridge Monorepo

This monorepo provides a suite of tools that bridge AI agents with Mock Service Worker (MSW). It enables dynamic addition, updating, and removal of MSW network mocks directly from a command-line interface or AI tool execution, completely independently of the application source code restarts.

Demo

Walkthrough of the MCP-driven MSW workflow (browser bridge, live handler updates):

https://github.com/user-attachments/assets/06959759-b198-4cd1-ae2b-11ede32acd8e

Key features

  • 🤖 Generate MSW handlers with AI
  • ⚡ Update mocks without reloading the page
  • 🌉 WebSocket bridge between Cli/MCP and the browser
  • 🛠️ Scaffold MSW setup with msw-cli setup or MCP’s /msw-setup prompt
  • 💻 Terminal and script control via msw-cli
  • ⚙️ Configurable port, persistence, and client targeting
  • ✨ Agent skills for AI agents to use

Structure

This project is set up as a monorepo using pnpm and turbo.

  • apps/docs (@msw-mcp/docs): Starlight documentation site for MSW Agent Tools (CLI, MCP, guides). Source lives under apps/docs/src/content/docs/.
  • packages/msw-cli: The command-line interface (msw-cli) used by AI agents or developers to send dynamic handler updates. Run msw-cli setup to scaffold a project, then msw-cli open plus handler commands.
  • packages/msw-mcp: The published Model Context Protocol server (msw-mcp) so assistants can manage mocks via MCP tools.
  • packages/client (@msw-mcp/client): The browser/environment client that listens for updates and registers them with the local MSW setup.
  • packages/core (@msw-mcp/core): The core daemon process and session management logic that brokers communication between the CLI or MCP server and the client.

Documentation site

From the repo root:

pnpm --filter @msw-mcp/docs dev

Opens the local docs dev server (default Astro port, often http://localhost:4321). Production search (Pagefind) is easiest to verify after pnpm --filter @msw-mcp/docs build and pnpm --filter @msw-mcp/docs preview.

More detail: apps/docs/README.md.

Quick setup: msw-cli

  1. Install the CLI globally: npm install -g msw-cli (or use your package manager’s equivalent).

  2. In a new project, run msw-cli setup and follow the printed steps for MSW + @msw-mcp/client.

  3. Start a session, then drive handlers from the shell:

    msw-cli open
    msw-cli add "http.get('/api/user', () => HttpResponse.json({ id: 1 }))"
    msw-cli status
GitHub에서 전체 README 보기

설치

npx msw-mcp@latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "msw-mcp": { "command": "npx", "args": ["msw-mcp@latest"] } } }