RouteVerdict

io.github.QuincyGB由 GitHub 账号 QuincyGB 发布v0.1.2更新于 Oct 29, 2026

MCP server for RouteVerdict — x402 endpoint trust checks ($0.05 USDC on Base)

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

本地 stdio MCP 服务器,让助手审计 x402 端点的可信度与可用性,每次检查支付 0.05 USDC(Base 链)。

可以做什么
  • 审计 x402 付费资源 URL:返回 TRUSTED / CAUTION / AVOID 结论、0-100 信任分与逐项扣分列表
  • 检查目标可用性(实时 402 探测)、公开条款、发现模式质量,以及在 CDP Bazaar 与 PayAI 索引中的收录情况
  • 与同一 URL 的上次检查结果做对比
  • 未配置签名者时,不付款,而是把解析后的 402 付款挑战作为结构化错误返回
适用场景
适合在智能体准备为某个 x402 端点付费或依赖它之前,先做一次可信度与可用性评估;也适合先查看价格挑战再决定是否结算。
运行要求
以 Python 包形式本地运行(Python 3.10 及以上),通过 stdio 连接,可从 PyPI 或代码检出安装。付费调用需要一个在 Base 链上持有 USDC 的 EVM 私钥,通过 AGENT_PRIVATE_KEY 或 AGENT_KEY_FILE 指定的密钥文件提供。可选 ROUTE_VERDICT_MAX_AMOUNT_UNITS 设置单次调用花费上限,ROUTE_VERDICT_URL 覆盖服务基础地址。需要能访问该服务与目标端点。
安装前请注意
每次检查都会真实花钱:0.05 USDC(Base 链),由 AGENT_PRIVATE_KEY 或 AGENT_KEY_FILE 中的钱包私钥签名。私钥在本地用于签署 EIP-3009 授权,环境变量或配置文件泄露即暴露钱包;建议使用只放少量资金的专用代理钱包,并优先使用密钥文件方式。花费上限默认等于已知价格,调高 ROUTE_VERDICT_MAX_AMOUNT_UNITS 会允许更大金额。目标 URL 只被探测、不会被付款,检查结果会发送给 RouteVerdict 服务。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

route-verdict-mcp

[M8ven Score]

Standalone home: This server was split out of QuincyGB/token-verdict-tools so each MCP server has its own GitHub repository for directory ingestion and maintenance. The PyPI package name (route-verdict-mcp), version, and install command are unchanged.

An MCP server (stdio transport) that exposes RouteVerdict as a native tool for any MCP host — Claude Desktop, Cursor, or your own agent runtime.

RouteVerdict is a pay-per-call trust and liveness check for x402 endpoints: send any paid resource URL, get back a verdict (TRUSTED / CAUTION / AVOID), a 0–100 trust score, an itemized deduction list, a live 402 probe of the target, its published terms, discovery-schema quality, catalog presence in the CDP Bazaar and PayAI indexes, and a diff against the last check of the same URL. It costs $0.05 USDC per check on Base, paid via the x402 protocol — no accounts, no API keys; the payment is the authentication. The target endpoint is probed, never paid.

The tool

route_check — one tool, the service's real contract:

InputTypeNotes
resource_urlstring (required)Full URL of the x402 resource to audit

Output is the service's check JSON: resource_url, checked_at, verdict, score, reasons (itemized deductions), liveness, terms, schema_quality, catalog, and diff.

Install

bash
pip install route-verdict-mcp
# Or from a checkout of this repository:pip install .

Requires Python ≥ 3.10. The server pins the MCP v1 SDK API (mcp>=1.2,<2).

Configuration

All configuration is the operator's own environment — whoever runs this server supplies their own wallet. No key material ships in this package, and the package author never sees your key.

Env varRequiredPurpose
AGENT_PRIVATE_KEYfor paid callsEVM private key (0x...) of a wallet holding USDC on Base. Used locally to sign the x402 EIP-3009 authorization.
AGENT_KEY_FILEalternativePath to a file containing that key.
ROUTE_VERDICT_URLnoService base URL override (default: production).
ROUTE_VERDICT_MAX_AMOUNT_UNITSnoSpend guard per call in USDC micro-units (default 50000 = $0.05, the known price). The client refuses to sign anything priced above it.

Without a signer configured the tool never pays. On a 402 it returns the parsed challenge as a structured error — error: "payment_required" with the full accepts array (scheme, network, asset, amount, payTo) — so the calling agent can see the price and decide what to do, or settle the challenge with its own x402 client.

MCP host configuration

Claude Desktop (claude_desktop_config.json) — same shape for other stdio MCP hosts:

json
{  "mcpServers": {    "route-verdict": {      "command": "route-verdict-mcp",      "env": {        "AGENT_PRIVATE_KEY": "0xYOUR_OWN_WALLET_KEY"      }    }  }}

From a checkout instead of an install:

json
{  "mcpServers": {    "route-verdict": {      "command": "python",      "args": ["-m", "route_verdict_mcp"],      "env": {        "PYTHONPATH": "/path/to/route-verdict-mcp/src",        "AGENT_KEY_FILE": "/path/to/your/agent.key"      }    }  }}

Prefer AGENT_KEY_FILE over inlining a key in a config file when your host setup allows it.

How payment works

The client mirrors the standard x402 v2 flow (the same flow used for the fleet's own live cataloging payments):

  1. POST /v1/check unpaid → HTTP 402, challenge base64-encoded in the payment-required header.
  2. Pick the exact / eip155:8453 entry from accepts.
  3. Build an EIP-3009 TransferWithAuthorization (validAfter: 0, validBefore: now + maxTimeoutSeconds, random 32-byte nonce) and sign it as EIP-712 typed data against the USDC domain the challenge advertises (extra.name / extra.version).
  4. Retry the identical POST with the payload in the PAYMENT-SIGNATURE header. The service verifies and settles through its facilitator (PayAI) server-side; the settlement receipt comes back in the payment-response header.

Tests

bash
pip install -e ".[dev]"pytest

All payments mocked (httpx MockTransport, throwaway signer generated at test time). The 402 fixture is the real challenge captured from production; the paid-flow test verifies the EIP-712 signature actually recovers to the signer address.

Security notes

  • Your private key is read from your environment at runtime and used only to sign payment authorizations locally. It is never transmitted — the x402 payload contains a signature, not a key.
  • The spend guard caps any single call at the configured amount (default: exactly the $0.05 price).
  • Run this with a dedicated agent wallet holding only working funds, the same way you would fund any agent.

来源:README.md,提交 2f58402

工具

1

route_check

Audit an x402 endpoint's trust and liveness before paying or relying on it. Calls RouteVerdict (POST /v1/check, $0.05 USDC on Base via x402). Returns a verdict (TRUSTED / CAUTION / AVOID) with a 0-100 trust score, an itemized deduction list, a live 402 probe of the target (the target is never paid), its published terms, discovery-schema quality, catalog presence in the CDP Bazaar and PayAI indexes, and a diff against the last check of the same URL. Args: resource_url: Full URL of the x402 resource to audit.

输入参数resource_url必填

版本历史

2
  1. v0.1.2最新Oct 26, 2026
  2. v0.1.1Oct 23, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分