Skip to main content
Glama

webhook-crash-lab-mcp

CI npm downloads

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

webhook-crash-lab-mcp (stdio, official MCP TypeScript SDK)

src/

Claude Code plugin

skill + MCP server config

.claude-plugin/, skills/, .mcp.json

Codex / any-agent skill

same skill in the open Agent Skills format, plus an AGENTS.md snippet

.agents/skills/, docs/AGENTS-snippet.md

Tools

Tool

Input

Returns

run_crash_lab

configPath, cwd?, scenarios?, reportPath?

ok, counts, failures[] (id, failed checks, why, fix) in fix order, notTested[], nextSteps[]

run_demo

mode: "broken" | "fixed"

same shape, against the built-in demo app (no config needed)

explain_report

reportPath or report (JSON from webhook-crash-lab run --json)

same shape, e.g. for a CI report

list_scenarios

–

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

Install in VS Code Install in Cursor

Claude Code

claude mcp add webhook-crash-lab -- npx -y webhook-crash-lab-mcp@0.2.4
# or the full plugin (MCP server + skill):
#   /plugin marketplace add Krrishkumar125/webhook-crash-lab-mcp
#   /plugin install webhook-crash-lab@webhook-crash-lab

Codex

codex mcp add webhook-crash-lab -- npx -y webhook-crash-lab-mcp@0.2.4
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.4"] }
  }
}

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.4 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.

Sibling packages

Other tools by the same author:

License

MIT © Krrish Kumar

Available Tools

4 tools
explain_reportExplain a crash-lab reportA
Read-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.

NameRequiredDescriptionDefault
cwdNo
reportNoReport JSON, as text or object
reportPathNo

Output Schema

NameRequiredDescription
okYes
nameYes
summaryYes
failuresYes
nextStepsYes
notTestedYes
scenariosYes
reportPathNo

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuine behavioral trait beyond that: output is ordered in 'fix order' with why/fix hints and next steps, but says nothing about behavior on malformed or missing input, or how the source is resolved.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence with the purpose and result front-loaded and no redundant wording. Nothing in it is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values, so the description needn't detail them. But for a three-parameter tool with two overlapping input paths and zero required parameters, the description leaves a meaningful ambiguity unresolved, which is a real gap for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% — only `report` is annotated in the schema, and neither `cwd` nor `reportPath` is mentioned in the description. Critically, the description never clarifies that `report` and `reportPath` are alternative ways to supply the same input, leaving the agent to guess which to populate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (read a JSON report) plus the exact producer command (`webhook-crash-lab run --json <file>`) and what it returns (failures in fix order with hints). This clearly separates it from `run_crash_lab` (which produces reports) and `list_scenarios`.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'e.g. from CI' and the reference to a report already produced by `run --json` imply the precondition (a report must exist), which hints that `run_crash_lab` is the tool to call first. However, no explicit when-to-use/when-not-to-use or named alternative is given, so routing must be inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_scenariosList crash-lab scenariosA
Read-only

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

NameRequiredDescriptionDefault

No parameters

Output Schema

NameRequiredDescription
scenariosYes

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds the useful coverage claim that it returns 'every scenario' (no filtering or pagination), but its listing of returned fields largely restates what the output schema already documents, so the added behavioral value is modest.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that states the action, the scope ('every scenario'), and what each result contains, with no wasted wording or hedging.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, zero-parameter listing tool with an output schema and full annotation coverage, the description supplies everything needed to call it correctly. The only missing piece is a pointer to the follow-up tools (run_crash_lab, explain_report), which would complete the discovery-to-execution workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes no parameters, so there is nothing for the description to disambiguate; the baseline for a zero-parameter tool applies. The schema is empty and correctly so.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('List every scenario crash-lab can run') and names the informational payload each entry carries, so its purpose is immediately distinguishable from run_crash_lab and explain_report. It stops short of explicitly contrasting itself with those siblings, which keeps it off a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance and no mention of the siblings, so the discovery-first usage pattern is only implied by the word 'List'. For a zero-parameter enumeration tool the intent is reasonably obvious, but the definition does no active routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

NameRequiredDescriptionDefault
cwdNoProject directory; defaults to the server working directory
scenariosNoRun only these scenarios
configPathYesPath to a crash-lab config (.mjs, .js, .cjs, .ts, .mts or .cts), relative to cwd
reportPathNoAlso write the full JSON report here

Output Schema

NameRequiredDescription
okYes
nameYes
summaryYes
failuresYes
nextStepsYes
notTestedYes
scenariosYes
reportPathNo

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false and openWorldHint=true; the description goes beyond them by disclosing that it actively drives the user's handler, that it must run against test infrastructure/secret, and that it returns structured failures with fix hints. It does not say whether replay state is cleaned up or what side effects (records written, logs emitted) persist after a run, which is the remaining behavioral gap for a non-read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences: what it does, the safety constraint, and the setup remedy — all front-loaded with no filler. The scenario enumeration is dense but earns its length because it defines the tool's actual coverage surface.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and 100% schema coverage, the remaining burden is safety and prerequisites, both addressed. What is missing is operational context for an open-world tool: whether the handler must be running, expected runtime/timeouts, and whether failures abort the whole run or are collected per scenario.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all four parameters, and the enum values for `scenarios` are fully spelled out there. The description adds only a loose mapping between the named failure families and those enum values; it says nothing extra about `cwd`, `reportPath`, or path resolution rules, so the baseline applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb ('Replay') and a precise resource ('hostile webhook deliveries ... against the handler described by a crash-lab config file'), then enumerates the exact failure classes exercised (duplicates, concurrent duplicates, out-of-order, forged/missing/stale signatures, malformed JSON). That enumeration also implicitly separates it from the read-only siblings (list_scenarios, explain_report, run_demo), which cannot be mistaken for an executor of scenario suites.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a hard usage constraint ('Use a TEST database and test secret only') and a prerequisite remedy ('Create a config with `npx webhook-crash-lab init` if none exists'), so an agent knows when the tool is applicable. It stops short of naming the sibling alternatives (e.g. call list_scenarios first to discover options), so routing is only partly covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_demoRun the built-in demoA
Read-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.

NameRequiredDescriptionDefault
modeNobroken

Output Schema

NameRequiredDescription
okYes
nameYes
summaryYes
failuresYes
nextStepsYes
notTestedYes
scenariosYes
reportPathNo

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior: no configuration is needed and the run is against a bundled sample app, which tells the agent this is a safe, self-contained trial. It does not describe runtime duration or failure modes, but an output schema exists to cover results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then the mode meanings, then the usage rationale. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, read-only demo tool with an output schema, the description covers what it runs, what the mode values mean, that no setup is required, and why to use it. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the enum values would otherwise be opaque; the description explains what "broken" and "fixed" actually demonstrate, adding real meaning beyond the raw enum list. It does not mention that mode defaults to "broken", which is the one remaining gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Run crash-lab against its built-in demo credits app") and scopes it as the demo, not the real run. It implicitly separates itself from run_crash_lab by stressing "built-in demo" and "needs no config", though it never names the sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use context: show what crash-lab checks before setting up a real config, with no config required. It does not explicitly say when not to use it (e.g., once a real config exists, use run_crash_lab), so the exclusion is left for the agent to infer from the sibling name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv0.2.4
    • First observedexplain_report
    • First observedlist_scenarios
    • First observedrun_crash_lab
    • First observedrun_demo

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count4/5

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.

Completeness3/5

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

ActivityMaintained
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A 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.
    16 npm
    10
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A 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.
    -