webhook-crash-lab-mcp
This MCP server lets coding agents crash-test webhook handlers, inspect structured failures and fix hints, and learn available scenarios.
Run webhook-crash-lab against a config file, optionally limiting scenarios and writing a JSON report, to replay hostile deliveries like duplicates, concurrent duplicates, out-of-order events, forged/missing/stale signatures, and malformed JSON.
Run the built-in demo in
brokenorfixedmode without needing a config.Explain an existing crash-lab JSON report from a file path or inline object, returning failures in fix order with why/fix hints and next steps.
List every available scenario with what it sends, why it matters, and how to fix failures.
Return results as model-readable text plus
structuredContentmatching schemas; missing/invalid config errors come back asisErrorresults rather than crashes.Use it safely against local/test targets and test databases/secrets only.
Provides tools for testing Stripe webhook handlers with webhook-crash-lab, replaying hostile deliveries such as duplicates, concurrent duplicates, out-of-order events, forged/missing/stale signatures, and malformed JSON, then returning structured failures with fix hints. Includes a built-in demo showing a broken versus fixed Stripe handler.
webhook-crash-lab-mcp
Coding agents write webhook handlers that work for one test event and break in production on retries, duplicates and forged signatures. This package gives them a loop: run webhook-crash-lab → read structured failures with fix hints → fix → re-run.
It ships three things:
What | Where | |
MCP server |
|
|
Claude Code plugin | skill + MCP server config |
|
Codex / any-agent skill | same skill in the open Agent Skills format, plus an AGENTS.md snippet |
|
Tools
Tool | Input | Returns |
|
|
|
|
| same shape, against the built-in demo app (no config needed) |
|
| same shape, e.g. for a CI report |
| – | every scenario with what / why / fix |
Every result comes back as text for the model and structuredContent (with an outputSchema) for clients.
Errors such as a missing or invalid config come back as isError results, not crashes.
Related MCP server: Vulnerable MCP Server
60-second start
Claude Code
claude mcp add webhook-crash-lab -- npx -y webhook-crash-lab-mcp@0.2.5
# or the full plugin (MCP server + skill):
# /plugin marketplace add Krrishkumar125/webhook-crash-lab-mcp
# /plugin install webhook-crash-lab@webhook-crash-labCodex
codex mcp add webhook-crash-lab -- npx -y webhook-crash-lab-mcp@0.2.5
mkdir -p .agents/skills && cp -r node_modules/webhook-crash-lab-mcp/.agents/skills/webhook-crash-lab .agents/skills/Cursor / other MCP clients
{
"mcpServers": {
"webhook-crash-lab": { "command": "npx", "args": ["-y", "webhook-crash-lab-mcp@0.2.5"] }
}
}The examples pin the version so npx never silently runs a newer release. To update, check the latest with npm view webhook-crash-lab-mcp version, read the releases, then change @0.2.5 to the new version in your MCP config and restart the client.
Then ask: "Run the webhook crash lab demo", or "Make my Stripe webhook pass webhook-crash-lab".
Paste docs/AGENTS-snippet.md into AGENTS.md / CLAUDE.md to make it a standing rule.
Safety
run_crash_lab imports your crash-lab config (.mjs/.js/.cjs, or .ts/.mts/.cts via the bundled jiti) (it is code, like any config file) and sends requests to
its target. Point configs at a local server and a test database and secret only. The skill tells
agents never to use production URLs or live secrets.
Related
webhook-crash-lab: the CLI/library this wraps
eslint-plugin-webhook-safety and eslint-plugin-bullmq: the same bugs, caught statically
Sibling packages
Other tools by the same author:
secret-blast-radius: what a malicious npm install could steal, plus a rotation plan
zod-india: Zod schemas for GSTIN, PAN, IFSC, UPI and Aadhaar
create-bullmq-app: scaffold a production BullMQ + TypeScript service
webhook-crash-lab: crash-test webhook handlers against duplicates and races
eslint-plugin-bullmq: lint rules for BullMQ production pitfalls
eslint-plugin-webhook-safety: lint rules for unsafe Stripe webhook handlers
License
MIT © Krrish Kumar
Available Tools
4 toolsexplain_reportExplain a crash-lab reportARead-only
Read a JSON report produced by webhook-crash-lab run --json <file> (e.g. from CI) and return the failures in fix order, with why/fix hints and next steps.
Inputs: cwd, report, reportPath. Returns: ok, name, summary, failures, +4 more
list_scenariosList crash-lab scenariosARead-only
List every scenario crash-lab can run, with what it sends, why it matters in production, and how to fix a failure.
Inputs: no named parameters. Returns: scenarios
run_crash_labRun webhook-crash-labA
Replay hostile webhook deliveries (duplicates, concurrent duplicates, out-of-order events, forged/missing/stale signatures, malformed JSON) against the handler described by a crash-lab config file, and return structured failures with fix hints. Use a TEST database and test secret only. Create a config with npx webhook-crash-lab init if none exists.
Inputs: configPath (required), cwd, scenarios, reportPath. Returns: ok, name, summary, failures, +4 more
run_demoRun the built-in demoARead-only
Run crash-lab against its built-in demo credits app. "broken" shows the typical AI-generated Stripe handler failing; "fixed" shows the same app done right. Needs no config. Use it to show what crash-lab checks before setting up a real config.
Inputs: mode. Returns: ok, name, summary, failures, +4 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
run_crash_lab and run_demo both execute the same engine, but the descriptions clearly separate them (config-driven real handler vs. config-free built-in demo). explain_report and list_scenarios are unambiguously distinct (interpret an existing report vs. enumerate scenarios). The only residual confusion is choosing demo vs. real run, which the descriptions resolve.
All four tools use consistent snake_case with a verb-first pattern (run_*, explain_*, list_*). The resource suffix is predictable and readable, and there is no mixing of conventions.
Four tools fits a narrowly scoped crash-testing utility, and each one maps to a distinct step (inspect scenarios, demo, run, interpret results). It is on the lean side — the surface depends on the external CLI for setup — but nothing is redundant.
The core loop (list scenarios → demo → run → explain) is covered, but there are dead ends: config creation/validation is delegated to `npx webhook-crash-lab init`, and report generation (`run --json`) appears to come from the CLI rather than from any tool here, so the agent cannot produce the artifact explain_report consumes. Minor gaps otherwise, since CLI workarounds exist.
Maintenance
Related MCP Connectors
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
The official MCP Server for the Mux API
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
MCP server for customer-io
Related MCP Servers
- AlicenseBqualityDmaintenanceA mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).1MIT
- FlicenseNot gradedqualityDmaintenanceA deliberately insecure MCP server designed as a pentest lab to demonstrate common vulnerabilities in MCP deployments.-
- AlicenseNot gradedqualityDmaintenanceA local MCP server that breaks on demand, allowing you to test your client against auth failures, disappearing tools, flaky responses, and token expiry from a web UI.10 npm10MIT
- FlicenseNot gradedqualityBmaintenanceA raw TypeScript MCP server simulating incident lifecycles with tools, resources, prompts, and signed multi-round remediation approval. Enables CLI-based interaction, protocol negotiation, and health/security testing without external MCP SDK dependencies.-