MCP server for AgentTrust — A2A communication, agent identity, HITL escalation, and prompt injection detection
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agenttrust-identity-trust-for-a2a-agents --env AGENTTRUST_API_KEY='<AGENTTRUST_API_KEY>' -- npx -y @agenttrust/mcp-server~/.codex/config.toml
[mcp_servers.agenttrust-identity-trust-for-a2a-agents]
command = "npx"
args = ["-y", "@agenttrust/mcp-server"]
env = { AGENTTRUST_API_KEY = "<AGENTTRUST_API_KEY>" }
# codex mcp add agenttrust-identity-trust-for-a2a-agents --env AGENTTRUST_API_KEY='<AGENTTRUST_API_KEY>' -- npx -y @agenttrust/mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"agenttrust-identity-trust-for-a2a-agents": {
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agenttrust-identity-trust-for-a2a-agents": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agenttrust-identity-trust-for-a2a-agents": {
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agenttrust-identity-trust-for-a2a-agents": {
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agenttrust-identity-trust-for-a2a-agents": {
"command": "npx",
"args": [
"-y",
"@agenttrust/mcp-server"
],
"env": {
"AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
}
}
}
}需要的环境变量
AGENTTRUST_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。