Skip to main content
Glama
A2A MCP Server

A2A MCP Server

A2A MCP 服务器

一个简单的 MCP 服务器,为 Claude Desktop 提供对 A2A 协议代理的访问。

它对开发者更友好,而非生产环境就绪。您可以根据自己的需求进行调整和扩展。但将其原样部署到生产环境中可能并非最佳选择。

概述

该项目旨在将 Claude Desktop 与 A2A(代理到代理)协议代理连接起来,特别是那些使用 pcingola/a2a_min 和 fast-agent 构建的代理。该项目最初是作为个人项目开发的,旨在协助代理开发,同时也是为了好玩。

Related MCP server: cc-tap

工具

服务器提供了三种 MCP 工具:

  1. a2a_server_registry - 注册或删除 A2A 服务器

    {
      "action": "add", 
      "name": "security_audit", 
      "url": "http://localhost:8000"
    }
  2. list_agents - 列出所有注册代理及其功能

    {}
  3. call_agent - 向代理发送提示并获取其响应

    {
      "agent_name": "security_audit",
      "prompt": "regismesquita/DevControlMCP"
    }

工作流程

典型的工作流程是:

  1. 使用a2a_server_registry注册 A2A 服务器

  2. 使用list_agents列出可用的代理

  3. 需要时使用call_agent呼叫代理

本地测试

该服务器已在本地通过基于 fast-agent 和 a2a_min 构建的安全审计代理进行了测试。它成功使 Claude Desktop 能够与 A2A 代理进行通信。

目的

该桥梁允许 Claude Desktop 与任何 A2A 兼容代理进行交互,通过 MCP 工具界面扩展 Claude 的功能。

截屏

Available Tools

3 tools
a2a_server_registryB
Add or remove an A2A server URL.

Args:
    action: Either "add" or "remove"
    name: Name of the server
    url: URL of the server (required for "add" action)
    
Returns:
    Dict with status and message

Inputs: action (required), name (required), url. Returns: result

call_agentC
Call an agent with a prompt.

Args:
    agent_name: Name of the agent to call
    prompt: Prompt to send to the agent
    
Returns:
    Dict with response from the agent

Inputs: agent_name (required), prompt (required). Returns: result

list_agentsB
List available agents with their agent cards.

Returns:
    Dict with agents and their cards

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: a2a_server_registry manages server URLs, call_agent invokes a specific agent, and list_agents retrieves agent information. The descriptions clearly differentiate between server management, agent invocation, and agent listing functions.

    Naming Consistency4/5

    The tools follow a consistent snake_case naming convention throughout. However, the naming pattern is mixed: a2a_server_registry uses a prefix+noun+noun structure, while call_agent and list_agents use verb+noun. This minor deviation prevents a perfect score.

    Tool Count3/5

    With only 3 tools, the server feels somewhat thin for an A2A (Agent-to-Agent) server that presumably facilitates multi-agent interactions. While the tools cover basic operations (registry management, agent calling, and listing), the scope suggests more functionality could be expected, such as agent configuration or monitoring tools.

    Completeness3/5

    The tools provide core operations for server registration and agent interaction, but there are notable gaps. For example, there's no way to update server details, manage agent states beyond listing, or handle error scenarios explicitly. The surface covers basic workflows but lacks comprehensive lifecycle management for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers