Skip to content
Sentry SDK compatible·100% Cloudflare Workers

Production errors formatted for coding agents.

Keep your existing @sentry/nextjs or @sentry/node SDK and swap the DSN. Culpr resolves source maps, scrubs PII, generates a runnable repro, and hands a clean BugPack to Cursor or Claude Code over Remote MCP.

Wire Format
Sentry Envelope
Agent Protocol
Streamable HTTP MCP
Tenant Store
SQLite Durable Object
Access Model
Multi-Tenant RBAC

The 30-second fix loop

Strip stack noise before your context window pays for it.

Interactive MCP trace below

Raw SDK Stack Trace
Noisy · Secrets exposed
TypeError: Cannot read properties of undefined (reading 'customerId')
  at Object.POST (.next/server/chunks/842.js:1:48219)
  at async app-pages-internals.js:1:9102
  at async node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:42108
  at async node_modules/next/dist/server/lib/trace/tracer.js:140:36

Headers:
  Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
  Cookie: session_id=9f81c2e7b1...
Repro: not generated
Culpr BugPack
In-app frames only · PII scrubbed
# iss_8f3a2c1d9e04 · app/api/checkout/route.ts:48:19
const customer = await stripe.customers.retrieve(session.user.customerId);
                                                            ^

Headers (scrubbed):
  Authorization: [REDACTED]
  Cookie: [REDACTED]

Repro:
  curl -X POST https://app.example.com/api/checkout -d '{"plan":"pro"}'
cursor-agent · https://api.culpr.dev/mcp
// MCP tool call
mcp.call("get_bug_pack", { "issue_id": "iss_8f3a2c1d9e04", "include_framework_frames": false })
iss_8f3a2c1d9e04 · TypeError: Cannot read properties of undefined (reading 'customerId')47 events · node_modules stripped
app/api/checkout/route.ts:48:19 (release 8f3a2c1)
44export async function POST(request: Request) {
45 const session = await getCheckoutSession(request);
46 const body = await request.json();
47
48 const customer = await stripe.customers.retrieve(session.user.customerId);
49 const intent = await createPaymentIntent(customer.id, body.plan);
50 return Response.json({ clientSecret: intent.client_secret });
51}
// PII scrubbed automatically
Authorization: [REDACTED]
Cookie: [REDACTED]
email: [REDACTED]
// Generated curl repro
curl -X POST https://app.example.com/api/checkout -H "Content-Type: application/json" -d '{"plan":"pro"}'

2-minute migration

Three steps from Sentry to autonomous debugging.

Sign in with your workspace account (culpr_ses_*) or mint role-scoped project tokens (culpr_dsn_*, culpr_cli_*, culpr_mcp_*, culpr_adm_*) with instant DSN rotation.

Keep @sentry/nextjs or @sentry/node. Change one string.

Culpr speaks the native Sentry Envelope wire format with gzip decompression and X-Sentry-Auth validation. Zero SDK lock-in.

sentry.server.config.ts
import * as Sentry from "@sentry/nextjs";

Sentry.init({
  dsn: "https://<CULPR_DSN_KEY>@api.culpr.dev/<PROJECT_ID>",
  release: process.env.GIT_SHA,
  environment: process.env.NODE_ENV,
});

Architecture & guardrails

Built on Cloudflare primitives with Day-1 safety rails.

01 · Edge Ingestion

Hono + KV DSN Cache

Accepts @sentry/nextjs gzipped envelopes, validates DSN keys from edge KV, and rate-limits runaway loops before storage.

02 · Cloudflare Queue

Async Buffer + DLQ

Decouples SDK ingestion latency from source map work. Failed messages retry with backoff before landing in the dead-letter queue.

03 · Processor Worker

Source Maps + Scrubbing

Scrubs headers, cookies, and JSON secrets, resolves minified stack frames via @jridgewell/trace-mapping, and writes payloads to R2.

04 · ProjectDO + MCP

SQLite DO + Streamable HTTP

Upserts grouped issues into a dedicated SQLite Durable Object per project and serves BugPacks to Cursor and Claude Code over /mcp.

Strict in-app frame filtering

Strips node_modules, webpack internals, and Next.js runtime boilerplate so agents only see your application files and +/- 5 source lines.

Recursive PII & token scrubbing

Redacts authorization headers, cookies, JWTs, API keys, emails, phone numbers, IP addresses, and query secrets before storage.

