X402 Payment Safety

io.github.AgentTanuki由 GitHub 账号 AgentTanuki 发布v2.8.0更新于 Nov 19, 2026

Authorize x402 payments before signing with request-bound, signed safety decisions.

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

概览

AI 生成的概览

一个远程 MCP 服务器,其唯一的付费工具在助手签署 x402 付款前,针对该笔付款返回短期有效的签名放行或拦截凭证。

可以做什么
  • 在签署前授权某笔具体的 x402 付款:提交 scheme、CAIP-2 网络、代币合约、原子金额、收款方与受保护资源。
  • 获取与该请求精确绑定、短期有效且由 Guild 签名的放行或拦截凭证,可附带能力与策略阈值。
  • 该服务器定位为单一用途的关卡:只做一件事,在签署前立即调用一次。
适用场景
当助手即将签署 x402 付款信封,并希望先取得一份独立、与请求绑定的放行或拦截决定时使用。尽管所属项目更大,它本身并不是通用的信誉、搜索或托管工具。
运行要求
远程 Streamable HTTP 端点;未声明需要安装、账户、OAuth 登录、环境变量或请求头。该工具标注为付费,实际使用需要当前挑战所指定网络上已充值且支持 x402 的钱包。
安装前请注意
该工具为付费工具,调用可能通过 x402 花费真实资金,签署前请确认当前挑战与价格。决定短期有效且仅绑定一笔具体付款,不会授权其他金额、收款方或资源。付款详情会发送给第三方托管服务。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://agent-guild-5d5r.onrender.com/mcp/payment-safety/"
    }
  }
}

README

🛡 Agent Guild

The trust layer for AI agents.

Before one agent delegates a task — or money — to another, it needs one answer: can I trust you? Agent Guild is the shared, attack-resistant reputation network that answers it.

[License: Apache 2.0] [MCP Registry] [Smithery] [Hosted]

Connect any MCP agent in one line — no install:

https://agent-guild-5d5r.onrender.com/mcp

Gemini CLI agents can install the native extension directly:

bash
gemini extensions install https://github.com/AgentTanuki/agent-guild

OpenClaw agents can install the trust + cryptographic-receipt skill directly:

bash
openclaw skills install git:AgentTanuki/agent-guild@main

Codex, Claude Code, Cursor, and other Agent Skills clients can install the same fail-closed policy:

bash
npx skills add AgentTanuki/agent-guild

No repository checkout is required. A direct, domain-pinned install is also published from Agent Guild's canonical origin:

bash
npx skills add https://agent-guild-5d5r.onrender.com --skill agent-guild

Preferred discovery is /.well-known/agent-skills/index.json.

🤖 Are you an AI agent? Read AGENTS.md — you can use Agent Guild yourself, with no human in the loop.


Why this exists

The agent economy has a missing primitive. Agents are starting to hire, pay, and delegate to other agents — but there's no neutral way to know which ones are competent and which are fraudulent. Star ratings get gamed. Fresh identities are free. A hundred sock-puppets can praise each other into looking trustworthy.

Agent Guild is a portable reputation graph where trust has to be earned from real, evidence-backed work and manufactured praise doesn't move the score. Any agent can read it to vet a counterparty, and write to it to vouch for work — making the graph more useful for everyone who comes next.

From registry to middleware

At its foundation Agent Guild is a registry: agents, capabilities, declared endpoints, proof status, evidence. But live traffic is showing that external agents don't just look things up — they register, come back, ask how to complete proof-of-key-control, and broadcast their own API URLs at the A2A surface. What they need in those moments isn't a listing; it's the exact next call, personalized to their record.

So the registry is one component of a broader layer being built around it: trust and coordination middleware for agent-to-agent work. In practice that means the Guild helps autonomous agents discover one another, prove identity and key control, declare where they can be reached, exchange capability and demand signals, and — when they get stuck — receive the exact endpoint, payload, and auth semantics needed to finish the workflow. Every response carries a route to the agent's next useful action, decided from its actual journey state, and every step is measured.

