# A2a MCP Fleet Builder

> Describe your agent team in one sentence and get a working A2A + MCP multi-agent project - coordinator, worker agents with Agent Cards, MCP tools, review loop, SQLite memory, crash-safe resume, offline mode and tests. Standard library only; verified against the official A2A and MCP SDKs.

A2a MCP Fleet Builder is a free AI agent skill on Agensi by MUHAMMAD WAQAS, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [MUHAMMAD WAQAS](https://www.agensi.io/creators/muhammad-waqas)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/a2a-mcp-fleet-builder
- Tags: llm-ops, ai-agents, prompt-engineering, a2a, mcp, multi-agent, agents, agent-to-agent

## About this skill

Describe a team of AI agents in one sentence ("a researcher, a writer and an editor") and get a complete, working multi-agent project: a coordinator plus worker agents that talk over A2A 1.0 and use tools through MCP.

### What you get
- **A2A 1.0 agents:** every agent serves an Agent Card and the JSON-RPC endpoint (SendMessage, GetTask), compatible with the official a2a-sdk
- **MCP tools:** over streamable HTTP or stdio, e.g. the official filesystem server via npx
- **Crash-safe jobs:** task keys plus a SQLite journal, so a crashed agent resumes without repeating finished model or tool calls
- **Review loop:** a reviewer agent approves work or sends it back for revision
- **Offline mode:** a fake LLM and a fake MCP world, so it runs and is tested with no API key
- **CLI + tests:** up, run, status, resume, cards, tools, logs, down; 14 end-to-end tests per project, including killing an agent mid-job

### How it works
1. Your agent turns your description into a small JSON spec and shows you the design.
2. The generator writes the project. It uses only the Python standard library: nothing to install.
3. The generated self-test runs, then a job runs offline so you see it work.
4. Add your key to .env (yourself, never in chat) and switch to live mode: Groq by default, or any OpenAI-compatible API (OpenAI, OpenRouter, Ollama).

### Why this beats prompting it yourself
Hand-written agent demos break on the hard parts: protocol details, retries, duplicated actions after a crash, flaky tool calls. This generator encodes lessons from a real multi-agent system that played a live MMO: idempotent task keys, journaled calls, provider-error retries and honest failure instead of empty answers. Tested in both directions against the official A2A and MCP SDKs, with CI on Windows, macOS and Linux.

## Requires

- Python
- @modelcontextprotocol/server-filesystem
- Node.js
- Git
- 3.9+
- Optional: Groq or OpenAI

## Known limitations

A2A is blocking (no streaming). MCP uses tools only (no resources/prompts). Local agents have no built-in auth. Tool/LLM calls in-flight during a crash may repeat.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the A2a MCP Fleet Builder skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What exactly is included in the A2a MCP Fleet Builder package?

The skill generates a complete, standalone Python project including a coordinator, worker agents, a SQLite-backed journaling system for crash recovery, and a 14-point automated validation suite. You receive all the necessary scripts to build, test, and run your multi-agent fleet locally without external SDK dependencies.

### Can I use this with local LLMs or specific providers like Groq and OpenRouter?

Yes, the generated runtime is built on the Python 3.9+ standard library and supports any OpenAI-compatible API, including Groq, OpenRouter, and local models via Ollama. It uses standard MCP for tool execution, making it compatible with a wide range of existing MCP servers.

### How does this differ from simply asking an LLM to write a multi-agent script?

Unlike basic prompting, this skill implements complex "plumbing" like JSON-RPC 2.0 error handling and a SQLite state machine that allows agents to resume exactly where they left off after a crash. It automates the tedious engineering work required to make multi-agent systems production-ready and resilient.

### What is the typical setup process and are there many dependencies?

Setup is straightforward: you define your agent roles and pipeline in a simple configuration, run the `fleetgen.py` script to scaffold the project, and then use the `selftest` command to verify the environment. There are no heavy frameworks to install, as the generated code runs on the Python standard library.

### Are there any limitations on the number of agents or specific protocol features?

The skill currently supports up to 10 worker agents per fleet and is optimized for 127.0.0.1 (localhost) environments without built-in authentication. It focuses on A2A SendMessage and GetTask protocols and MCP tool integration, excluding streaming responses or MCP resources.

### Do I need an API key?

No for offline mode. For live mode, a Groq key (free tier works) or any OpenAI-compatible API.

### Does my key go anywhere?

Only to the LLM API you configure. It lives in .env, which your agent never reads, and logs are redacted.

### Is it compatible with the official A2A and MCP SDKs?

Yes, tested in both directions (a2a-sdk 1.3, mcp 2.3).

### What happens if an agent crashes?

The job pauses; python fleet.py resume --last continues it without repeating finished calls.

### What's not supported?

A2A streaming and push notifications, and MCP resources and prompts. Agents listen on localhost without authentication.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
