Skip to main content

Add your description here

Project description

A2A Agent to MCP server 🤖

A command-line tool that generates Model Context Protocol (MCP) server code from a oneline a2a agent. This tool helps you quickly create an MCP server that acts as a bridge between LLMs (Large Language Models) and the a2a agent.

English | 简体中文

Features ✨

  • Automatic Tool Generation: Converts each skills of the a2a agent into an MCP tool
  • Transport Options: Only supports stdio, for sse you can leveral mcp-proxy
  • Complete Project Setup: Generates all necessary files to run an MCP server
  • Easy Configuration: Simple environment-based configuration for the generated server

Prerequisites

  • Python 3.13+
  • uv (optional, but recommended) or pip

Environment Setup 🔧

Firstly, you need to start up a a2a agent: https://github.com/google/a2a-python/tree/main/examples

uv run a2a-agent-mcpserver-generator --agent http://0.0.0.0:10000

Installation 📦

uv pip install a2a-agent-mcpserver-generator

Usage 🚀

uv run a2a-agent-mcpserver-generator --help
Usage: a2a-agent-mcpserver-generator [OPTIONS]

Options:
  --agent TEXT
  --output TEXT
  --name TEXT
  --history BOOLEAN
  --use_push_notifications BOOLEAN
  --push_notification_receiver TEXT
  --help                          Show this message and exit.

E2E example

Suggest use mcpclihost as MCP host to take a try. This tool(mcpclihost) could support both Azure Openai and deepseek

You can add generated MCP server congiguration like this:

{
  "mcpServers": {
    "a2a-mcp": {
      "command": "uv",
      "args": [
        "--project",
        "/Users/lipeng/workspaces/github.com/vincent-pli/a2a-agent-mcpserver-generator/a2a-mcp-server",
        "run",
        "a2a-agent-mcpserver"
      ]
    }
  }
}

to the ~/.mcp.json(default mcp server configuration path of mcpclihost), then take a try

License 📄

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a2a_agent_mcpserver_generator-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file a2a_agent_mcpserver_generator-0.1.2.tar.gz.

File metadata

File hashes

Hashes for a2a_agent_mcpserver_generator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ccf0cc160b2b8a07e59a6cf072c45c24704f73732866fe73cad8c227764bd716
MD5 964e9c4b5dab2ae24837f9d4ed4a4ead
BLAKE2b-256 09470bece00a1740863e582b5bdda9bac28b5961769e37b5d9402fdf3fbb8aed

See more details on using hashes here.

File details

Details for the file a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6cddf750ea228e135d55c617f9d621f858cc2be570530ed1becd5bdafeb2351
MD5 4ecef2f3bc9aa0033d95deda2d7180e9
BLAKE2b-256 6cf74956c1c6de503e7f78c2adf9a0294f63af3fec51a0484093917cf014fa1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page