preflight402

io.ironshell由 ironshell.io 发布官方发布者v0.1.0更新于 Oct 24, 2026

Trust verdict for an x402 payment endpoint: health, 402 handshake, price, proceed/caution/avoid.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

托管型 MCP 服务器,在代理付款前对 x402 支付端点做预检,返回 proceed/caution/avoid 信任结论。

可以做什么
  • 检查付费 API 端点:preflight 工具接收一个 URL,返回 trust-preview.v1 结论。
  • 评估健康与握手:存活状态、TLS、402 握手解析(x402 v1/v2 与 MPP 识别)以及价格合理性。
  • 评估身份与声誉:ERC-8004 身份绑定,以及经女巫过滤的链上声誉,并给出通俗理由。
  • 托管实例同时提供普通 HTTP 接口,可执行同样的检查。
适用场景
当代理即将向不熟悉的 x402 端点付款,需要一次免费、快速的合理性检查时使用,判断端点是否在线、价格是否合理、声誉是否可信。它是付款前的检查工具,本身不执行付款。
运行要求
需要一个指向托管 streamable-HTTP 端点的远程 MCP 客户端;无需钱包、密钥或安装。若改为本地运行,则需要 uv 和相应 Python 包,README 说明 PyPI 发布尚未完成。
安装前请注意
结论仅供参考,基于探测与声誉启发式;README 指出多数收款方并未绑定 ERC-8004 身份,因此许多结论仅依赖健康、价格与握手。提交的 URL 会发送到托管服务。它不签名也不发起支付,可选的 guard 库默认失败开放。

安装

在 SourceWeft 中

  1. 打开 控制台中的 preflight402,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.ironshell%2Fpreflight402/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "preflight402": {
      "type": "http",
      "url": "https://preflight402.ironshell.io/mcp"
    }
  }
}

README

preflight402

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

[License: MIT] [Python 3.10+] [MCP]

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

Why "listed" means little: across 7.76M probes over 15 days of a 51,331-endpoint catalog, two squatting hosts account for 58% of every listed x402 endpoint — one serving a uniform 404 behind a "This app isn't live yet" placeholder, the other a uniform Cloudflare TLS failure. Strip them out and 87% of real endpoints work; measured per provider, about one host in seven (13.9%) serves no valid 402. Read the findings: What 7.8M probes say about the x402 economy — including why a GET-only crawl (ours included, before we fixed it) overstates x402 invalidity ~2×. Full method and caveats: docs/checkpoint-m3.md.

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:

sh
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:

sh
pip install "preflight402-guard[x402]"   # PyPI publish pending; for now: pip install "git+https://github.com/duskwire/preflight402.git#subdirectory=guard"
python
from preflight402_guard import Guardfrom x402 import x402Client
guard = Guard()          # block "avoid", warn on "caution"client = x402Client()guard.install(client)    # every payment is preflighted before signing;                         # a bad verdict raises PaymentAbortedError

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

As an MCP tool (no wallet, no key)

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):

sh
claude mcp add preflight402 -- uvx --from preflight402 preflight402-mcp# pre-PyPI: claude mcp add preflight402 -- uv run --directory /path/to/preflight402 preflight402-mcp

Claude Desktop — add to claude_desktop_config.json:

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:

sh
curl 'https://preflight402.ironshell.io/preflight?url=https://api.example.com/paid'

Or run it yourself (serves REST + MCP on one port):

sh
uv run uvicorn preflight402.api.app:app --port 8402curl 'http://localhost:8402/preflight?url=https://api.example.com/paid'

Development

Requires uv.

sh
uv sync                                        # create venv + install depsuv run uvicorn preflight402.api.rest:app       # serve on :8000curl http://localhost:8000/healthz             # {"status":"ok","version":"0.1.0"}
uv run pytest                                  # testsuv run ruff check .                            # lintuv run ruff format --check .                   # formatting

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 + queriesguard/            # preflight402-guard: client-side auto-preflight for the x402 SDKtests/            # unit/ + golden/ (captured 402 responses) + integration/ (marked slow)deploy/           # Dockerfile + deploy notesdocs/             # trust-preview.v1 schema + API docs (M8)

来源:README.md,提交 d775442

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分