Webhook Crash Lab

v0.2.4
io.github.Krrishkumar125/webhook-crash-lab-mcp Checked 3 days ago Published 1 month ago

Lets coding agents crash-test webhook handlers and re-run until they survive retries.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_crash_lab Run webhook-crash-lab

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.

ParameterTypeDescription
configPath *stringPath to a crash-lab config (.mjs, .js, .cjs, .ts, .mts or .cts), relative to cwd
cwdstringProject directory; defaults to the server working directory
reportPathstringAlso write the full JSON report here
scenariosarrayRun only these scenarios

run_demo Run the built-in demo

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.

ParameterTypeDescription
modestring

explain_report Explain a crash-lab report

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.

ParameterTypeDescription
cwdstring
reportReport JSON, as text or object
reportPathstring

list_scenarios List crash-lab scenarios

List every scenario crash-lab can run, with what it sends, why it matters in production, and how to fix a failure.