
AgentAnycast
io.github.AgentAnycast由 GitHub 账号 AgentAnycast 发布v0.3.2更新于 Oct 24, 2026
P2P runtime for A2A protocol. Encrypted agent communication with zero-config NAT traversal.
概览
点对点智能体网络守护进程,把 A2A 任务发送、智能体发现和节点查看能力以 MCP 工具形式提供给 AI 助手。
- 可以做什么
- 查看本地节点信息、智能体卡片和已连接的对等节点
- 按技能发现智能体,获取本地或远程智能体卡片
- 按节点 ID 或按技能(anycast)发送任务并查询任务状态
- 以 stdio 或 Streamable HTTP 方式作为 MCP 服务器运行,并可将其他 MCP 服务器命令包装成 P2P 可访问的智能体
- 适用场景
- 当你希望助手通过加密的点对点网络把工作交给其他智能体时使用:同一局域网内零配置即可,跨网络则需自建中继。
- 运行要求
- 需在本地运行守护进程二进制(agentanycastd)并以 MCP 模式启动,或使用 npm 包;需要身份密钥文件(默认位于用户主目录下)和本地数据存储;跨网络使用需中继或引导节点;可选的 Python、TypeScript SDK 通过 gRPC 与其通信。
安装
在 SourceWeft 中
- 打开 控制台中的 AgentAnycast,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AgentAnycast Node
The core daemon powering AgentAnycast's P2P agent network.
AgentAnycast Node (agentanycastd) is a sidecar daemon that runs on each machine, providing P2P networking, end-to-end encryption, and A2A protocol routing. Language SDKs (Python, TypeScript) communicate with it over gRPC.
Fully decentralized. On a local network, agents discover each other via mDNS with zero configuration. For cross-network communication, deploy your own relay with a single command.
Features
Quick Start
Standalone -- local network (zero configuration)
With Python SDK
MCP mode -- use as an AI tool
Cross-network -- deploy your own relay
Configuration
Priority: CLI flags > environment variables > config file > defaults
CLI Flags
Environment Variables
Config File
Default location: ~/.agentanycast/config.toml
Architecture
Internal Packages
gRPC API
MCP Server
The daemon can run as an MCP (Model Context Protocol) server, exposing P2P capabilities as tools for AI assistants.
Transport modes:
- stdio -- for local AI tool integration (Claude Desktop, Cursor, VS Code, Gemini CLI, JetBrains)
- Streamable HTTP -- for remote clients (ChatGPT)
MCP Remote Proxy
Wrap any MCP Server as a P2P-accessible agent with a single flag:
The proxy auto-generates an Agent Card from the MCP server's tool list, registers skills with the relay, and bridges incoming A2A tasks to MCP tool calls.
HTTP Bridge
Exposes an A2A-compatible HTTP endpoint for P2P ↔ HTTP interop:
GET /.well-known/a2a-agent-card-- Agent Card discoveryPOST /-- JSON-RPC endpoint for task operations- Optional TLS and CORS support
ANP Bridge
Exposes an ANP-compatible HTTP endpoint for Agent Network Protocol interop:
GET /agent/ad.json-- Agent Description (JSON-LD)GET /agent/interface.json-- OpenRPC specificationPOST /agent/rpc-- JSON-RPC 2.0 endpoint
Observability
Prometheus Metrics
Available on a configurable HTTP port (default :9090):
OpenTelemetry
Distributed tracing with W3C Trace Context propagation. Spans cover task lifecycle, transport hops, and envelope encryption.
Building
Disclaimer
This software is provided "as is", without warranty of any kind. This software uses cryptography and may be subject to export controls in certain jurisdictions.
License
FSL-1.1-ALv2 -- Functional Source License, Version 1.1, with Apache License, Version 2.0 as the future license. Each release converts to Apache 2.0 two years after its publication date.
来源:README.md,提交 a09660a
工具
0版本历史
1- v0.3.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。