Skip to Content
v0.8.0 · shippedNative iOS / Android / Flutter / Capacitor SDKs, A2A discovery, SOC 2 readiness, residency, BYO storage, BYOK. Read the changelog →
QuickstartIncident loop (start here)

Incident loop

The vibe-coder path: something broke in prod → plain-English diagnosis → paste-ready fix prompt in Cursor. This is the 20-second demo loop.

Today: classification in seconds; fix brief via MCP tools. Target: sub-10-second end-to-end diagnosis. MCP needs a Mushi account + project key — not a separate OpenAI/Anthropic key.

Prerequisites

  1. A Mushi project + API key (credentials)
  2. At least one report (SDK capture, test report from npx mushi-mushi, or Sentry inbound)
  3. MCP wired into Cursor — MCP quickstart or Connect & Update → Add to Cursor

Step 1 — Capture or pick a report

New project:

npx mushi-mushi # wizard writes .env.local + optional test report mushi connect --wait

Existing report: open Admin → Reports and copy a report UUID, or ask the agent: “list recent mushi reports”.

Step 2 — Pull fix context

In Cursor, ask:

Use Mushi MCP: call get_fix_context for report <uuid> and summarize the root cause in plain English.

get_fix_context returns classification, repro steps, blast radius, and inventory spec context in one payload — plus a fixPrompt: a paste-ready, agent-ready fix brief composed server-side (diagnosis + reproduction + suggested fix + relevant code hints). No second LLM key required to build it. For most bugs you can paste fixPrompt straight into Cursor and skip to Step 4; Step 3 below adds blast-radius and similar-bug context when you want a deeper plan.

Step 3 — Generate the fix prompt

Run the MCP prompt summarize_report_for_fix with the same report ID, or ask:

Run the Mushi prompt summarize_report_for_fix for report <uuid>. Give me a paste-ready Cursor prompt to fix it.

The prompt orchestrates get_fix_context, get_blast_radius, and get_similar_bugs into a structured fix plan.

Step 4 — Paste and ship

Copy the agent’s output into a new Cursor chat (or continue in the same thread) and ask it to implement the fix. Optionally dispatch a draft PR later via dispatch_fix when GitHub is linked.

Troubleshooting

SymptomFix
No tools listedRestart IDE after MCP install; run diagnose_setup
Empty reportsCheck SDK heartbeat; verify report:write key in .env.local
MCP auth errorsUse an mcp:read or mcp:write key — not the SDK ingest key only

See also

Last updated on