Trustscoreagent

io.github.trustscoreagent由 GitHub 账号 trustscoreagent 发布v0.2.7更新于 Nov 1, 2026

Check the reputation of AI microservices and public APIs from an open trust registry.

概览

AI 生成的概览

让助手在开放的信任注册表中查询、提交和浏览 AI 微服务与公共 API 的信誉评分。

可以做什么
  • 按域名、URL 或 DID 查询服务信任分,并可核对 x402 端点上的收款地址是否与注册表记录一致
  • 调用服务后提交评分,附带状态码、延迟、schema 是否有效等指标
  • 列出并发现已评分服务,支持排序、筛选和分页
  • 查看审计记录:Merkle 根、包含证明与一致性证明,以及 OpenTimestamps 锚定
  • 查询自身代理的信任分和注册表使用量统计
适用场景
适合助手在调用第三方 API 或付费 x402 微服务前需要信誉参考,或在调用后记录结果供其他代理参考的场景。
运行要求
以 stdio 方式在本机运行,通常通过 npx 使用 npm 包。无需账号或 API 密钥。需要能访问 TrustScore 注册表 API,可用 TRUSTSCORE_API_URL 覆盖基础地址。除非设置 TRUSTSCORE_AGENT_DID,否则会在用户主目录生成 Ed25519 密钥。
安装前请注意
评分会发送到第三方注册表;未签名评分按半权重计入,而设置 TRUSTSCORE_AGENT_DID 会覆盖本地生成的密钥,使评分以未签名方式发送。项目处于早期阶段,数据集较小且由单一运营方维护,评分不构成去中心化保证。高级接口目前免费,之后计划改为 x402 微支付。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

TrustScoreAgent

Free, open reputation registry for AI microservices. Agents check trust scores before calling any service.

Status: Phase 1 (early). The API, scoring (Beta + EigenTrust), receipt verification, Merkle audit trail and MCP server are implemented and tested, but the public dataset is still small (seeded by a transparent probe of public APIs and x402 endpoints), and parts of the design (x402 payments, mandatory agent signatures) are Phase 2. We publish early and openly on purpose: the trust layer for the agentic economy should exist, be auditable, and be adoptable before it becomes critical. See the trust model in SECURITY.md.

What is this?

AI agents increasingly rely on paid microservices. TrustScoreAgent lets any agent:

  • Check the reputation of a service before calling it
  • Rate a service after calling it
  • Discover which services are reliable

No account needed. No API key. Identify services by URL, domain, or DID.

Quick start

bash
# Check a service's trust score (any format works)curl "https://api.trustscoreagent.com/v1/score?service=api.example.com"curl "https://api.trustscoreagent.com/v1/score?service=https://api.example.com/v1/translate"
# Unknown services return a neutral score (0.5), no errorscurl "https://api.trustscoreagent.com/v1/score?service=never-seen-before.com"
# Rate a service after calling itcurl -X POST "https://api.trustscoreagent.com/v1/rate" \  -H "Content-Type: application/json" \  -H "X-Agent-DID: my-agent.example.com" \  -d '{    "service": "api.example.com",    "metrics": {      "status_code": 200,      "latency_ms": 143,      "schema_valid": true    }  }'
# List top-rated servicescurl "https://api.trustscoreagent.com/v1/services?sort_by=score&min_ratings=10"

Local development

bash
# Start PostgreSQL and Redisdocker compose up -d
# Run the APIdotnet run --project src/TrustScore.Api
# Run testsdotnet test
# Swagger UIopen http://localhost:5000/swagger

Architecture

  • C# / .NET 8: ASP.NET Core Minimal API
  • PostgreSQL: Ratings and service scores
  • Redis: Score caching, rate limiting, nonce tracking
  • Beta Reputation System: Bayesian scoring (per-dimension: availability, latency, conformity)
  • EigenTrust: Anti-Sybil agent trust scoring
  • Merkle Tree: Audit log with inclusion and consistency proofs (RFC 6962 tree; each leaf commits to what the rating reported)
  • Ed25519 Receipt Verification: Cryptographic proof of service interaction
  • MCP Server: Integration with Claude, Cursor, and MCP-compatible agents

API Reference

Core (free, always)