Multi-tenant isolation & RBAC

Organizations, multiple projects, team invites, per-project SQLite Durable Objects, and R2 key ownership enforcement prevent cross-tenant reads.

25 MB source map guard

Rejects oversized .map bundles cleanly and skips parsing when a bundle exceeds Worker memory safety thresholds.

Hourly spike loop protection

Keeps the first 10 identical events per hour, then drops to 1-in-20 sampling after 500 events so an infinite loop never drains your quota.

Tiered R2 lifecycle retention

Automatically expires raw event payloads at 14 days on Free or 30 days on Pro, paired with Durable Object alarm pruning.

Why Culpr.dev

Purpose-built for LLM coding loops, not human click-ops.

CapabilityCulpr.devTraditional Error Trackers
SDK CompatibilityDrop-in @sentry/nextjs & @sentry/nodeProprietary or heavy SDK
AI Agent AccessNative Streamable HTTP MCP (4 tools)Manual copy-paste or REST wrappers
Stack Trace FormattingIn-app frames + +/- 5 source linesFull node_modules / framework noise
PII & Secret RedactionRecursive headers, cookies, JWTs, emails, query paramsComplex regex rules per project
Repro GenerationAutomatic scrubbed curl & Vitest skeletonsManual request reconstruction
Multi-Tenant ArchitecturePer-project SQLite Durable Objects + RBACShared cluster or high-cost self-host
Seat PricingUnlimited seats on Free & ProPer-seat fees

Frequently asked questions

Clear answers for engineers and coding agents.

Does Culpr.dev work with @sentry/nextjs and @sentry/node?

Yes. Swap the DSN string in Sentry.init() to point at https://<KEY>@api.culpr.dev/<PROJECT_ID>. Culpr ingests native gzipped Sentry envelopes with X-Sentry-Auth validation so no custom SDK or vendor lock-in is required.

How do Cursor and Claude Code connect to Culpr.dev?

Connect over stateless Streamable HTTP MCP at https://api.culpr.dev/mcp using an Authorization Bearer culpr_mcp_* token. Agents get four tools: get_project_summary, list_active_bugs, get_bug_pack, and mark_bug_resolved.

What is a BugPack?

A BugPack is a token-optimized Markdown dossier generated per grouped issue. It strips node_modules and framework boilerplate, resolves TypeScript source maps to +/- 5 lines around the crash site, scrubs PII and secrets, and includes a runnable curl command or Vitest skeleton.

How does Culpr.dev protect PII, auth headers, and API keys?

The queue processor recursively redacts authorization headers, cookies, JWTs, API keys, emails, phone numbers, IP addresses, and sensitive URL query parameters before writing payloads to Cloudflare R2 or Durable Object SQLite.

How does multi-tenant isolation and seat pricing work?

Every project stores issues, hourly spike counters, and events inside its own isolated SQLite Durable Object, paired with D1 RBAC memberships (owner, admin, member) and R2 object ownership checks. All plans include unlimited organizations, projects, and seats.

What happens during an infinite error loop or traffic spike?

Edge ingestion enforces per-project minute rate limits backed by Durable Objects and monthly quotas. During an issue spike, Culpr stores full payloads for the first 10 events per hour and samples 1-in-20 after that so one crash loop never exhausts storage.

Pricing

Unlimited seats on every plan.

Pay for error volume and artifact retention, not per developer or coding agent.

Free

$0/month

Everything you need to hook up your coding agent on side projects.

  • 10,000 events / month
  • 500 events / min rate limit
  • 14-day R2 payload retention
  • Unlimited organizations, projects & seats
  • Full Remote MCP server + source maps
Create Free Account

Pro

Recommended
$29/month

Built for production TypeScript apps with active CI releases.

  • 250,000 events / month
  • 2,000 events / min rate limit
  • 30-day R2 payload retention
  • 90-day source map artifacts
  • Unlimited seats + Stripe billing portal
Upgrade in Dashboard

Scale

$99/month

High-volume error tracking with 90-day payload forensics.

  • 1,000,000 events / month
  • 5,000 events / min burst rate limit
  • 90-day R2 payload retention
  • 90-day source map artifacts
  • Unlimited seats + Stripe billing portal
Upgrade to Scale

Ready to hand production bugs to your coding agent?

Create a free workspace in seconds, invite teammates, and point your Sentry DSN at api.culpr.dev.