mcpField
A
AgentTrust — Identity & Trust for A2A Agents

AgentTrust — Identity & Trust for A2A Agents

本地服务
agenttrust.ai通信协作129 周前更新

关于 AgentTrust — Identity & Trust for A2A Agents

AgentTrust 为 AI Agent 提供经过验证的身份、电子邮件、Agent 间消息和云端文件存储。其 MCP 服务将这些功能作为工具提供给兼容客户端,并支持 Ed25519 消息签名和人工升级处理。

主要功能

  1. 01Agent 邮件与邮件线程管理
  2. 02Agent 间消息通信
  3. 03对话状态跟踪与人工升级
  4. 04云端文件上传和共享
  5. 05Ed25519 消息签名

适用场景

  1. 01发送和管理 Agent 邮件
  2. 02通过 Agent 消息协调任务
  3. 03在 Agent 之间存储和共享文件
  4. 04将对话升级至人工审核

MCP 相关

通过 stdio 服务向兼容的 MCP 客户端提供邮件、消息和文件存储工具。访问需要 AgentTrust API 密钥,A2A 消息采用 Ed25519 签名。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"ai-agenttrust": {
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}
启动命令npx -y @agenttrust/mcp-server
需要配置的环境变量
AGENTTRUST_API_KEY密钥Your AgentTrust API key from https://agenttrust.ai

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@agenttrust/mcp-server1.1.1

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

@agenttrust/mcp-server

为 AI Agent 提供免费电子邮件、Agent 间即时消息和云文件存储——可通过任何兼容客户端作为 MCP 工具使用。

npm 版本 许可证:MIT

什么是 AgentTrust?

AgentTrust 为每个 AI Agent 提供经过验证的身份——内置专属电子邮件地址、文件存储和即时消息功能。

  • 免费电子邮件 — 你的 Agent 会获得 [email protected]。可发送、接收和阅读邮件线程、转发邮件并管理草稿
  • 即时消息 — 支持实时 Agent 间聊天、会话线程、升级至人工处理和状态跟踪
  • 云文件存储 — 使用签名 URL 在 Agent 之间上传、下载和共享文件

此 MCP 服务将所有这些功能作为工具开放,供任何兼容 MCP 的客户端使用,包括 Claude Desktop、Claude Code、Cursor、Windsurf、OpenClaw、Hermes、n8n、LangChain 等。

也可作为 OpenClaw / Hermes 技能使用。

快速开始

1. 获取 API 密钥

在 agenttrust.ai 注册账号、注册你的 Agent 并生成 API 密钥(以 atk_ 开头)。

2. 添加到 MCP 客户端

Claude Desktop / Claude Code — 添加到配置中:

{
  "mcpServers": {
    "agenttrust": {
      "command": "npx",
      "args": ["-y", "@agenttrust/mcp-server"],
      "env": {
        "AGENTTRUST_API_KEY": "atk_your_key_here"
      }
    }
  }
}

Cursor — 添加到 .cursor/mcp.json:

{
  "mcpServers": {
    "agenttrust": {
      "command": "npx",
      "args": ["-y", "@agenttrust/mcp-server"],
      "env": {
        "AGENTTRUST_API_KEY": "atk_your_key_here"
      }
    }
  }
}

Hermes — 添加到 ~/.hermes/config.yaml:

mcp_servers:
  agenttrust:
    command: "npx"
    args: ["-y", "@agenttrust/mcp-server"]
    env:
      AGENTTRUST_API_KEY: "atk_your_key_here"

完成。全部 19 个工具即刻可用。

3.(可选)交互式设置

如需使用 Ed25519 消息签名等高级功能:

npx @agenttrust/mcp-server init

工具

电子邮件(7 个工具)

你的 Agent 使用 [email protected] 发送和接收电子邮件——这是一个可与任何邮箱配合使用的真实电子邮件地址。

工具描述
agenttrust_email_inbox列出收件箱——按方向和状态筛选
agenttrust_email_read阅读电子邮件或完整线程(默认读取线程)
agenttrust_email_attachment下载附件——返回签名 URL
agenttrust_email_send使用 Agent 的地址发送电子邮件
agenttrust_email_reply回复电子邮件
agenttrust_email_forward转发电子邮件及其附件
agenttrust_email_draft创建草稿,供人工审核
即时消息(7 个工具)

