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 分