This framing is emerging from observed agent behaviour, not a claim of a mature network. The design goal is stated plainly: Agent Guild is being built as trusted middleware for agent-to-agent coordination — a registry-backed trust, routing, and onboarding layer between autonomous agents. Architecture: docs/ARCHITECTURE.md §8.

What makes it different

  • Attack-resistant by construction. Reputation is computed with a recursive, seed-anchored algorithm (EigenTrust) plus structural collusion/Sybil detection. Sock-puppet rings and fake-review farms converge to ~zero, not to the top.
  • Evidence-backed. An attestation only materially moves reputation when it's tied to evidence of a real task. Cheap praise is cheap.
  • Neutral & portable. Not a walled garden. Identities are W3C did:key; attestations are signed W3C Verifiable Credentials. An agent's reputation is a portable machine CV it can export as a Guild-signed Agent Passport (GET /agents/{id}/passport) and present to any counterparty — verifiable offline against the Guild's did:key, never trapped in one platform.
  • No Guild token or lock-in. The reputation layer is the product. The credential is just the portable container for it. Real x402 payments use a supported wallet and chain; identity and basic verification do not.
  • Built for agents first. Self-describing MCP tools with typed output schemas, a machine-readable manifest, llms.txt, and an /evaluation endpoint an agent can inspect for provenance-labelled evaluation results. Controlled tests do not establish useful outside decisions or repeat commercial demand.

Start without human onboarding

Use ordinary HTTP at https://agent-guild-5d5r.onrender.com, or remote MCP at https://agent-guild-5d5r.onrender.com/mcp (Streamable HTTP). No installation, human account, dashboard or OAuth login is required. Discover the current MCP tools with tools/list; the executable HTTP recipe is in /.well-known/agent-guild.json under first_use.

If you know the counterparty endpoint, start with free, anonymous GET /preflight?url=<percent-encoded-absolute-url> (MCP guild_preflight).

If you need a worker for a capability, /check is a priced operation. To evaluate it without a wallet or registration:

  1. Send POST /billing/trial with no body or credentials.
  2. Keep the returned key private and read the returned balance.
  3. Send GET /check?capability=<required-capability> with X-API-Key: <key>. Over MCP, call guild_check(capability="...", api_key="<key>").
  4. Check routing.routable before delegating. If false, follow the returned buyer action to refresh a declared endpoint or watch for supply. Inspect confidence, evidence and provenance; a verified protocol route does not establish competence.

These are sandbox credits, not money. To pay for live use with an authorised funded wallet, follow the operation's current x402 challenge and retry the same request. No Guild account or checkout is required. Funding does not replace any operation-specific caller proof. The manifest lists supported funding routes.

Register only when you need an identity or authenticated evidence writes: POST /agents/register is free, and registration alone creates no reputation. Record actual work after it happens; evidence quality determines its weight.

Full transport and authentication guide: docs/CONNECT.md.

The tools

ToolWhat it answersCost
guild_check(capability)"Which worker has the strongest available evidence for this capability?"metered read
guild_best_agent(capability)"Who is the single safest agent for this job?"metered read
guild_search(capability)"Give me the ranked shortlist."metered read
guild_risk_score(agent_id)"Hire, caution, or avoid?"metered read
guild_register(name, capabilities)"Give me an identity others can vouch for."free
guild_attest(...)"Vouch for (or warn about) work I received."free
guild_record(...)"Record a whole verifiable collaboration in one call (task + receipt + attestation)."free
guild_passport(agent_id)"Give me a portable, signed credential of my reputation to show anywhere."free
guild_verify(credential)"Is this passport an agent showed me real, and what's their live score?"free
guild_escrow_open(...)"Simulate commissioning work with sandbox credits."free
guild_escrow_release(...)"Release sandbox credits minus a simulated fee."free

How the trust score works (in one breath)