EndpointDescription
GET /v1/score?service=Trust score for a service (0.5 neutral for unknown)
POST /v1/rateSubmit a rating after calling a service
GET /v1/servicesList rated services (pagination, sorting, filtering)
GET /v1/agent/trust?did=Check your agent's trust score
GET /v1/audit/rootLatest Merkle tree root
GET /v1/audit/proof/{id}Inclusion proof for a rating, with the fields it commits to
GET /v1/audit/anchorsHistory of anchored roots
GET /v1/audit/consistency?from=&to=Proof that a later root extends an earlier one
GET /v1/audit/anchors/{id}/otsOpenTimestamps proof that the root is committed in Bitcoin
GET /v1/stats?days=How much the registry is used (aggregate counts)

Premium (free for now, x402 micropayments later)

EndpointDescription
GET /v1/score/history?service=Daily aggregated score history
GET /v1/score/detailed?service=Latency percentiles, quality distribution
POST /v1/scores/bulkUp to 100 scores in one request

Service identification

All endpoints accept services in any format (they are normalized internally):

  • api.example.com (domain)
  • https://api.example.com/v1/translate (URL)
  • did:web:api.example.com (DID)

All three resolve to the same service.

MCP Server

TrustScoreAgent is available as an MCP server for Claude, Cursor, and other agents.

bash
# Add to Claude Codeclaude mcp add trustscoreagent -- npx -y @trustscoreagent/mcp-server

Before paying an x402 endpoint, check_reputation with the pay_to of the 402 you received says whether that payee is the one the registry has seen there. See docs/mcp.md for full setup instructions. Also listed on the official MCP Registry (io.github.trustscoreagent/mcp-server), npm, Smithery and Glama; each GitHub release attaches an .mcpb bundle for Claude Desktop.

x402 plugin

@trustscoreagent/x402 plugs into the x402 client SDK (@x402/core, used by @x402/fetch and @x402/axios). Before each payment it checks the payee against the one the registry saw on that endpoint and stops the payment on a mismatch, before anything is signed.

ts
const guard = trustScoreGuard();guard.attach(client, http);const fetchWithPayment = wrapFetchWithPayment(guard.wrapFetch(fetch), http);

The score alone never blocks unless you set minScore, an unreachable registry never blocks unless you set failClosed, and rating after payment is opt-in (rate: true). It runs in your agent: requests never go through TrustScoreAgent. See x402-plugin/README.md.

Framework integrations

Drop-in tools for agent frameworks (no account or API key needed):

  • LangChain: from trustscoreagent_langchain import get_trustscoreagent_tools
  • CrewAI: from trustscoreagent_crewai import get_trustscoreagent_tools

Each exposes trustscore_check_reputation, trustscore_submit_rating, and trustscore_list_services. See integrations/.

Documentation

Contributing

Contributions are welcome: see CONTRIBUTING.md and our Code of Conduct. To report a vulnerability, follow SECURITY.md.

Project status & trust model

TrustScoreAgent is Phase 1 (early). What that means in practice:

  • Baseline data is real and auditable. Initial scores come from a transparent operated probe (did:web:trustscoreagent.com:probe) that measures the availability, latency and conformity of a curated list of public, free APIs, and of the x402 endpoints agents pay the most (picked daily from the public Bazaar catalog and probed without paying, see docs/x402-probe.md): real, Merkle-audited measurements, not fabricated numbers. For those x402 endpoints the score also says which payee address and price they ask for, and when either last changed. Community and receipt-verified ratings accumulate on top. (The earlier fictitious *.example.com seeds have been removed.)
  • Single operator. Neutrality currently rests on open-source scoring code and a verifiable Merkle audit trail, not on decentralization. Federation is a later phase.
  • Agent identity can be proven, but is not yet mandatory. Agents identified by a did:key sign each rating with their Ed25519 key (X-Agent-Signature), which binds the rating to the holder of that key. Unsigned ratings still count at half weight so existing clients keep working, which means a rating is only as attributable as its signature. Verified service receipts remain the strongest signal.

See SECURITY.md for the full trust model and how to report vulnerabilities.

License

Apache-2.0. See LICENSE.

来源:README.md,提交 4397500

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

7
  1. v0.2.7最新Oct 18, 2026
  2. v0.2.6Oct 17, 2026
  3. v0.2.5Oct 9, 2026
  4. v0.2.4Sep 27, 2026
  5. v0.2.3Sep 27, 2026
  6. v0.2.2Sep 26, 2026
  7. v0.1.1Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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