From adk-multi-agent
Use this skill to expose an ADK 2.0 agent as an A2A (Agent-to-Agent) protocol service so other agents — including non-Python agents in Go, Java, or TypeScript — can call it. Triggers on: "expose ADK agent as A2A", "publish agent over A2A", "make ADK agent callable from another language", "A2A server", "agent-to-agent protocol", "A2A extension". Generates a server entrypoint that wraps your root_agent with the A2A protocol layer and serves it over HTTP.
How this skill is triggered — by the user, by Claude, or both
Slash command
/adk-multi-agent:a2a-protocol-exposerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Wrap an ADK 2.0 agent in the A2A (Agent-to-Agent) protocol so it's callable from agents written in any supported language.
Wrap an ADK 2.0 agent in the A2A (Agent-to-Agent) protocol so it's callable from agents written in any supported language.
# server.py
from google.adk.agents import LlmAgent
from google.adk.a2a import expose_agent
from google.adk.tools import google_search
root_agent = LlmAgent(
name="research_specialist",
model="gemini-2.5-flash",
description="Researches topics and returns cited summaries.",
instruction="Research the user's topic. Always cite sources with URLs.",
tools=[google_search],
)
# Expose over A2A on localhost:8080
expose_agent(
agent=root_agent,
host="0.0.0.0",
port=8080,
extensions=["streaming", "auth"],
)
Run:
python server.py
# A2A endpoint: http://localhost:8080/a2a
# Discovery: http://localhost:8080/a2a/.well-known/agent-card
A2A publishes an agent card at /.well-known/agent-card describing capabilities. ADK auto-generates from your agent's name, description, and tool list.
Add bearer-token auth:
expose_agent(
agent=root_agent,
port=8080,
auth={"type": "bearer", "secret_env": "A2A_TOKEN"},
)
FROM python:3.12-slim
RUN pip install google-adk[extensions] --pre
COPY server.py .
CMD ["python", "server.py"]
EXPOSE 8080
/.well-known/agent-cardcurl or the official A2A clienta2a-protocol-consumer — call an A2A endpoint from your ADK agentnpx claudepluginhub healthcare-ai-consulting-llc/adk-2-toolkit --plugin adk-multi-agentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.