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, in-memory transport, server, delay tool, and assertion pipeline.
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.
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.