preflight402
One free call before your agent pays. Health, authenticity, and Sybil-filtered
reputation β one verdict.

A free trust/health preflight for the agent payment economy (x402). It probes
an endpoint before your agent pays and returns one trust-preview.v1 verdict:
liveness, TLS, the 402 handshake (x402 v1/v2 + MPP detection), price sanity,
continuous uptime history, ERC-8004 identity binding, and Sybil-filtered
on-chain reputation β rolled into a proceed / caution / avoid recommendation
with plain-language reasons. No wallet, no key, no charge.
Why filtered reputation matters: one live agent shows a 99.8/100 average
from 996 reviewers β until Sybil filtering collapses those reviewers into 12
independent funding clusters at 89.7. Raw reputation is trivially farmed;
this is what the verdict actually scores. (Separately, only ~4% of x402 payees
bind to any ERC-8004 identity at all β so most verdicts run on health, price,
and handshake, and say so honestly.)
30-second quickstart
Point any agent at the hosted MCP endpoint β no wallet, no key, no install:
https://preflight402.ironshell.io/mcp
Or check an endpoint over plain HTTP:
curl 'https://preflight402.ironshell.io/preflight?url=https://api.example.com/paid'
Guard every payment automatically
preflight402-guard turns the service into a payment gate for the
x402 Python SDK β safety becomes
default-on instead of something an agent has to remember to call:
pip install "preflight402-guard[x402]"
from preflight402_guard import Guard
from x402 import x402Client
guard = Guard()
client = x402Client()
guard.install(client)
It also cross-checks that the payee your client selected matches the endpoint
that was preflighted (the 402's resource URL is attacker-controlled), enforces
an optional max_price_usd ceiling against the actual selected terms, and
fails open by default so your commerce never depends on our uptime. There's
a CLI too: preflight402-guard check <url>. See guard/README.md.
Status
Live at preflight402.ironshell.io and in
the official MCP registry as
io.ironshell/preflight402. The free preflight engine (health + 402 parse +
verdict), continuous probing with uptime history, ERC-8004 binding, and the
Sybil filter are all shipped and serving live. The whole service is free β
there is no paywall.
Use it
The preflight tool takes a url and returns a trust-preview.v1 verdict.
Easiest β point any MCP client at the hosted instance, no install:
https://preflight402.ironshell.io/mcp (streamable-http)
Or run it yourself over stdio. Claude Code β one line (PyPI publish pending;
until then point --directory at a clone):
claude mcp add preflight402 -- uvx --from preflight402 preflight402-mcp
Claude Desktop β add to claude_desktop_config.json:
{
"mcpServers": {
"preflight402": {
"command": "uvx",
"args": ["--from", "preflight402", "preflight402-mcp"]
}
}
}
Either way, run it as a hosted HTTP server with
preflight402-mcp --transport streamable-http (serves the same tool at
http://<host>:8000/mcp).
As a REST call
The hosted instance also serves REST:
curl 'https://preflight402.ironshell.io/preflight?url=https://api.example.com/paid'
Or run it yourself (serves REST + MCP on one port):
uv run uvicorn preflight402.api.app:app --port 8402
curl 'http://localhost:8402/preflight?url=https://api.example.com/paid'
Development
Requires uv.
uv sync
uv run uvicorn preflight402.api.rest:app
curl http://localhost:8000/healthz
uv run pytest
uv run ruff check .
uv run ruff format --check .
Layout
src/preflight402/
βββ api/ # REST + MCP server
βββ probe/ # async prober, TLS inspection, 402 parsers (x402 v1/v2, MPP)
βββ verdict/ # rules -> trust-preview.v1 JSON
βββ chains/ # ChainVerifier interface: EVM (Base), SVM (Solana)
βββ reputation/ # ERC-8004 subgraph client, endpoint binding, Sybil filter
βββ ingest/ # endpoint seed ingesters (Bazaar, x402scan, ...)
βββ scheduler/ # probe loop with per-host politeness
βββ db/ # SQLite (WAL) schema + queries
guard/ # preflight402-guard: client-side auto-preflight for the x402 SDK
tests/ # unit/ + golden/ (captured 402 responses) + integration/ (marked slow)
deploy/ # Dockerfile + deploy notes
docs/ # trust-preview.v1 schema + API docs (M8)