MCPF代理名称服务(ANS)
 ](https://nodejs.org/)   
人工智能代理的人类可读名称 -DNS风格的解析服务,将代理名称映射到DID和功能。
🌟 ANS是什么?
代理名称服务(ANS)为AI代理提供类似DNS的功能:
fraud-detector.risk.bank.example.agent
↓
did:web:bank.example.com:agent:fraud-detector
↓
{capabilities, endpoints, status, credentials}基于Veritrust的生产ANS: https://ans.veritrust.vc
特性
- 🔍 名称解析 -人类可读的名称→ DID+代理卡
- 📋 代理注册表 -代理元数据的持久存储
- ✅ 签名回复 -JWS在所有决议上的签名
- 🔄 版本控制 -同一代理的多个版本
- ⚡ 状态管理 -活动、暂停、已弃用
- 🔐 信任整合 -与MCPF合作做vc
- 🗄️ PostgreSQL后端 -生产就绪数据库
- 🚀 REST API -简单的HTTP/JSON接口
🚀 快速开始
使用Docker(推荐)
# Clone repository
git clone https://github.com/MCPTrustFramework/MCPF-ans.git
cd MCPF-ans
# Start service
docker-compose up -d
# Verify running
curl http://localhost:4001/healthz
# {"ok":true}
# Resolve an agent
curl 'http://localhost:4001/resolve?name=fraud-detector.risk.bank.example.agent'手动安装
# Install dependencies
cd src
npm install
# Set up database
createdb mcpf_ans
psql mcpf_ans r.json());
// Get server by DID
const server = await fetch('http://localhost:4001/mcp/servers/did:web:weather.example.com')
.then(r => r.json());🤝 贡献
看 贡献.md 作为指导方针。
📝 许可证
MIT许可证-请参阅 许可证
📞 联系
- 网站: https://mcpf.dev
- github: https://github.com/MCPTrustFramework/MCPF-ans
- 问题: https://github.com/MCPTrustFramework/MCPF-ans/issues
- 讨论: https://github.com/MCPTrustFramework/MCPF-ans/discussions
🙏 致谢
基于生产实施:
- Veritrust (https://veritrust.vc)-ANS部署现场https://ans.veritrust.vc
🔗 相关项目
- MCPF规范 -SSOT
- MCPF做了vc -DID/VC基础设施
- MCPF注册表 -MCP信托登记处
- MCPF-a2a注册表 -A2A代表团
______________________________________________________________________
版本: 1.0.0-alpha\ 最后更新时间: 2025年12月31日\ 状态: 生产就绪(基于Veritrust部署)
