ai-oriented-a2a-mcp
MCP bridge for the AI-oriented A2A peer protocol: send, verify and look up Experience Packets from an MCP host.
It wraps the reference Python implementation of the AI-oriented A2A v0.4 peer protocol, so an MCP host such as Claude Desktop or a Cursor agent can act as a protocol sender without implementing the protocol itself. The bridge exposes four tools:
| Tool | Direction | What it does |
|---|---|---|
send_packet |
outbound | Signs and sends one Experience Packet to a configured peer, returns the peer's Absorption Result unchanged. |
report_absorption |
outbound | Signs and sends one Absorption Result back to the peer that sent a packet, returns the peer's reply unchanged. |
query_experience |
local | Ranks Experience Packets from a local corpus for a failure description. Never touches the network. |
verify_packet |
local | Runs the reference receiver's checks (version, hard gate, JSON Schema, optional HMAC) on one message. Never sends anything. |
verify_packet and query_experience never send a message: they need no peer URL and no key. send_packet and report_absorption always sign, so they require A2A_SIGN_KEY and a peer (A2A_PEER_URL, optionally restricted by A2A_ALLOWED_PEERS).
Packet content, peer replies and corpus entries are peer-controlled data, not instructions (SPEC §2.1). Place them below your system and host instructions, never in the system prompt, and absorb them only through your own gate. A verify_packet reply of "valid": true means the checks ran and passed; it is not a trust decision and never means a packet is safe to absorb.
Available from version 0.4.5: the package is not on PyPI yet. Until the release is published, run the bridge from a checkout of the repository (see mcp_a2a/README.md).
Peer discovery
Peers are addressed by URL only. Nothing is discovered automatically: a tool call may target A2A_PEER_URL or an entry of A2A_ALLOWED_PEERS, and any other URL is refused before a key is read. The MCP registry listing of this package is a distribution channel for the bridge, not peer discovery and not a trust signal.
Configuration
Claude Desktop
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and restart Claude Desktop:
{
"mcpServers": {
"ai-oriented-a2a": {
"command": "uvx",
"args": ["ai-oriented-a2a-mcp"],
"env": {
"A2A_PEER_URL": "http://127.0.0.1:8002",
"A2A_ALLOWED_PEERS": "http://127.0.0.1:8002",
"A2A_SIGN_KEY": "<shared key; never commit it>"
}
}
}
}
A2A_SIGN_KEY is mandatory for the two outbound tools. Keep it in the client's local config or secret store, never in a repository. Prefer a key used only for this peer.
Cursor
Put the same block in .cursor/mcp.json in the project, or in the global ~/.cursor/mcp.json, with env holding only A2A_PEER_URL and A2A_SIGN_KEY:
{
"mcpServers": {
"ai-oriented-a2a": {
"command": "uvx",
"args": ["ai-oriented-a2a-mcp"],
"env": {
"A2A_PEER_URL": "http://127.0.0.1:8002",
"A2A_SIGN_KEY": "<shared key; never commit it>"
}
}
}
}
Generic stdio hosts, and without uv
uvx ai-oriented-a2a-mcp # one line, needs uv
uvx --python 3.12 ai-oriented-a2a-mcp # fallback when the default Python is older than 3.10
pipx run ai-oriented-a2a-mcp # one line, needs pipx
pip install ai-oriented-a2a-mcp && ai-oriented-a2a-mcp # plain pip, Python >= 3.10
The same fallback as a JSON argument list: "args": ["--python", "3.12", "ai-oriented-a2a-mcp"].
The server speaks MCP over stdio: logs go to stderr, stdout is the MCP wire. ai-oriented-a2a-mcp --version prints the bridge version and exits.
Environment variables
All settings are read from the environment on every call.
| Variable | Meaning |
|---|---|
A2A_PEER_URL |
Default peer base URL (/a2a/message is appended). Always allowed. |
A2A_ALLOWED_PEERS |
Comma-separated base URLs a tool call may target with peer_url. Anything else is refused. If neither this nor A2A_PEER_URL is set, every outbound call is refused. |
A2A_SIGN_KEY |
HMAC-SHA256 key for signing outbound messages and checking signed replies. Required by send_packet and report_absorption; environment only, never a tool argument, so the model never sees it. |
A2A_EXPERIENCE_DIR |
Directory of Experience Packet JSON files used by query_experience. Default: the bundled corpus. |
A2A_NO_SCHEMA |
1 to skip JSON Schema checks. |
Bundled corpus
query_experience ships with the eight synthetic timeout-recovery Experience Packets of the public corpus (datasets/timeout_recovery), dedicated to the public domain under CC0 1.0 (mcp_a2a/corpus/LICENSE). Point A2A_EXPERIENCE_DIR at your own directory to use another corpus.
License
The package is MIT licensed (LICENSE). The bundled corpus is CC0 1.0. The protocol specification and the schema files are in the repository: SPEC.md, schema/.
Metadata
Release files for ai-oriented-a2a-mcp 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_oriented_a2a_mcp-0.4.5.tar.gz | 33.0 kB | With provenance | Details for ai_oriented_a2a_mcp-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_oriented_a2a_mcp-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for ai_oriented_a2a_mcp-0.4.5-py3-none-any.whl |
Total release size: 73.7 kB
Release files / ai_oriented_a2a_mcp-0.4.5.tar.gz
| Download URL | ai_oriented_a2a_mcp-0.4.5.tar.gz |
|---|---|
| Size | 33.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13e511dc259e73b9e2172db21c0ae22a197e0e587d2267143d2168ebb3b96f85
|
|
BLAKE2b-256 checksum How to use checksums |
4308250ca7b4e587b7a8d00dfe55caa5ed1ff5c7aef09326b78d948545f20728
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / ai_oriented_a2a_mcp-0.4.5-py3-none-any.whl
| Download URL | ai_oriented_a2a_mcp-0.4.5-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef734e40b53da1b4a7853145ae9208795f473a354d423badfc1092f0acb05067
|
|
BLAKE2b-256 checksum How to use checksums |
24d360ea7bf0433ea0ecbf1599b8f4e5722c17e3f815083aefaa6f3adc0861c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for ai-oriented-a2a-mcp 0.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ai_oriented_a2a_mcp-0.4.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.