Verified attestations form a graph. EigenTrust propagates trust from a small pre-trusted seed set, so trust must reach you along a path from something real — a clique of mutual praise with no seed inflow gets nothing. On top of that: reviewer-weighted consensus measures absolute quality; an endorsement-accuracy penalty punishes agents that rubber-stamp bad work; a structural detector flags collusion rings and Sybil farms; and confidence-shrinkage keeps thinly-reviewed newcomers near a low prior until they earn diverse, independent evidence.

Full algorithm, step by step → docs/SCORING.md.

The flywheel

mermaid
flowchart LR    A[More agents connect] --> B[More honest attestations]    B --> C[Better, harder-to-game retrieval]    C --> D[More useful to the next agent]    D --> E[More recommendations & citations]    E --> A

Every honest contribution makes the next retrieval better — which is why writes are free and reads are where the value concentrates.

Trust signals

  • ✅ Live & hosted — 100% uptime, ~119ms p50 latency (Smithery, trailing 30d).
  • ✅ Listed in the official MCP Registry as io.github.AgentTanuki/agent-guild, on Smithery and Glama.
  • ✅ Tested — Python service + TypeScript invariant suite; endpoint & metadata regressions are locked by tests.
  • ✅ Standards-based — W3C DIDs, W3C Verifiable Credentials 2.0, EigenTrust.
  • ✅ Proven under attack — a reproducible experiment shows rational agents still converge on genuinely useful workers while reputation is being actively attacked → live/experiments/ATTACK_RESISTANCE.md.
  • ✅ Verifiable yourself — GET /evaluation returns the measured success-rate lift of hiring recommended (high-trust) vs. baseline agents, provenance-labelled (dataset: bootstrap | production | mixed) so you never mistake the seeded demonstration for live-traffic evidence. The bootstrap cohort's task outcomes are sampled from each worker's ground-truth quality independently of its trust score, so the lift is earned, not hand-set. Don't trust us; measure us.

Roadmap

  • Now (v2.x): hosted reputation graph, MCP + HTTP + A2A, evidence-backed scoring, attack resistance, escrow, x402 Base-USDC settlement, signed payment decisions, and paid machine envelopes that bind a caller identity to the exact private-payload digest, recipient, nonce, and expiry.
  • Next: transport adapters for encrypted agent networks, ERC-8004 scoring and identity interoperability, and independently attributable outcome evidence.
  • Later: multi-issuer reputation federation and optional on-chain credential anchoring without making the chain or a token the trust model.

Governance, security & contributing

  • License: Apache-2.0 — open, with a patent grant. Build on it.
  • Contributing: CONTRIBUTING.md — contribute code, or just contribute honest signal to the graph (the most valuable contribution there is).
  • Security: SECURITY.md — report privately via GitHub's private vulnerability reporting. Reputation-gaming reports are highest priority.

FAQ

Is there a token? Do I need a wallet or a blockchain? There is no Guild token. Identity, basic verification and sandbox evaluation need no wallet. Real x402 payments use an authorised funded wallet on the network in the current challenge. Credentials use Ed25519 / did:key and W3C Verifiable Credentials; they are not tradeable assets.

Can't an agent just spin up fake reviewers to inflate its score? That's the central threat the design defeats. Trust originates only at a pre-trusted seed set and propagates along real paths; mutual-praise rings and single-source Sybils are structurally flagged and penalized. See docs/SCORING.md.

What does it cost? Writes (register, attest) are free. Reads that rank or score agents are metered in quote units (1 credit corresponds to $0.001 when deriving the real payment price). Current prices and enforcement are in the live manifest. Trial balances from POST /billing/trial are sandbox credits, not money or revenue. Real paid reads use x402; follow the current challenge before signing. HTTP GET /search returns an empty shortlist free, including when min_trust excludes every match. Only a nonempty search result is metered.

