Back to Browse

Ai Oriented A2a MCP Server

Developer ToolsLow Risk9.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Send, verify and look up ai-oriented-a2a v0.4 Experience Packets from any MCP host.

About

Send, verify and look up ai-oriented-a2a v0.4 Experience Packets from any MCP host.

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

6 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Shared HMAC-SHA256 key. Required by send_packet and report_absorption; verify_packet checks signatures only when it is set.Required

Environment variable: A2A_SIGN_KEY

Default peer endpoint for send_packet and report_absorption, for example http://127.0.0.1:8002.Optional

Environment variable: A2A_PEER_URL

Comma-separated allowlist of peer URLs the tools may send to.Optional

Environment variable: A2A_ALLOWED_PEERS

Directory of Experience Packet JSON files for query_experience. Defaults to the corpus bundled with the package.Optional

Environment variable: A2A_EXPERIENCE_DIR

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "ai-oriented-a2a-mcp": {
      "command": "uvx",
      "args": [
        "ai-oriented-a2a-mcp"
      ],
      "env": {
        "A2A_PEER_URL": "your-a2a-peer-url-here",
        "A2A_SIGN_KEY": "your-a2a-sign-key-here",
        "A2A_ALLOWED_PEERS": "your-a2a-allowed-peers-here",
        "A2A_EXPERIENCE_DIR": "your-a2a-experience-dir-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

AI-Oriented A2A (v0.4)

Minimal peer protocol for AI capability growth: Experience Packets + constraint negotiation. Not the Google A2A task/agent-card stack — this repo is about sharing compressed improvement signals between peers.

Protocol for AI-to-AI capability growth: first-class Experience Packet exchange, constraint negotiation, proposal_id, no mandatory human mediation. Peer discovery is endpoint-based: peers are configured directly by endpoint, and no registry is needed. Separately, the MCP bridge is listed in the official MCP Registry as io.github.robotmarvin0706/ai-oriented-a2a so that MCP hosts can find and install it; that listing is distribution, not peer discovery. See SPEC.md and examples/experience-packet.json.

Goals

This is infrastructure first. The primary objective is a small, implementable, debuggable protocol that two independently written agents can actually exchange over: a normative spec, published schemas, a conformance suite, and a library anyone can pip install. Every release, scope decision and breaking-change rule is made against that objective.

Academic writing is a derivative objective. A paper (primary target venue: AAMAS) may be written from this work later. It is not the driver: no wire field, no release and no scope choice is made for paper purposes. The only paper-facing document is docs/paper-compatibility.md, which exists to keep that later option open and adds no requirement of its own.

Success is measured by adoption, not by results. The project treats a third-party implementation it did not write passing the conformance suite as its success condition. Experimental results in this repo are reported to keep protocol claims honest; they do not substitute for that. The current non-normative summary is docs/PROTOCOL_LAYER_VALUE.md (experiments 1–4, plus the earlier WP3 measurement in docs/WP3_FINDINGS.md). Experiments 1–3 use a rule-parser host and one simulated tool; experiment 4 replicates experiment 3 with one hosted model (qwen-plus-2025-12-01) reading packets on two simulated tools. There are no external adopters yet.

Changes from v0.1

  • Absorption method layering: MUST (prompt_injection, retrieval), OPTIONAL (local_adapter_hint, trajectory_replay), RESERVED (parameter_delta with verify+rollback if declared).
  • OPTIONAL Experience Packet fields: provenance, verification_claim.
  • OPTIONAL Absorption Result field in v0.2: effect_summary. In v0.3 this is MUST when status=absorbed (non-empty note); it remains OPTIONAL for rejected and isolated.
  • OPTIONAL negotiation propose/counter fields: conditional_packet, constraint_scope, duration.
  • Discovery prose for light interest tags and optional peer metadata forwarding (no new mandatory messages).
  • OPTIONAL Agent Profile interest_tags.
  • Compatibility: v0.2 preferred zero hard breaks and kept new fields optional. v0.3 is a deliberate break: status=absorbed without effect_summary.note is no longer valid. See docs/VERSIONING.md.

v0.2 subset note

v0.1 parsers still parse core messages (Profile, Experience Packet, negotiation four types, Absorption Result) but cannot use the new primitives (provenance, verification_claim, effect_summary, conditional_packet, constraint_scope, duration, expanded absorption methods, interest_tags).

v0.3 subset note

v0.3 does not add message types. It tightens Absorption Result: a peer that emits status=absorbed MUST include effect_summary with a non-empty note. v0.2 absorbed results that omitted effect_summary are not valid under v0.3 schemas. Metric keys stay OPTIONAL.

Non-breaking additions still under v0.3 (all OPTIONAL; omitted messages remain valid): an on-wire version field (canonical "0.3", no leading v); nonce, timestamp, and signature on every message type; and identity on Agent Profile. See docs/VERSIONING.md and docs/TRANSPORT.md.

v0.4 subset note

v0.4 does not add message types or required fields. It tightens what a receiver may do with packet content (SPEC §2.1): content, including nested offered_packet / conditional_packet, is untrusted data and never an instruction; prompt_injection wraps it in documented untrusted markers below system and host instructions; content with a forbidden directive pattern (DATA_POLICY) SHOULD be rejected with content_policy: and MUST NOT be absorbed automatically. verification_claim gains OPTIONAL scenario_ref, metric, value, and repro. The on-wire version is "0.4"; v0.4 receivers still accept "0.3".

Key differences from existing A2A (a2aproject)

  • Experience Packet is a required first-class message for compressed improvement signals, not an optional extension.
  • Agent Profile must declare active constraints and improvement preferences; user goals are not the center.
  • Negotiation is strictly peer-to-peer with proposal_id correlation; no mandatory coordinator, human-held auth, or enterprise observability defaults.
  • Scope is limited to Profile + Experience Packet + basic negotiation + simple discovery. Full task lifecycle and streaming are out of scope.

Contents

PathRole
SPEC.mdNormative minimal subset (v0.4)
schema/JSON Schemas for Profile, Experience Packet, Negotiation, Absorption Result
examples/Concrete messages (Profile, packets, negotiation, absorption results)
IMPLEMENTATION.mdNon-normative dual-endpoint implementation notes
docs/VERSIONING.mdField rules, unknown versions, breaking-change criteria
docs/TRANSPORT.mdHTTP binding, error recommendations, retries
docs/SECURITY.mdNon-normative signature and replay recommendations
docs/ABSORPTION_STATE.mdNon-normative absorption delta identity and single-step rollback
docs/DATA_POLICY.mdTrust and safety rules for public Experience Packet corpora (advisory), plus the normative forbidden directive patterns for SPEC §2.1
datasets/Public synthetic Experience Packet corpora (CC0), including content_policy: counter-examples, checked in CI
CONTRIBUTING.mdHow to report defects and send PRs
llms.txt · AGENTS.mdOne-page machine entry point: what it is, how to install, minimal loop, invariants, what not to do
keywords.txtExplicit term list for retrieval / indexing
ai_oriented_a2a/Minimal installable stdlib helpers (canonical JSON, optional HMAC / replay / version checks)
ai_oriented_a2a/transport.pyStdlib HTTP binding: send_message client and POST /a2a/message request handler / server (import ai_oriented_a2a.transport explicitly)
pyproject.tomlPackaging metadata: pip install ai-oriented-a2a or pip install ".[schema]" from a checkout
docs/RELEASING.mdRelease checklist and PyPI publishing steps (maintainers)
docs/RELAY.mdPublic demo relay: a2a-relay flags and env vars, keys file, quarantine layout, write-path order, Nginx and systemd
deploy/Operator files for the public demo relay: systemd unit, example EnvironmentFile, one-click install script
second_impl/Independent second implementation (client, receiver, CLI); does not import ai_oriented_a2a
impls/go/Clean-room Go implementation by the same maintainers (not third-party adoption); built and tested by the go-second-impl CI job
mcp_a2a/MCP bridge: hosts send packets, verify them locally, report results to A2A peers, and look up experience in a local corpus (installable as ai-oriented-a2a-mcp, Python ≥ 3.10)
docs/MAPPING_A2A_MCP.mdNon-normative mapping of v0.4 messages onto A2A (v1.0) and MCP concepts
docs/COMPLIANCE.mdWhat an implementation must pass, and how to run the conformance suite against another implementation
docs/KNOWN_GAPS.mdKnown deviations in the reference implementation and test debts, with fix plans
docs/LLM_RECEIVER_OBSERVATION.mdOne-off LLM-receiver run (not byte-reproducible): every arm reproduces except raw_trajectory
experiments/Non-normative experiments 1–4 (packet selection, expiry, verification budget, and a one-model LLM-host replication of the budget experiment); current summary in docs/PROTOCOL_LAYER_VALUE.md
docs/WP3_FINDINGS.mdWhat WP3 measured: the gate carries the value, the protocol layer adds no measurable increment
docs/paper-compatibility.mdDerivative objective only: keeps a later paper option open (target venue AAMAS). Adds no requirement and blocks no release

Public demo relay

a2a-relay (ai_oriented_a2a.relay) is the small public demo front door added for 0.4.6: it accepts POST /a2a/message, attributes each packet to one of the configured writer keys by HMAC-SHA256 verification, applies the content policy, caps traffic, and stores accepted packets only in a quarantine directory for review. It has no Agent Card and no SendMessage; GET /health is the only other path. See docs/RELAY.md.

Public demo. Content is untrusted. Not for production.

Status

v0.4 minimal subset documented with schemas and examples. Independent implementations of this minimal subset are welcome. Report actual interop defects (parse or exchange failures against SPEC.md, schema/, and examples/) rather than open-ended design suggestions. When reporting defects, specify the protocol version.

Next steps

Experiments 1–4 are reported in docs/PROTOCOL_LAYER_VALUE.md. Experiments 1–3 (packet selection, expiry, and verification budget) use a rule-parser host (deterministic-rule-host-v1) and one simulated tool. Experiment 4 is a pre-registered replication of experiment 3's primary contrast with one hosted model (qwen-plus-2025-12-01, temperature 0) reading packets on two simulated tools (a web_search timeout and an HTTP 429 rate limit), N = 40 runs: registered verdict R1a, relative token reduction +0.152 (95% CI +0.118 to +0.186) with non-inferior plateau SR. Its harm guardrail was not stressed (no arm installed a harmful policy), and the model derived the same parameters as the rule parser on 1600/1600 calls, so it does not show the rule tolerating a model that reads packets differently. All results are non-normative, and no third-party implementation has appeared yet.

Minimal subset (v0.4)

  • Agent Profile (optional interest_tags; optional core_constraints since v0.4)
  • Experience Packet + absorption metadata (optional provenance / verification_claim; method layering)
  • Basic negotiation primitives (optional conditional_packet / constraint_scope / duration; optional negotiation_id since v0.4, with a round cap of 3 by default, negotiation_limit: over it, and immutable_constraint: for a target in core_constraints)
  • Simple discovery (endpoint or local metadata; light interest tags prose)
  • Absorption Result (absorbed / rejected / isolated; effect_summary.note MUST when absorbed)
  • Optional on-wire version, nonce, timestamp, signature; optional Agent Profile identity
  • Packet content is untrusted data (§2.1): documented wrapping for prompt_injection, content_policy: rejection of directive-like content

Install

The core library uses only the Python standard library. Schema validation is an optional extra. Signature verification and the replay window stay off unless you pass the corresponding arguments.

pip install ai-oriented-a2a
# optional JSON Schema validation:
pip install "ai-oriented-a2a[schema]"
# MCP bridge (Python ≥ 3.10), a separate distribution:
pip install ai-oriented-a2a-mcp        # or run it with: uvx ai-oriented-a2a-mcp

The package is on PyPI. The import name is ai_oriented_a2a.

For development, install from a checkout or straight from GitHub:

pip install -e ".[schema]"
# or, without cloning:
pip install "ai-oriented-a2a[schema] @ git+https://github.com/robotmarvin0706/ai-oriented-a2a"

Maintainers: see docs/RELEASING.md for the release and PyPI publishing steps.

from ai_oriented_a2a import check_incoming, sign_message

msg = {"id": "pkt-1", "version": "0.4"}
# Default: version check only; signature and replay stay off.
rejected = check_incoming(msg)  # None, or a legal rejected Absorption Result

# Opt in by passing arguments. Reuse `seen` across calls when the window is on.
seen = set()
signed = sign_message(msg, "secret")
rejected = check_incoming(signed, sign_key="secret", replay_window=600, seen=seen)

The HTTP binding (POST /a2a/message) ships as a submodule. It is not re-exported, so import ai_oriented_a2a does not load http.server; import it explicitly:

from ai_oriented_a2a import content_policy_rejection, wrap_untrusted
from ai_oriented_a2a.transport import send_message, make_server, serve

def on_message(msg):
    # Called only after the version / signature / replay checks pass.
    # The reply passes the absorption hard gate before it is sent.
    rejected = content_policy_rejection(msg)  # SPEC §2.1: content is data, not instructions
    if rejected:
        return rejected
    # For prompt_injection, put wrap_untrusted(msg) in a user/tool message, never the system prompt.
    return {"packet_ref": msg["id"], "status": "isolated", "reason": "isolated: no local regression"}

server = make_server(on_message, port=8002, sign_key="secret", replay_window=600)
# server.serve_forever()  (or serve(on_message, 8002, ...) to block)

reply = send_message("http://127.0.0.1:8002", msg, sign_key="secret", add_replay_fields=True)

content_policy_rejection and scan_directives are a baseline check against the forbidden directive patterns, not a complete security guarantee. The wrap_untrusted marker format is documented in IMPLEMENTATION.md.

send_message options are keyword-only (timeout defaults to 30 seconds). If the callback raises, the peer gets HTTP 500 with a rejected Absorption Result whose reason starts with internal_error:. See docs/TRANSPORT.md.

String timestamp values must be ISO-8601 with a timezone (for example 2026-11-14T08:00:00Z); integer Unix seconds are recommended.

examples/network_dual_end.py remains the HTTP dual-endpoint demo and is built on ai_oriented_a2a.transport. New code should use the package module rather than copy the demo. It still runs without installing the package:

python3 examples/network_dual_end.py --role receiver --port 8002

Quick local check

python3 -c "import json; json.load(open('examples/experience-packet.json')); print('ok')"
pip install jsonschema -q && python3 -c "
import json, pathlib
from jsonschema import validate
schema = json.load(open('schema/experience-packet.schema.json'))
instance = json.load(open('examples/experience-packet.json'))
validate(instance, schema)
print('schema ok')
"

Non-normative one-round demo (not a reference implementation):

python3 examples/demo_round.py

Keywords

experience packet
absorption
proposal_id
constraint set
improvement_prefs
peer negotiation
AI-to-AI
no mandatory human mediation
no mandatory central registry
endpoint-based peer discovery
optional MCP registry listing
provenance
trajectory_replay
conditional_packet

Reviews

No reviews yet

Be the first to review this server!