pmcp

msw 2.x

Use MSW 2.x for HTTP and GraphQL request interception. Covers the v2 API, Node setup, response construction, resolver inputs, migration traps from MSW 1.x, and the browser entry point.

For
msw@2.15.0
Verified
2026-09-08, 3 examples executed
Package
@modootoday/pmcp-msw@2.0.0

What it covers

One example from this skill

This is the skill's own text, not a summary of it. It runs: that is what verifying means here.

import assert from 'node:assert/strict'
import { http, HttpResponse } from 'msw'
import { setupServer } from 'msw/node'

const server = setupServer(
  http.get('https://example.test/users/:id', ({ params, request }) => {
    const url = new URL(request.url)
    return HttpResponse.json(
      { id: params.id, host: url.host },
      { status: 202, statusText: 'Mocked' },
    )
  }),
)

server.listen()
try {
  const response = await fetch('https://example.test/users/abc-123')
  assert.equal(response.status, 202)
  assert.equal(response.statusText, 'Mocked')
  assert.deepEqual(await response.json(), {
    id: 'abc-123',
    host: 'example.test',
  })
} finally {
  server.close()
}

What it did in the sandbox

Verifying this skill meant installing the package and running code against it with no route out. This is what happened, quoted from the run. The full ledger lists every package examined, including the ones that never became a skill.

Getting it

With a subscription:

npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-msw

It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.