Install
openclaw skills install protocol-bridgeEnables seamless cross-protocol AI agent communication by translating messages, intelligent routing, agent discovery, and secure authentication.
openclaw skills install protocol-bridgeProtocol Bridge is an AI Agent communication infrastructure SKILL that enables seamless cross-protocol agent interaction.
This SKILL acts as a universal translator and router for AI agents, solving protocol incompatibility between MCP, A2A, LangChain, AutoGPT, and CrewAI.
npm install -g openclaw-protocol-bridge
protocol-bridge serve --port 8080
# Register MCP agent
protocol-bridge register --id agent-1 --protocol mcp --endpoint http://localhost:3001
# Register A2A agent
protocol-bridge register --id agent-2 --protocol a2a --endpoint http://localhost:3002
import { ProtocolBridge } from 'openclaw-protocol-bridge';
const bridge = new ProtocolBridge({
protocols: {
mcp: { enabled: true },
a2a: { enabled: true }
}
});
await bridge.initialize();
const result = await bridge.send({
from: { id: 'agent-a', protocol: 'a2a' },
to: { id: 'agent-b', protocol: 'mcp' },
action: 'search',
params: { query: 'test' }
});
1. Enterprise Multi-Agent System Connect HR, Finance, and IT agents across different protocols.
2. Multi-Framework Development Build agents with LangChain, AutoGPT, CrewAI - communicate seamlessly.
3. Protocol Migration Migrate from one protocol to another without rewriting agents.
{
"protocols": {
"mcp": { "enabled": true },
"a2a": { "enabled": true }
},
"routing": {
"strategy": "capability-based"
},
"security": {
"authentication": "jwt"
}
}
protocol-bridge serve - Start bridge serverprotocol-bridge init - Initialize configurationprotocol-bridge register - Register an agentprotocol-bridge list - List all agentsprotocol-bridge health - Check system healthMiddleware Support
bridge.use(async (message, next) => {
console.log(`${message.from.id} → ${message.to.id}`);
return await next(message);
});
Agent Discovery
const agents = await bridge.discover({
capabilities: ['search'],
protocols: ['mcp', 'a2a']
});
Agent Not Found
protocol-bridge list
Connection Timeout Increase timeout in config:
{
"routing": {
"timeout": 60000
}
}
Protocol Bridge 是一个 AI Agent 通信基础设施 SKILL,可实现无缝的跨协议 Agent 交互。
此 SKILL 充当 AI Agent 的通用翻译器和路由器,解决 MCP、A2A、LangChain、AutoGPT 和 CrewAI 之间的协议不兼容问题。
npm install -g openclaw-protocol-bridge
protocol-bridge serve --port 8080
# 注册 MCP Agent
protocol-bridge register --id agent-1 --protocol mcp --endpoint http://localhost:3001
# 注册 A2A Agent
protocol-bridge register --id agent-2 --protocol a2a --endpoint http://localhost:3002
import { ProtocolBridge } from 'openclaw-protocol-bridge';
const bridge = new ProtocolBridge({
protocols: {
mcp: { enabled: true },
a2a: { enabled: true }
}
});
await bridge.initialize();
const result = await bridge.send({
from: { id: 'agent-a', protocol: 'a2a' },
to: { id: 'agent-b', protocol: 'mcp' },
action: 'search',
params: { query: 'test' }
});
1. 企业多 Agent 系统 连接跨不同协议的人力资源、财务和 IT Agent。
2. 多框架开发 使用 LangChain、AutoGPT、CrewAI 构建 Agent - 无缝通信。
3. 协议迁移 从一个协议迁移到另一个协议,无需重写 Agent。
{
"protocols": {
"mcp": { "enabled": true },
"a2a": { "enabled": true }
},
"routing": {
"strategy": "capability-based"
},
"security": {
"authentication": "jwt"
}
}
protocol-bridge serve - 启动桥接服务器protocol-bridge init - 初始化配置protocol-bridge register - 注册 Agentprotocol-bridge list - 列出所有 Agentprotocol-bridge health - 检查系统健康中间件支持
bridge.use(async (message, next) => {
console.log(`${message.from.id} → ${message.to.id}`);
return await next(message);
});
Agent 发现
const agents = await bridge.discover({
capabilities: ['search'],
protocols: ['mcp', 'a2a']
});
找不到 Agent
protocol-bridge list
连接超时 在配置中增加超时:
{
"routing": {
"timeout": 60000
}
}
v1.0.0 | MIT License | ZhenRobotics