A2A ⚡ MCP 特工
该项目演示了两种不同的代理通信方法:
主控制程序 (MCP) - 一种基于集中式服务器的方法,代理通过中央服务器进行通信
代理对代理(A2A) ——一种去中心化的点对点方法,代理之间可以直接通信
安装
创建并激活虚拟环境:
安装依赖项:
用法
MCP 服务器和代理
启动 MCP 服务器:
在单独的终端中,启动一个或多个 MCP 代理:
MCP 服务器会追踪所有已连接的代理及其状态。您可以在浏览器中打开http://localhost:5000查看状态。
A2A(代理到代理)网络
启动第一个 A2A 代理:
启动其他 A2A 代理,并将它们连接到现有代理:
A2A 代理将通过其初始同伴自动发现其他代理。您可以在任何代理的终端中输入消息,以将其广播给所有连接的代理。
建筑学
MCP(主控制程序)
跟踪所有代理的集中式服务器
代理向服务器注册并通过心跳维持连接
服务器提供Web界面来监控代理状态
简单可靠,但存在单点故障
A2A(代理对代理)
去中心化的点对点网络
代理之间直接连接
信息在网络上泛滥
更具弹性,但需要更复杂的协调
无单点故障
项目结构
贡献
请随意提交问题并请求改进演示。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
跟踪和管理已连接代理的集中式服务器,提供 Web 界面来监控其状态,同时支持代理通过中心点进行通信。
Related MCP Servers
- Asecurity-licenseAqualityA server for task orchestration and coordination, facilitating task management with dependencies, multi-instance collaboration, and persistent task tracking.Last updated -724MIT License
- -security-license-qualityA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.Last updated -
- -security-license-qualityA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.Last updated -08
- -security-license-qualityA powerful server that enables AI agents to interact with MySQL databases, execute SQL queries, and manage database content through a simple interface.Last updated -4396MIT License