A compatibility test suite that validates A2A (Agent-to-Agent) Protocol implementations across three transports: gRPC, JSON-RPC, and HTTP+JSON.
- Python 3.11+
- uv for environment management
git clone https://github.com/a2aproject/a2a-tck.git
cd a2a-tck
uv venv
source .venv/bin/activate
uv pip install -e .Run the full conformance suite against your A2A agent:
./run_tck.py --sut-host http://localhost:9999Run a specific transport:
./run_tck.py --sut-host http://localhost:9999 --transport grpcCompatibility reports are generated in the reports/ directory after every run.
./run_tck.py --sut-host URL [options] [-- pytest_args...]
| Flag | Description |
|---|---|
--sut-host URL |
(required) Base URL of the System Under Test |
--transport LIST |
Comma-separated transport filter (e.g. grpc, jsonrpc,http_json). Default: all transports declared in the agent card |
--level LEVEL |
Run only requirements at a specific RFC 2119 level: must, should, or may |
-v, --verbose |
Verbose pytest output |
--verbose-log |
Verbose output with log capture (-v -s --log-cli-level=INFO) |
-- pytest_args... |
Additional arguments passed through to pytest (e.g. -- -x --pdb) |
# Run only MUST-level requirements
./run_tck.py --sut-host http://localhost:9999 --level must
# Run gRPC and JSON-RPC transports with verbose output
./run_tck.py --sut-host http://localhost:9999 --transport grpc,jsonrpc -v
# Pass extra pytest flags
./run_tck.py --sut-host http://localhost:9999 -- -x --pdbTests are organized by RFC 2119 requirement levels:
| Level | Meaning | Test behavior |
|---|---|---|
| MUST | Absolute requirement | Hard failure if not met |
| SHOULD | Expected unless there is a valid reason to differ | Expected failure (xfail), does not block compatibility |
| MAY | Truly optional | Skipped if the agent doesn't declare the capability |
Use --level to run only a specific level:
./run_tck.py --sut-host http://localhost:9999 --level must
./run_tck.py --sut-host http://localhost:9999 --level should
./run_tck.py --sut-host http://localhost:9999 --level mayThe TCK supports three A2A transports:
| Transport | --transport value |
Protocol binding |
|---|---|---|
| gRPC | grpc |
GRPC |
| JSON-RPC | jsonrpc |
JSONRPC |
| HTTP+JSON | http_json |
HTTP+JSON |
Transport selection is driven by the agent card's supportedInterfaces. The TCK fetches the agent card from {sut-host}/.well-known/agent-card.json and creates clients for each declared interface. Use --transport to filter which transports are tested.
Reports are always generated in the reports/ directory after every run:
| Report | File | Description |
|---|---|---|
| Compatibility JSON | reports/compatibility.json |
Machine-readable compatibility results with per-requirement and per-transport breakdowns |
| Compatibility HTML | reports/compatibility.html |
Self-contained HTML report with executive summary, agent card details, and test results |
| pytest HTML | reports/tck_report.html |
Standard pytest-html report |
| JUnit XML | reports/junitreport.xml |
JUnit XML for CI integration |
Scores describe automated checks. Requirements tagged not-automatable
(such as signed-card verification and client tenant propagation) appear as
MANUAL, with a pending-verification list in console, HTML and JSON reports.
They are excluded from automated percentages and never count as passes.
NOT TESTED automated requirements still lower the score, including when the
SUT was unreachable. A 100% automated score does not establish full conformance
while manual obligations remain pending.
The TCK includes a code generator that produces System Under Test (SUT) implementations from Gherkin scenario files in scenarios/. The generator supports a --target flag to select the SUT type.
The a2a-java target generates CDI producer files for the a2a-java SDK tck module. You need a local clone of the a2a-java repository:
# Set A2A_JAVA_DIR to your a2a-java clone
export A2A_JAVA_DIR=/path/to/a2a-java
# Generate CDI producers from Gherkin scenarios
A2A_JAVA_DIR=$A2A_JAVA_DIR make codegen-a2a-java-sut
# Build and start the SUT
cd $A2A_JAVA_DIR && mvn clean install && cd tck && mvn quarkus:dev -Dquarkus.console.enabled=false
# Run the TCK against it
./run_tck.py --sut-host http://localhost:9999The a2a-python target generates a complete runnable Python SUT project in sut/a2a-python/ built on the a2a-python SDK. The generated project resolves the SDK from a local clone of a2a-python placed as a sibling of this repository; set A2A_PYTHON_SDK_PATH or A2A_PYTHON_SDK_VERSION before generating to override.
# Generate the SUT from Gherkin scenarios
make codegen-a2a-python-sut
# Install dependencies
cd sut/a2a-python && uv sync
# Start the SUT (HTTP on :9999, gRPC on :10000 by default)
uv run python sut_agent.py
# Run the TCK against it
./run_tck.py --sut-host http://localhost:9999The a2a-jakarta target generates a Jakarta EE SUT project in sut/a2a-jakarta/ built on the a2a-java SDK and deployed with the WildFly Maven plugin:
# Generate the SUT from Gherkin scenarios
make codegen-a2a-jakarta-sut
# Build and start the SUT on WildFly
cd sut/a2a-jakarta && mvn wildfly:run
# Run the TCK against it
./run_tck.py --sut-host http://localhost:8080| Command | Description |
|---|---|
make lint |
Run ruff linter |
make unit-test |
Run unit tests (no SUT required) |
make spec |
Update A2A specification files from [https://github.com/a2aproject/A2A](A2A GitHub repository) |
make proto |
Regenerate gRPC stubs from a2a.proto |
A2A_JAVA_DIR=/path/to/a2a-java make codegen-a2a-java-sut |
Generate a2a-java CDI producers from Gherkin scenarios |
make codegen-a2a-python-sut |
Generate the a2a-python SUT from Gherkin scenarios |
make codegen-a2a-jakarta-sut |
Generate the a2a-jakarta SUT from Gherkin scenarios |
See AGENTS.md for architecture details and contribution guidelines.