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
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
# 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"}'mcp.call("get_bug_pack", { "issue_id": "iss_8f3a2c1d9e04", "include_framework_frames": false })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.
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.
Hono + KV DSN Cache
Accepts @sentry/nextjs gzipped envelopes, validates DSN keys from edge KV, and rate-limits runaway loops before storage.
Async Buffer + DLQ
Decouples SDK ingestion latency from source map work. Failed messages retry with backoff before landing in the dead-letter queue.
Source Maps + Scrubbing
Scrubs headers, cookies, and JSON secrets, resolves minified stack frames via @jridgewell/trace-mapping, and writes payloads to R2.
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.
| Capability | Culpr.dev | Traditional Error Trackers |
|---|---|---|
| SDK Compatibility | Drop-in @sentry/nextjs & @sentry/node | Proprietary or heavy SDK |
| AI Agent Access | Native Streamable HTTP MCP (4 tools) | Manual copy-paste or REST wrappers |
| Stack Trace Formatting | In-app frames + +/- 5 source lines | Full node_modules / framework noise |
| PII & Secret Redaction | Recursive headers, cookies, JWTs, emails, query params | Complex regex rules per project |
| Repro Generation | Automatic scrubbed curl & Vitest skeletons | Manual request reconstruction |
| Multi-Tenant Architecture | Per-project SQLite Durable Objects + RBAC | Shared cluster or high-cost self-host |
| Seat Pricing | Unlimited seats on Free & Pro | Per-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
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
Pro
RecommendedBuilt 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
Scale
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
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.