Getting Started
MCP Failure Lab requires Node.js 22.19.0 or newer and npm. The fastest path needs no clone or global install:
npx mcp-failure-lab demoThe demo runs a real deterministic 500ms delay through the built-in client, the SDK v2 in-process handler, the delay tool, and the assertion pipeline. Scenario execution targets MCP 2026-07-28.
Explore the CLI
Section titled “Explore the CLI”npx mcp-failure-lab --helpnpx mcp-failure-lab --versionStart the stdio server
Section titled “Start the stdio server”npx mcp-failure-lab serveThe process waits silently for a client. Protocol messages use stdout, so operational diagnostics are written to stderr. Press Ctrl+C for graceful shutdown.
The stdio server supports MCP 2026-07-28 and retains 2025-11-25 compatibility.
Start the Streamable HTTP server
Section titled “Start the Streamable HTTP server”npx mcp-failure-lab serve --transport httpThe server listens at http://127.0.0.1:3000/mcp by default. Keep it bound to loopback unless a trusted reverse proxy provides authentication and TLS. See Streamable HTTP for configuration and Inspector setup.
Run an included scenario
Section titled “Run an included scenario”From a repository checkout:
git clone https://github.com/anilloutombam/mcp-failure-lab.gitcd mcp-failure-labnpm installnpm run dev -- run examples/scenarios/delay-success.jsonNext: learn the scenario format or explore the fault tools.