Cleared Index

Drop-in wedge

CLEARED

Index before you pay

01

cleared_check

probe=false · source=sdk

02

route_gateway

required on PASS

03

pay

route.payTo only

04

witness

tx_hash after settle

MCP

Host config

One npx.Every agent host.

{
  "mcpServers": {
    "clearedindex": {
      "command": "npx",
      "args": ["-y", "@n747ai/clearedindex-mcp-server"]
    }
  }
}

Tools: lookup_merchant, cleared_check, route_gateway, report_delivery. Check uses probe=false — no catalog burn.

beforePay

Check then Gateway.

Copy dropins/cleared-before-pay.ts into AgentKit, Eliza, or LangChain. beforePayRoute runs Check then Gateway — pay only the returned payTo.

import { beforePayRoute } from "./cleared-before-pay";

const { payTo } = await beforePayRoute(origin, { minScore: 70 });
// Check → route_gateway (required on PASS)
// pay only payTo — never skip Gateway

GitHub Action

Gate the origin in CI.

Composite action at .github/actions/cleared-gate. Fails on !pass or low score; warns on payToMismatch.

- uses: ./.github/actions/cleared-gate
  with:
    origin: https://api.example.com
    min-score: "70"

Outcome report

Close the loop after pay.

MCP report_delivery or POST gateway/track so route quality compounds.

curl -s -X POST https://clearedindex.com/api/cleared/gateway/track \
  -H "Content-Type: application/json" \
  -d '{"event":"gateway_route_outcome","outcome":"delivered","origin":"https://api.example.com"}'

Full portable kit: dropins/ · SDK · CDP tape · Orbis LOI