# Cleared — Check before your agent pays

**Job:** Attestation layer for autonomous agent commerce — score endpoints, route verified payTo, Witness settlement before USDC moves.

**Dev analogy (internal):** OpenRouter for x402 commerce — trust aggregation, not endpoint listing.

**Public:** https://clearedindex.com/connect · https://clearedindex.com/skill.md

## Default habit

```text
check(origin)        # step 1 — safe to pay?
→ route(category)    # step 2 — REQUIRED on PASS
→ pay route.payTo
→ witness(txHash)    # step 3 — prove settle
```

Regime endpoints (Entropy moat):

```text
regime(origin) → check → route → pay → witness
```

## Install

**Recommended — hosted URL (OAuth in Cursor):**

```json
{
  "mcpServers": {
    "cleared": {
      "url": "https://clearedindex.com/api/mcp"
    }
  }
}
```

Paste at https://clearedindex.com/connect — Cursor handles OAuth automatically.

**Fallback — stdio:**

```bash
npx -y @n747ai/clearedindex-mcp-server
```

| Tool | When |
|------|------|
| `check` | Unknown merchant — always first |
| `route` | **Always next on PASS** before pay |
| `witness` | After on-chain USDC settle |
| `regime` | Entropy pre-settle on regime/finance/compliance |

Legacy aliases still work: `lookup_merchant`, `route_gateway`, `witness_settlement`.

HTTP Check: `GET https://clearedindex.com/api/cleared/check?origin=<URL>&probe=false&source=sdk`  
HTTP Gateway: `POST https://clearedindex.com/api/cleared/gateway`  
Human: https://clearedindex.com/connect

## Hard rules

- On PASS, next tool is `route` — not pay yet
- Response includes `defaultNextTool: "route"` and `regimeBadge` when Entropy stamp is live
- Empty facilitator success without `tx_hash` is not money
- Cleared answers trust + route, not trade size
