flaredump
Captures failed Cloudflare Workers requests and D1/KV/R2/Workers AI binding reads into replay files, and provides MCP tools to inspect crashes and replay handlers with deterministic mocked bindings.
Exports captured Cloudflare Worker crashes as Vitest regression tests, with dry-run or write options.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
flaredump
Flight recorder for Cloudflare Workers: capture failed requests (D1, KV, R2, and Workers AI reads) into .cfreplay.json and replay them offline in milliseconds.
Install
bunx flaredump replay ./crash.cfreplay.json
npx flaredump replay ./crash.cfreplay.json
# or install in your project / globally
bun add -d flaredump
npm i -D flaredumpJSR:
bunx jsr add @kanchingyg/flaredump
npx jsr add @kanchingyg/flaredumpRelated MCP server: FlowLens MCP
Quick start
npx flaredump replay ./crash.cfreplay.json
bunx flaredump replay ./crash.cfreplay.json
npx flaredump --explain ./crash.cfreplay.json --model ollama/qwen2.5-coder:7b
npx flaredump --mcpWorker middleware
import { withFlareDump } from "flaredump";
export default withFlareDump(async (request, env) => {
const rows = await env.DB.prepare("SELECT 1").all();
return Response.json(rows);
});On throw or status >= 500, flaredump serializes the request plus binding results (secrets redacted as [REDACTED]).
MCP (Cursor, Claude Code, Kilo Code, Pi)
Add to your MCP config:
{
"mcpServers": {
"flaredump": {
"command": "npx",
"args": ["-y", "flaredump", "--mcp"]
}
}
}Local models (Ollama / LM Studio)
Use --explain with any OpenAI-compatible or Ollama endpoint to summarize a capture:
npx flaredump --explain crash.cfreplay.json --model ollama/qwen2.5-coder:7bMCP Tools Reference
Tool | Mutates | Description |
|
| Read a |
|
| Re-execute the Worker handler offline against deterministic mocked bindings captured in |
|
| Generate and write a Vitest regression test reproducing the captured crash (requires |
Editor and Agent Integration
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"flaredump": {
"command": "npx",
"args": ["-y", "flaredump", "--mcp"]
}
}
}Claude Code CLI
claude mcp add flaredump -- npx -y flaredump --mcpProgrammatic Usage (JSR / TypeScript)
import * as bridge from "jsr:@kanchingyg/flaredump/bridge";Runtime Safety and Guardrails
Stdio frame isolation: When
--mcpis active,hijackStdoutForMcp()redirects accidentalconsole.logcalls tostderrso JSON-RPC 2.0 frames onstdoutnever corrupt.Read-only by default: Mutating tools (
mutates: true) are blocked in--dry-runmode and require explicit--allow-writeauthorization.Loop breaker: Repeated identical
(toolName, args)invocations are hashed with SHA-256 and halted after 3 consecutive repeats to prevent runaway agent loops.Context budget truncation: Tool outputs are middle-truncated (
60%head /40%tail) scaled to the probed local modeln_ctx(Ollama/api/show, llama.cpp/props, vLLM/v1/models).Secret redaction and path normalization: AWS keys (
AKIA*,ASIA*), bearer tokens, andsk-*keys are scrubbed before returning tool output, and Windows drive paths (C:\...) translate cleanly to/mnt/c/...when WSL mode is enabled.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Production bugs with replay, network, console and stack, ranked for your coding agent to fix.
Capture, inspect, send and assert on webhooks and inbound email from your coding agent.
Build, validate and deploy workflows as Cloudflare Workers in your own account, with approval.
Discover Playwright workflows, start runs, and inspect results in Playrunner Cloud.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables coding agents to capture and replay intermittent software failures, minimize reproductions, compare trials, search regressions, verify proposed fixes against a saved failing baseline, and retrieve investigation evidence without rerunning commands.129 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to inspect recorded browser flows—including user actions, network, console, storage, DOM events, and screen recordings—for debugging, bug reporting, regression testing, and Playwright test generation.-
- FlicenseNot gradedqualityAmaintenanceGives coding agents full browser context from recorded user flows, including actions, network, console, storage, DOM events, and screen recordings. Enables in-depth debugging, bug reporting, regression testing, and Playwright test generation without reproducing issues.-
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to inspect recorded browser flows—including user actions, network, console, storage, DOM events, and screen recordings—for debugging, bug reporting, regression testing, and generating Playwright tests.-