# Snapback MCP server

Diagnose why an AI agent failed and get the verified fix instantly. Free, no token.

## Facts

- Endpoint: https://api.snapback.sh/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: A (100/100, scanned 2026-09-24) · report https://gateturbo.com/report/f8469636-ae43-4a37-91c9-c3d1352b779f
- Tools: 23
- Category: Docs & AI · source: registry
- Repository: https://github.com/ra1labsworkx-wq/snapback-selfheal
- Last probed: 2026-09-23 · first listed: 2026-09-22
- Directory page: https://gateturbo.com/mcp/snapback · this document: https://gateturbo.com/mcp/snapback.md · JSON: https://gateturbo.com/api/directory/servers/snapback

## Tools (23)

- `diagnose_trace`: Diagnose why an AI agent run failed. Returns a structured verdict (failure_class, failed_at_step, root_cause, fix_suggestion, confidence). L
- `diagnose_batch`: Diagnose SEVERAL traces in one call (up to 20). Each trace is metered like a separate diagnose_trace. Returns a verdicts array (per-trace, o
- `get_verdict`: Fetch a previously produced verdict by its id or by trace_id (your org only).
- `preflight`: BEFORE running: get known failure patterns for a given agent setup so you can avoid them. Returns a ranked list of {failure_class, root_caus
- `submit_feedback`: Tell Snapback whether a verdict was correct (correct=true/false), with an optional free-text note (did the fix work? what was wrong?). ONE r
- `get_request_status`: Check what happened to a pattern you requested (from request_pattern's request_id). Returns pending / approved / rejected / in_library so yo
- `my_usage`: See YOUR current usage + remaining allowance so you can self-govern spend: snapbacks (diagnoses) used/cap/remaining, guard checks used/cap/r
- `my_impact`: See how your feedback + pattern requests have shaped the shared library — how many verdicts you've rated, patterns you've requested, and how
- `what_others_did`: THE CROWD: for a failure_class (or pass the family/error and we'll map it), see what OTHER agents did about the same failure and whether it 
- `report_outcome`: Report the outcome of an auto-applied fix (the self-heal interceptor calls this after it gate-applied a fix and retried). Pass failure_class
- `recommend_failover`: Should you RETRY the same target, SWITCH provider, FALL BACK to another chain, or STOP? Pass the error + your configured topology (current_c
- `cascade_root`: Given an ORDERED list of errors from a run (oldest first), find the TRUE root — the error that cascaded or shouldn't have been retried — not
- `suggest_budget_recovery`: Approaching a token/context/cost budget mid-run? Pass your counters and get the LEAST-DISRUPTIVE recovery ranked: truncate context | switch 
- `request_pattern`: Leave us a message: ask us to add a failure pattern to the library, or report a problem we couldn't diagnose well. Use this when diagnose_tr
- `detect_loop`: MID-RUN loop check (fast, no LLM, free). Send your recent steps DURING a run; get back whether you're stuck repeating a tool call and a conc
- `session_start`: Open a LIVE mid-run session so Snapback can watch your run step-by-step and warn you in real time (loop / token / cost / context) - the alwa
- `session_step`: Report ONE step of a live run and get back any warnings immediately (loop detected / budget breach). Pass the step (action + inputs) and any
- `session_end`: Close a live session and get a short run summary (total steps, duration). Frees the session. Free, no token.
- `agent_memory`: See what YOU (this agent) tend to fail on — your recurring failure patterns across past diagnoses. Returns your top failure classes with cou
- `budget_guard`: Live MID-RUN budget check (fast, no LLM). Send whatever counters you have and get an advisory on context %, token burn, cost burn, step budg
- … 3 more after connecting

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect Snapback to your gate (https://gateturbo.com/login?next=/discovery?connect=snapback).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/snapback/claude · Claude Desktop → https://gateturbo.com/mcp/snapback/claude-desktop · ChatGPT → https://gateturbo.com/mcp/snapback/chatgpt · Codex → https://gateturbo.com/mcp/snapback/codex · Cursor → https://gateturbo.com/mcp/snapback/cursor · Windsurf → https://gateturbo.com/mcp/snapback/windsurf · VS Code → https://gateturbo.com/mcp/snapback/vscode · Gemini CLI → https://gateturbo.com/mcp/snapback/gemini-cli · OpenClaw → https://gateturbo.com/mcp/snapback/openclaw · n8n → https://gateturbo.com/mcp/snapback/n8n · A script or server → https://gateturbo.com/mcp/snapback/script

### Direct: Claude Code

Add Snapback to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http snapback https://api.snapback.sh/mcp
```

### Direct: Cursor

Add Snapback to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "snapback": {
      "url": "https://api.snapback.sh/mcp"
    }
  }
}
```

### Direct: VS Code

Add Snapback to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "snapback": {
      "type": "http",
      "url": "https://api.snapback.sh/mcp"
    }
  }
}
```

### Direct: Codex

Add Snapback to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.snapback]
url = "https://api.snapback.sh/mcp"
```

### Direct: Claude

Add Snapback as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "Snapback" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://api.snapback.sh/mcp
```

### Direct: ChatGPT

Add Snapback as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "Snapback" with the URL below.
3. Set authentication to none.

```
https://api.snapback.sh/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
