/a2a-multi-agent:a2a-serverfrom a2a-multi-agent
Guides implementation of an A2A protocol server endpoint that handles JSON-RPC requests, manages task state transitions, and routes to method handlers like message/send and tasks/get.
Ships in a2a-multi-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://a2a-protocol.org/latest/specification/ for the server-side protocol requirementssite:github.com a2aproject a2a-python server or a2aproject a2a-js server for SDK server classessite:github.com a2aproject a2a-samples server for reference server implementationsAn A2A server is the agent's network endpoint that:
/.well-known/agent-card.jsonHTTP POST → JSON-RPC parse → Method routing → Handler execution → Task state update → JSON-RPC response
Every A2A server must handle:
| Method | Required | Description |
|---|---|---|
message/send | Yes | Receive a message, create/update task, return result |
message/stream | If streaming | Same as send but returns SSE stream |
tasks/get | Yes | Return task by ID |
tasks/cancel | Yes | Cancel a task |
tasks/resubscribe | If streaming | Re-subscribe to task's SSE stream |
| Push notification methods | If supported | Configure/manage push notification callbacks |
The server is responsible for task state transitions:
submitted state when receiving new messagesworking when processing beginsinput-required when more input is neededcompleted, failed, canceled, rejected) when doneThe SDK typically provides a handler interface you implement:
class MyAgentHandler:
async def handle_message(task_id, message) -> TaskResult:
# Your agent logic here
# 1. Parse the input message parts
# 2. Process with LLM or business logic
# 3. Return result with updated task state
A2A servers must handle concurrent requests:
Fetch the SDK documentation for exact server class names, constructor parameters, middleware patterns, and handler interfaces before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
a2a-protocol, agent-server, json-rpc, agent-interoperability
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin a2a-multi-agent16 skills in this plugin
/a2a-agent-cardCreate and configure A2A Agent Cards — the discovery document describing an agent's capabilities, skills, authentication, and endpoint. Use when defining what your agent exposes to other agents./a2a-authenticationImplement A2A authentication — API keys, Bearer tokens, OAuth 2.0, OpenID Connect, and mutual TLS. Use when securing agent-to-agent communication and configuring Agent Card security schemes./a2a-clientBuild an A2A client — the agent-side code that discovers other agents, sends tasks, handles responses, and manages multi-turn conversations. Use when implementing the client side that delegates work to A2A agents.Other plugins' skills for the same job