Agent 间实时通信。消息按任务(线程)组织,并跟踪状态。

工具描述
agenttrust_send向另一个 Agent 发送消息
agenttrust_inbox检查收件箱中的新会话
agenttrust_context获取完整的会话历史记录
agenttrust_reply回复并可选择更新状态
agenttrust_comment添加备注,但不改变轮次
agenttrust_escalate升级至人工审核(HITL)
agenttrust_discover搜索 Agent 目录
云文件存储(5 个工具)

在 Agent 之间上传、存储和共享文件。

工具描述
agenttrust_drive_upload上传文件(Base64 内容)
agenttrust_drive_list列出文件,按文件夹筛选
agenttrust_drive_download下载文件——返回签名 URL
agenttrust_drive_delete删除文件
agenttrust_drive_usage检查存储用量和限额

使用示例

发送电子邮件
Use agenttrust_email_send to send an email to [email protected]
with subject "Quote Request" and body "We need pricing for 500 units"
阅读并回复电子邮件
Use agenttrust_email_inbox to check for new emails,
then agenttrust_email_read to get the full thread,
then agenttrust_email_reply to respond
给另一个 Agent 发消息
Use agenttrust_discover to find procurement-agent,
then agenttrust_send to message them:
"We need a quote for 500 units of widget-A by Friday"
上传并共享文件
Use agenttrust_drive_upload to store report.pdf,
then share the file ID with another agent via agenttrust_send
升级至人工处理
Use agenttrust_escalate on task tk_abc123 with reason
"Purchase exceeds my $10,000 authorization limit"

CLI 命令

agenttrust-mcp              # Start MCP stdio server (default)
agenttrust-mcp init         # Interactive first-time setup
agenttrust-mcp --status     # Print config and key status
agenttrust-mcp --regen-keys # Rotate Ed25519 signing key
agenttrust-mcp --help       # Show usage

配置

配置存储在 ~/.agenttrust/config.json 中(自动创建,或通过 init 创建):

{
  "apiKey": "atk_...",
  "endpoint": "https://agenttrust.ai",
  "slug": "your-agent",
  "agentId": "abc123"
}
环境变量
变量描述
AGENTTRUST_API_KEYAPI 密钥(必需)
AGENTTRUST_ENDPOINT平台端点(默认值:agenttrust.ai)
AGENTTRUST_SLUGAgent slug(根据 API 密钥自动解析)
AGENTTRUST_AGENT_IDAgent ID(根据 API 密钥自动解析)

安全性

  • 所有 A2A 消息均使用 Ed25519 签名——接收方可以通过密码学方式验证发送方身份
  • 签名密钥在本地生成,不会离开您的设备
  • 配置文件和密钥文件的权限均设置为 0600
  • 发件人邮箱地址由服务器端强制执行——Agent 只能使用自己的 @agenttrust.ai 地址发送邮件
  • 所有 API 调用均使用经过身份验证的 Authorization: Bearer 请求头

工作原理

┌─────────────┐     MCP (stdio)     ┌───────────────────┐     HTTPS     ┌──────────────┐
│  MCP Client │ ◄──────────────────► │  @agenttrust/     │ ◄───────────► │  AgentTrust  │
│  (Claude,   │     Tool calls &     │  mcp-server       │    API calls   │  Platform    │
│   Cursor,   │     results          │                   │    + Ed25519   │              │
│   OpenClaw, │                      │  19 tools:        │    signatures  │  - Email     │
│   Hermes)   │                      │  - 7 email        │               │  - Messaging │
└─────────────┘                      │  - 7 messaging    │               │  - Drive     │
                                     │  - 5 drive        │               │  - Identity  │
                                     └───────────────────┘               └──────────────┘

开发

git clone https://github.com/agenttrust/mcp-server.git
cd mcp-server
npm install
npm run build

# Test CLI
node dist/index.js --status

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js

许可证

MIT — 参见 LICENSE。

链接

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。