a2a-python-sut

A Python test application for the A2A protocol, generated from Gherkin scenario files. It implements the protocol with the a2a-python SDK and serves as the application checked by the TCK, a compatibility test suite.

In plain words
What is it for?
Use it to regenerate the Python test application, build it, run it, or test it with the A2A TCK.
Why use it?
It removes the manual work of turning test scenarios into a runnable Python project. It provides a repeatable target for checking whether an A2A implementation follows the protocol.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/a2aproject/a2a-tck/a2a-python-sut
Any agent
npx skills add a2aproject/a2a-tck --skill a2a-python-sut
Clone the repo
git clone --depth 1 https://github.com/a2aproject/a2a-tck

Made for: Claude Code, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,467 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00052 $0.02467
Opus 5 $0.00026 $0.01234
Sonnet 5 $0.00010 $0.00493
Haiku 4.5 $0.00005 $0.00247

Measured 3d ago against content hash 4601ee4feb2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

a2a-python-sut scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s http://localhost:9999/.well-known/agent-card.json | python3 -m json.tool

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(make:*) Bash(uv:*) Bash(python:*) Bash(python3:*) Bash(curl:*) Bash(kill:*) Bash(lsof:*) Bash(pkill:*) Read Edit Write Glob Grep Agent
.agents/skills/a2a-python-sut/SKILL.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Work with the a2a-python SUT

The a2a-python SUT is a Python application generated from Gherkin .feature files in scenarios/. It implements the A2A protocol using the a2a-python SDK (a2a-sdk) and serves as a conformance target for TCK tests.

Architecture overview

scenarios/*.feature → codegen (parser + steps + python_emitter) → sut/a2a-python/
  • Gherkin scenarios (scenarios/*.feature) define SUT behavior via messageId prefix matching
  • Code generator (codegen/) parses .feature files and emits a Python project
  • Jinja2 templates (codegen/a2a-python/*.j2) produce sut_agent.py and pyproject.toml
  • Generated output (sut/a2a-python/) is a complete runnable Python project

Key generated files

File Template Purpose
sut_agent.py sut_agent.py.j2 Main entry point; TckAgentExecutor with messageId-prefix routing, agent card, and server setup for all three transports
pyproject.toml pyproject.toml.j2 Project config with a2a-sdk dependency (installed from local path)

How the executor works

The generated TckAgentExecutor matches on the messageId prefix from incoming messages:

if message_id.startswith('tck-complete-task'):
    await updater.complete(updater.new_agent_message([Part(text="Hello from TCK")]))
    return

The TCK tests use tck_id("complete-task") which generates tck-complete-task-<session_hex>, matching the prefix.

Server architecture

The SUT runs all three transports in a single process:

  • JSON-RPC via A2AStarletteApplication (Starlette)
  • HTTP+JSON via A2ARESTFastAPIApplication (FastAPI mounted on the Starlette app)
  • gRPC via GrpcHandler (grpc.aio server on a separate port)

Step 0: Inform the user of the version of a2a-python

The a2a-python SDK version is controlled by the A2A_PYTHON_SDK_VERSION environment variable. The default value is defined in codegen/python_emitter.py (_DEFAULT_A2A_PYTHON_SDK_VERSION).

Read the full file on GitHub · 226 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 226 lines · 52 tokens per session scan C 4601ee4feb2f

Subscribe to this mod's changes

a2a-python-sut is a skill published in the GitHub repository a2aproject/a2a-tck (48 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 2,467 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

bump-dependency

Bumps a Python package dependency across Home Assistant Core integrations, regenerates core requirement files, runs verification tests and prek lint, and prepares a pull request with proper release/compare links.

home-assistant/core · 42 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

K-Dense-AI/scientific-agent-skills · 76 tokens

marimo-pair

Work inside the user's live marimo notebook from the code editor: run Python in the same kernel the user does, inspect live notebook state, and commit durable notebook changes through code mode. Use whenever you create, analyze, or improve the user's marimo notebook.

marimo-team/marimo · 57 tokens

adk-style

Python style and codebase conventions for ADK (Agent Development Kit): private-by-default file visibility, imports, type hints, Pydantic v2 models, formatting, docstrings, logging, async I/O, file and test layout, and unit test structure. Use when writing or editing ADK source or tests, deciding whether a new file or…

google/adk-python · 187 tokens

coding

编写并运行 Python 代码,验证脚本逻辑和输出。.

bojieli/ai-agent-book · 18 tokens

ax-python-agent

Use when writing Python code with axllm for agents, child delegation, tools, MCP, citations, persistent playbook learning, stage instructions, runtime state, final typed responses, and direct-respond executor skipping.

ax-llm/ax · 49 tokens