Skip to main content

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.

Published on PyPI as ai-oriented-a2a-mcp==0.4.6. You can also 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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-oriented-a2a-mcp 0.4.6
File Size Uploaded Provenance Actions
ai_oriented_a2a_mcp-0.4.6.tar.gz 34.3 kB With provenance Details for ai_oriented_a2a_mcp-0.4.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-oriented-a2a-mcp 0.4.6
File Interpreter ABI Platform Actions
ai_oriented_a2a_mcp-0.4.6-py3-none-any.whl Python 3 none any Details for ai_oriented_a2a_mcp-0.4.6-py3-none-any.whl

Total release size: 76.3 kB

Release files / ai_oriented_a2a_mcp-0.4.6.tar.gz

Download URL ai_oriented_a2a_mcp-0.4.6.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2c7dd741d969f91be6e89853975d79b9b91f3b3bf185fa659ba827ddf1a8884c
BLAKE2b-256 checksum
How to use checksums
e32a89ada416f725886fad394cf5e9a9c6c51be8fff5a43910dc0d242f0a0c32
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 Dec 1, 2026.

Transparency log

Release files / ai_oriented_a2a_mcp-0.4.6-py3-none-any.whl

Download URL ai_oriented_a2a_mcp-0.4.6-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3641780deaf81e818a489ccd2c0c508a4a8583d8e4ea8b4e10b9fb7172a90423
BLAKE2b-256 checksum
How to use checksums
38a2fc27353294ef777ae4438626a5475736198004fee67a45500368e61decbf
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 Dec 1, 2026.

Transparency log

Security for ai-oriented-a2a-mcp 0.4.6

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.

Select from 2 files

Attestation for ai_oriented_a2a_mcp-0.4.6.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 Dec 1, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page