AgentTrust — Pre-Invocation AI Agent Trust & Reliability Checks

io.github.agenttrust-ai由 GitHub 账号 agenttrust-ai 发布v1.0.4更新于 Oct 24, 2026

Check an AI agent endpoint before you call it: read-only, no API key, returns a trustDecision.

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

概览

AI 生成的概览

远程 MCP 服务,让助手在调用某个 AI 代理或 MCP 端点之前,查询其已观测到的可靠性并获得信任判定。

可以做什么
  • 按精确 URL 检查未知的 AI 代理或 MCP 服务器端点,返回 AgentTrust 观测到的状态、端点归属验证、可靠性评分,以及带置信度和理由的机器可读信任判定。
  • 把未被监测的端点当作明确的“未知”结果而非错误,并结合自身规则权衡返回的证据。
适用场景
当助手即将连接或调用一个此前未接触过的 AI 代理或 MCP 服务器,希望先获得一个只读、匿名的可靠性信号时适用。
运行要求
远程 Streamable HTTP 端点,无需本地运行时;公开的只读检查不需要账号或 API 密钥,按 URL 添加连接器即可。代理注册与管理工具需要账号,并通过 Authorization 请求头以 Bearer 方式提供 API 密钥。
安装前请注意
判定基于 AgentTrust 自身的观测,并非安全认证或保证;未知端点应视为不可信,而不是获得批准。检查为只读,且不会联系被查询的端点。管理工具需要 API 密钥,注册代理需要账号。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AgentTrust — Pre-Invocation AI Agent Trust & Reliability Checks,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "agenttrust-pre-invocation-ai-agent-trust": {
      "type": "http",
      "url": "https://getagenttrust.com/api/mcp/public"
    }
  }
}

README

AgentTrust — Pre-invocation Trust Check for AI Agent Endpoints

Check an AI agent or MCP server endpoint before you call it. Given the exact endpoint URL, AgentTrust returns the reliability evidence it has already collected, endpoint-ownership verification, and a machine-readable trustDecision — without contacting the endpoint.

No AgentTrust account or API key required · Read-only · MCP and TypeScript SDK

AgentTrust is trust infrastructure for AI agents. It provides reliability monitoring, endpoint verification, and pre-invocation trust checks for MCP and A2A agents. An agent registers an identity, gets health-checked once a day, optionally proves ownership of its endpoint, and accumulates a deterministic reliability score from that observed history. Any external AI agent or system can look up another agent by its invocation URL and get back a machine-readable trustDecision — a signal derived from AgentTrust's own observed and verified data, for the caller to weigh, never a certification or guarantee of safety — before deciding whether to interact with it.

Official MCP Registry identity: io.github.agenttrust-ai/agenttrust.

Quick start — no account needed

Every example below checks AgentTrust's own monitored test agent, https://agenttrust-umber.vercel.app/api/test-agent; swap in the URL you're about to call.

MCP

Add the public connector https://getagenttrust.com/api/mcp/public (Streamable HTTP, no authentication; two read-only tools, check_agent_trust and assess_agent). In Claude Code:

bash
claude mcp add --transport http agenttrust https://getagenttrust.com/api/mcp/public

Claude Desktop, Cursor and a plain curl call: Connect an MCP client.

TypeScript SDK

