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 GatewayGitHub 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.