Assay

io.github.robertoyanguas-ops由 GitHub 账号 robertoyanguas-ops 发布v0.4.2更新于 Oct 26, 2026

A2A & MCP Pre-Flight Security: SHA-256 tool schema rug-pull detection and liveness grades.

发布方自己的服务:X402-Broker Global A2A, MCP & x402 Super-Marketplace

已验证Streamable HTTP可网页运行安全与监控AI 与机器学习

概览

AI 生成的概览

在使用前检查远程 MCP、A2A 与 x402 端点:存活状态、SHA-256 工具架构固定与提示注入扫描。

可以做什么
  • 对远程 MCP、A2A 或 x402 端点做预检,给出裁决,并在 tools/list 哈希不匹配时拒绝
  • 探测并登记公开 HTTPS 端点,通过 HTTP、agent-card 与 JSON-RPC 检查生成 Observatory 档案
  • 在付款后审计 x402 或 A2A 服务商,取得 HMAC-SHA256 签名的交付或 SLA 违约凭证
  • 读取历史一致性观测记录,并在 Assay 账本中管理固定的 SHA-256 tools/list 策略哈希
适用场景
当助手即将调用或付费使用陌生的远程代理或 MCP 端点时适用,可用于存活检查、防止工具列表被偷换,以及留存付费服务商是否交付的签名记录。
运行要求
远程 streamable HTTP 端点;未声明认证、环境变量或请求头。目标必须是公开 HTTPS 源,私有 IP 会被拒绝。
安装前请注意
它会向你指定的第三方端点发送请求,并把观测记录写入公开账本。与付款相关的工具需要传入绑定 Base 或 Solana 付款的交易哈希,只应提供你愿意公开的哈希;裁决仅供参考,并不保证端点安全。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "assay": {
      "type": "http",
      "url": "https://assay-207908449630.us-central1.run.app/mcp"
    }
  }
}

工具

4

assay_preflight

Pre-Flight MCP & A2A Security Gate

Gate a remote MCP, A2A, or x402 endpoint before calling or paying it by probing live JSON-RPC reachability, hashing tools/list (SHA-256), and scanning for prompt-injection poisoning. When expected_tools_hash is provided, any mismatch against the live tools/list digest forces verdict='deny' to block silent schema rug-pulls; when omitted, verdict reflects liveness and injection safety alone. Read-only gate; first 5 calls/IP are free and quota-exceeded calls return a 402 top-up prompt. Use before tool execution or payment; to register or refresh public leaderboard telemetry use assay_probe; to read or pin stored policy hashes use assay_get_ledger_policy; after payment use assay_verify_delivery. Example: target='https://agentdiet-72343955726.us-central1.run.app/mcp'.

输入参数target必填expected_tools_hash

assay_probe

Register & Refresh Endpoint Conformance Telemetry

Register a new remote MCP, A2A, or x402 endpoint or refresh its public Assay Observatory dossier by running a live HTTP, agent-card, and JSON-RPC tools/list inspection without policy gating. Target must be a public HTTPS origin (private IPs are rejected with a 400 error); each call appends a timestamped observation and increments rug_pulls if tools_hash drifted since the prior stored observation. Writes to the public ledger; first 5 calls/IP are free and retries are idempotent on steady schemas. Use to onboard or re-index a server; for pre-call allow/deny gating use assay_preflight; for historical observations or hash pinning use assay_get_ledger_policy; for post-payment disputes use assay_verify_delivery. Example: target='https://agentdiet-72343955726.us-central1.run.app/mcp'.

输入参数target必填

assay_verify_delivery

Verify Post-Payment x402 Delivery & Mint SLA Receipt

Audit a paid x402 or A2A provider after payment to confirm delivery or prove an SLA breach with an HMAC-SHA256 signed receipt. Passing status_code >= 500 forces verdict='sla_breach_confirmed' even if the live re-probe succeeds, while passing tx_hash cryptographically binds your Base or Solana payment signature into the receipt (omitting tx_hash still verifies liveness and issues a probe-bound receipt). Non-destructive; first 5 calls/IP are free and failed target connections do not throw tool errors. Use only after paying a provider; before payment use assay_preflight; for public indexing use assay_probe; for policy history use assay_get_ledger_policy. Example: target='https://agentdiet-72343955726.us-central1.run.app/mcp'.

输入参数target必填tx_hashstatus_code

assay_get_ledger_policy

Query Historical Ledger & Pin Expected Schema Hashes

Retrieve historical conformance observations and manage pinned SHA-256 tools/list policy hashes in the Assay ledger for a target endpoint. When expected_tools_hash is provided, it pins that 64-hex digest as the target's baseline policy and compares it against the latest stored observation; when omitted, it returns the stored dossier and last 20 drift observations without network probing unless the target is unindexed. Idempotent; first 5 calls/IP are free. Use to audit historical drift or pin mcp-lock.json hashes; for live pre-execution gating use assay_preflight; for live re-indexing use assay_probe; for post-payment SLA receipts use assay_verify_delivery. Example: target='https://agentdiet-72343955726.us-central1.run.app/mcp'.

输入参数target必填expected_tools_hash

版本历史

1
  1. v0.4.2最新Oct 16, 2026

评分

已满足适用检查项的 83%

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

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

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 X402broker 集成