bash
npm install @getagenttrust/sdk
ts
import { checkAgentTrust } from "@getagenttrust/sdk";
// AgentTrust's own test agent: a real, monitored endpoint you can check.const result = await checkAgentTrust("https://agenttrust-umber.vercel.app/api/test-agent");
if (result.matched) {  console.log(result.status, result.reliabilityScore, result.trustDecision);  // e.g. "healthy" 100 { recommended: true, confidence: "high", reasons: [] }} else {  // AgentTrust has no data for this endpoint (yet). An unmatched result never  // carries a score; result.observation may say it was queued for a lookup.  console.log("Unknown endpoint", result.observation?.status);}

Policies (assertTrusted), errors and options: SDK README · npm. New to AgentTrust? Start with First 5 minutes.

In the browser

Check the test agent on getagenttrust.com.

First 5 minutes

No account or API key. Node.js 18 or later.

1. Install. assessAgent needs SDK 0.2.0 or later.

bash
npm install @getagenttrust/sdk@^0.2.0

2. Check an endpoint. This checks AgentTrust's own monitored test agent, so it returns a real result. The check is read-only, and AgentTrust never contacts the endpoint you ask about.

ts
import { assessAgent } from "@getagenttrust/sdk";
// AgentTrust's own monitored test agent. Swap in the URL your agent is about to call.const assessment = await assessAgent("https://agenttrust-umber.vercel.app/api/test-agent");
console.log(assessment.decision, assessment.confidence, assessment.reasonCodes);// e.g. allow_with_caution high ["OWNERSHIP_VERIFIED", "REACHABLE_AT_LAST_CHECK", …]
if (assessment.decision === "allow_with_caution") {  // Reachable and not failing in AgentTrust's observations. Not proof that the  // agent behaves safely: keep your own safeguards when you call it.} else {  // "avoid", or "insufficient_evidence" — also the answer for a URL AgentTrust  // doesn't monitor (matched: false, reasonCodes includes "UNKNOWN_ENDPOINT").  console.log("Not calling it:", assessment.limitations);}

3. Read the answer. confidence, reasonCodes and limitations say why.

decisionWhat it meansWhat to do
allow_with_cautionAgentTrust's observations show the endpoint reachable and not failing: a current historical reliability score, or at least two successful observations at least 10 minutes apart.Call it, with your own safeguards. It isn't proof that the agent behaves safely.
avoidAgentTrust's observations show it failing — for example two or more consecutive failures, or a current reliability score below 50.Don't call it.
insufficient_evidenceNot enough evidence either way: an endpoint AgentTrust doesn't monitor, too few or too old observations, or a single failure that may be temporary.Don't treat it as approval — handle it as an unknown endpoint.

Which call should I use?

CallUse it whenYou get
assessAgent(url)Your agent needs one decision to act on before it calls an endpoint.decision, confidence, reasonCodes and limitations, with the evidence behind them.
checkAgentTrust(url)You want the evidence itself — status, reliabilityScore, verified and trustDecision — to apply your own rules.{ matched: true, … }, or { matched: false } for an endpoint AgentTrust doesn't monitor.
assertTrusted(url, policy)You want a gate: go ahead only if the endpoint meets your policy.The checkAgentTrust result, or a thrown NotTrustedError.

All three are anonymous and read-only, and never contact the endpoint (over MCP: assess_agent and check_agent_trust). They report what AgentTrust has observed; they don't certify an endpoint's security.

Unknown endpoints are an answer, not an error

AgentTrust only has evidence for endpoints it monitors, so your first check of a real URL may come back unknown. That is an answer, not an API failure — the call succeeds:

  • assessAgent returns matched: false, decision: "insufficient_evidence", confidence: "none", and reasonCodes including "UNKNOWN_ENDPOINT".
  • checkAgentTrust returns { matched: false }, sometimes with an observation status when AgentTrust has queued the URL for a lookup in the official MCP Registry.
  • assertTrusted throws NotTrustedError ("AgentTrust has no data for this endpoint") unless you pass allowUnknown: true.

Real failures — RATE_LIMITED, TIMEOUT, NETWORK_ERROR and the rest — throw an AgentTrustError instead.

Handle an unknown endpoint as not trusted: don't map insufficient_evidence to "allow", keep allowUnknown: false (the default) unless you have chosen otherwise on purpose, and ask a human or run your own checks before calling an endpoint nobody has observed.

Next steps

  • Gate a real connection: examples/check-before-connect.ts puts assertTrusted in front of an MCP client connection.
  • Tune the gate: minConfidence, requireVerified and minReliabilityScore in the assertTrusted policy — see the SDK README.
  • Running an agent yourself? Register it so other agents can check it — that needs an account and an API key: Getting started.

Public checks vs. agent management

Public trust checksAgent management
ForChecking any endpoint before you call itRegistering and monitoring your own agents; full agent records
Account / API keyNot neededAccount and API key (Authorization: Bearer <API_KEY>)
InterfacesMCP check_agent_trust and assess_agent at /api/mcp/public; @getagenttrust/sdk (checkAgentTrust, assertTrusted, assessAgent)REST /api/v1/*; MCP server /api/mcp (list_agents, get_agent, get_agent_health, send_heartbeat)

To register an agent: sign up, create a key under Dashboard → API keys, then follow Getting started (REST).

Documentation

You don't need this repository to use AgentTrust:

  • /docs — full REST, MCP and SDK reference.
  • /llms.txt — the same reference as one plain-text file, for an LLM's context.

Developing this project

This is a Next.js (App Router) + Drizzle + Supabase app, deployed on Vercel.

bash
npm installnpm run dev

Open http://localhost:3000. You'll need a .env.local — see .env.example for the required variables (Supabase credentials, database connection strings, and the server-only secrets described inline).

Useful scripts:

bash
npm run test        # vitest — full suite runs against an embedded pglite DB, no live database needednpm run typecheck    # tsc --noEmitnpm run lint         # eslintnpm run db:generate   # generate a new Drizzle migration from schema changes (offline)npm run db:migrate    # apply pending migrations to the database in DIRECT_URL

来源:README.md,提交 fcc14d4

工具

1

check_agent_trust

Check Agent Trust

Pre-invocation trust check for an unknown AI agent or MCP server endpoint. Pass the exact URL you are about to call as endpointUrl to get what AgentTrust has observed about it: status, endpoint-ownership verification, reliability score (when available), and a trustDecision (recommended, confidence, reasons). Read-only, no account or API key. It never contacts endpointUrl; it only reads AgentTrust's stored monitoring history. A URL AgentTrust has not observed returns { matched: false }.

输入参数endpointUrl必填

版本历史

5
  1. v1.0.4最新Oct 2, 2026
  2. v1.0.3Sep 29, 2026
  3. v1.0.2Sep 20, 2026
  4. v1.0.1Sep 19, 2026
  5. v1.0.0Sep 19, 2026

评分

已满足适用检查项的 100%

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

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