Cli & MCP server for msw (Mock Service Worker) for AI Agents with dynamic mocking
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add msw -- npx msw-mcp@latest~/.codex/config.toml
[mcp_servers.msw]
command = "npx"
args = ["msw-mcp@latest"]
# codex mcp add msw -- npx msw-mcp@latest~/.cursor/mcp.json
{
"mcpServers": {
"msw": {
"command": "npx",
"args": [
"msw-mcp@latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"msw": {
"type": "stdio",
"command": "npx",
"args": [
"msw-mcp@latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"msw": {
"command": "npx",
"args": [
"msw-mcp@latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"msw": {
"command": "npx",
"args": [
"msw-mcp@latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"msw": {
"command": "npx",
"args": [
"msw-mcp@latest"
]
}
}
}