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

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 📦

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.1.tar.gz (6.1 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.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for a2a_agent_mcpserver_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 720ddb84cb21e4ef67e2d5e02b020d93b148cd8041adff4662cbcc9742fd3f8f
MD5 9d4604bf5fd536030d4e563fb5a6b104
BLAKE2b-256 f1fa3007746d08c93c0cd35689548859ecfd50e500cee858e65eeb156cad0df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for a2a_agent_mcpserver_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68a5947c484157d0307d49ab1c0e7846ae788c0732e65b7010a2fdcd5c0cf2eb
MD5 5e1a697347685dfb458e37761c38f38e
BLAKE2b-256 fd4dfaa603ec9487bf3a7258d79473ef6f60071e4092de5a660990d1b47ab19d

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