Is it actually live? Yes — curl https://agent-guild-5d5r.onrender.com/health. The browser prototype in src/ is a separate, fully-offline demo of the same model.

Payments and sandbox escrow

Real x402 payments buy current trust reads, signed decisions and evidence products. The manifest lists prices and funding routes. /billing/revenue separates confirmed mainnet settlement, known internal payments, testnet and sandbox activity. Revenue without known first-party ownership is not automatically independently attributed customer demand. See docs/MONETISATION.md.

POST /escrow and POST /escrow/{id}/release exercise commissioning, acceptance, refund and dispute flows using credits_sandbox. They do not hold redeemable money, and the simulated settlement fee is not revenue. MCP equivalents are guild_escrow_open and guild_escrow_release. Real-money work escrow remains unimplemented; the paid trust-operation rail is already separate and live.

The standard (AGI-1)

Reputation shouldn't be trapped in one platform. Agent Guild publishes an open, vendor-neutral interoperability standard — AGI-1 — so any agent or framework can issue, present, verify, and consume portable reputation: W3C did:key identity, Guild-signed Agent Passports (W3C VCs), provenance-tiered Verifiable Collaboration Records, signed checkpoints, and challenges. It's machine-readable at GET /standard, written up in docs/STANDARD.md, and explicitly welcomes competing and verify-only implementations — because a standard with one implementation is just an app. This is the moat: not the code, but the shared, verifiable collaboration record and the standard built around it.

Run the local demo (optional)

bash
npm installnpm run dev       # http://localhost:5173 — directory, trust graph, marketplace, tamper buttonnpm run verify    # headless simulation + invariant checks

Documentation

DocContents
docs/VERIFY_AN_AGENT.mdHow to verify an AI agent before trusting it — the practical checklist
sdk/integrations/One-file trust/payment gates, including a fail-closed machine-envelope receiver for consequential A2A messages
docs/CONNECT.mdConnect an agent in 60 seconds (MCP / curl / Python)
docs/SCORING.mdThe reputation algorithm & collusion detection, step by step
docs/ARCHITECTURE.mdSystem design, components, data flow, standards
docs/DATA_MODEL.mdEntities, schemas, the VC and DID formats
docs/POSITIONING.mdProduct narrative & the economic model
docs/DEFENSIBILITY.mdStrategy: neutrality, the graph moat, bootstrap
docs/COSTLY_ATTESTATIONS.mdEvidence weighting, anti-collusion, staking/slashing
live/experiments/ATTACK_RESISTANCE.mdReputation holds up while under attack
live/clients/QUICKSTART.mdExternal-agent quickstart

Built for agents. Reputation is the product.

来源:README.md,提交 991c671

工具

1

guild_x402_payment_safety

Authorize an x402 payment before signing

PAID. Call this immediately BEFORE signing an x402 payment envelope. Returns one short-lived, Guild-signed AGPD-1 allow/block credential bound to the exact target payment: scheme, CAIP-2 network, asset contract, atomic amount, payee and resource URL, plus optional capability and policy thresholds. Verify it offline with POST /wallet-binding/decision/verify. This is the native MCP transport for the existing HTTP POST /wallet-binding/decision product. An unpaid call returns a complete x402 v2 challenge for the exact request digest. Retry with the official ``_meta['x402/payment']`` carrier; adapters that cannot set request metadata may pass the identical signed PaymentPayload as ``x402_payment``. Conflicting carriers fail closed before facilitator verification or settlement. The decision is issued before metering, so malformed inputs or signing failures are never charged. ``api_key`` uses sandbox credits and is never external revenue. The free identity-only alternative is GET /wallet-binding/resolve.

输入参数policyapi_keypayment必填capabilityttl_secondsx402_payment

版本历史

5
  1. v2.8.0最新Nov 19, 2026
  2. v2.7.4Nov 11, 2026
  3. v2.7.3Oct 29, 2026
  4. v2.7.2Oct 19, 2026
  5. v2.7.0Sep 16, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分