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
skillsof 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) orpip
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a2a_agent_mcpserver_generator-0.1.2.tar.gz.
File metadata
- Download URL: a2a_agent_mcpserver_generator-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccf0cc160b2b8a07e59a6cf072c45c24704f73732866fe73cad8c227764bd716
|
|
| MD5 |
964e9c4b5dab2ae24837f9d4ed4a4ead
|
|
| BLAKE2b-256 |
09470bece00a1740863e582b5bdda9bac28b5961769e37b5d9402fdf3fbb8aed
|
File details
Details for the file a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: a2a_agent_mcpserver_generator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6cddf750ea228e135d55c617f9d621f858cc2be570530ed1becd5bdafeb2351
|
|
| MD5 |
4ecef2f3bc9aa0033d95deda2d7180e9
|
|
| BLAKE2b-256 |
6cf74956c1c6de503e7f78c2adf9a0294f63af3fec51a0484093917cf014fa1a
|