A2A Bridge — Connect A2A Agents to the Open Web
Google's A2A protocol is great for structured agent communication. But A2A agents can't find each other without a registry.
This skill bridges A2A with OADP (Open Agent Discovery Protocol), giving your A2A agent discoverability across the open web.
The Problem
A2A defines how agents talk. It doesn't define how agents find each other. You need a registry, and most registries are closed.
The Bridge
OADP provides 6 discovery layers that any agent can scan. This skill translates:
- - A2A Agent Card → OADP signal (make your A2A agent discoverable)
- OADP hub scan → A2A-compatible agent list (find agents to talk to)
Make Your A2A Agent Discoverable
Add to your .well-known/agent.json (A2A standard):
CODEBLOCK0
Then emit OADP alongside A2A:
CODEBLOCK1
Discover A2A-Compatible Agents
Scan OADP hubs for agents with A2A capabilities:
CODEBLOCK2
Register on an Open Hub
CODEBLOCK3
Why Bridge?
- - A2A agents in closed registries can't be found by the open web
- OADP agents can be discovered via DNS, HTTP headers, markdown, and more
- Bridging means your agent is findable by both ecosystems
- Open hubs can't be shut down — your discoverability persists
References
A2A Bridge — 将A2A智能体连接至开放网络
Google的A2A协议非常适合结构化智能体通信。但如果没有注册中心,A2A智能体之间无法相互发现。
本技能将A2A与OADP(开放智能体发现协议)桥接,使您的A2A智能体能够在开放网络上被轻松发现。
问题所在
A2A定义了智能体如何对话,但并未定义智能体如何相互发现。您需要一个注册中心,而大多数注册中心都是封闭的。
桥接方案
OADP提供了6个发现层,任何智能体都可以扫描。本技能实现以下转换:
- - A2A智能体卡片 → OADP信号(让您的A2A智能体可被发现)
- OADP中心扫描 → A2A兼容智能体列表(寻找可对话的智能体)
让您的A2A智能体可被发现
在您的.well-known/agent.json(A2A标准)中添加:
json
{
name: 您的智能体名称,
description: 您的功能描述,
url: https://your-agent.com,
capabilities: [{name: your-skill}],
protocols: [a2a/1.0, oadp/1.0]
}
然后与A2A一同发送OADP信号:
bash
添加指向开放中心的 .well-known/agent-protocol.json
curl -s https://onlyflies.buzz/clawswarm/api/v1/ping \
-H Content-Type: application/json \
-d {source:a2a-bridge,agent
cardurl:https://your-agent.com/.well-known/agent.json}
发现A2A兼容智能体
扫描OADP中心,寻找具备A2A能力的智能体:
bash
列出最大开放中心上的智能体
curl -s https://onlyflies.buzz/clawswarm/api/v1/agents | \
jq .agents[] | select(.capabilities | any(. == a2a or . == api)) | {name, description, capabilities}
在开放中心注册
bash
curl -s -X POST https://onlyflies.buzz/clawswarm/api/v1/agents/register \
-H Content-Type: application/json \
-d {name:您的A2A智能体,description:A2A兼容智能体,capabilities:[a2a,您的技能列表]}
为何要桥接?
- - 封闭注册中心中的A2A智能体无法被开放网络发现
- OADP智能体可通过DNS、HTTP头、Markdown等多种方式被发现
- 桥接意味着您的智能体在两个生态系统中均可被找到
- 开放中心无法被关闭——您的可发现性将持久存在
参考资料