A2A SPEC V1.0.1 • MCP • .MCPB V0.3 • X402/AP2 6 CHAPTERS • 28 TERMS • LLMS-FULL.TXT

A2A Protocol Wiki (v1.0.1): Architecture, AgentCard JWS, MCP Bridge, x402/AP2 & Security Encyclopedia

First-principles reference encyclopedia for Agent2Agent (A2A v1.0.1) and Model Context Protocol (MCP) engineers — grounded in 33+ merged upstream PRs (datalayer/fasta2a, hybroai/a2a-adapter, ai-boost/awesome-a2a, Lelu-ai/lelu) and zero-dependency mcp-tool-guard v0.7.0.

Cite or index the full single-file corpus in Cursor @Docs, Claude Projects, or RAG:
01 // DEEP-DIVE ENCYCLOPEDIA CHAPTERS Single-File Markdown (/llms-full.txt) →
PILLAR HUB // OVERVIEW

A2A v1.0.1 Pillar Hub: 28-Term Glossary, Quickstart Recipes & 8-Q&A Reference

YOU ARE HERE

Master lookup index uniting 28 canonical protocol definitions, copy-paste CLI/SDK verification recipes, 6 1-click .mcpb v0.3 desktop bundles, and structured FAQ answers.

02 // DEFINED PROTOCOL TERMS (28 CANONICAL ENTRIES) JCS & JWKS Spec →
AgentCard ARCH

JSON metadata document at /.well-known/agent-card.json declaring an A2A v1.0.1 agent's identity, supportedInterfaces[], capabilities, securitySchemes, skills[], and detached JWS signatures[].

supportedInterfaces[] ARCH

Mandatory A2A v1.0.1 array of {url, protocolBinding, protocolVersion, tenant?} entries replacing deprecated v0.3 top-level url and preferredTransport.

SendMessage ARCH

Canonical A2A v1.0.1 JSON-RPC 2.0 PascalCase method (replacing v0.3 message/send) dispatching a Role-tagged Message and returning a Task or direct Message.

SendStreamingMessage ARCH

A2A v1.0.1 server-sent events (SSE) streaming method (replacing v0.3 message/stream) emitting TaskStatusUpdateEvent and TaskArtifactUpdateEvent frames.

TaskState ARCH

ProtoJSON SCREAMING_SNAKE_CASE lifecycle enum: TASK_STATE_SUBMITTED, TASK_STATE_WORKING, TASK_STATE_INPUT_REQUIRED, TASK_STATE_AUTH_REQUIRED, and terminal COMPLETED / CANCELED / FAILED / REJECTED.

Part (Flat oneof) MIGRATION

Unified A2A v1.0.1 content envelope containing exactly one of text, raw (base64), url, or data plus optional mediaType and metadata — removing v0.3 kind discriminators.

ExtendedAgentCard ARCH

Authenticated card retrieved via GetExtendedAgentCard when capabilities.extendedAgentCard is true, exposing tenant-scoped private skills only after Bearer/mTLS verification.

RFC 8785 JCS CRYPTO

JSON Canonicalization Scheme ordering object keys by UTF-16 code units and formatting numbers per ECMAScript shortest round-trip rules so detached JWS signatures verify identically across languages.

RFC 7515 JWS (EdDSA) CRYPTO

Asymmetric JSON Web Signature over ASCII(base64url(protected)) + '.' + UTF8(JCS(unsigned_card)) using RFC 8032 Ed25519 keys published at /.well-known/jwks.json.

JWKS (OKP Ed25519) CRYPTO

Out-of-band JSON Web Key Set (/.well-known/jwks.json) serving public kty='OKP', crv='Ed25519', alg='EdDSA' keys matched by kid while blocking inline jwk or untrusted jku.

S4-REJECT-005 CRYPTO

Cross-SDK conformance rule rejecting duplicate JSON keys and simultaneous camelCase + snake_case field pairs (A2A_JSON_DUAL_CASE_SMUGGLING) before ProtoJSON hydration.

MCPB v0.3 (.mcpb) ARCH

ZIP-packaged MCP Desktop Bundle (manifest_version '0.3') with CWD-safe ${__dirname} stdio launcher, 256x256 icon, and user_config schema for 1-click install in Claude Desktop and IDEs.

ToolAnnotations ARCH

MCP tool behavior hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) that must be JCS-pinned alongside inputSchema and outputSchema to block silent rug-pulls.

Streamable HTTP ARCH

Modern MCP HTTP transport unifying POST JSON-RPC requests and optional SSE responses with Stateless MCP Mcp-Session-Id / Mcp-Method header-body parity.

Monotonic Attenuation ARCH

Delegation invariant (A2A-06) requiring child_grant <= parent_grant across allowed_tools, servers, scopes, expires_at, max_depth, max_spend_minor_units, and allowed_payees.

x402 v2 (HTTP 402) PAYMENTS

Machine-native HTTP 402 Payment Required protocol exchanging PAYMENT-REQUIRED challenges and signed PAYMENT-SIGNATURE authorizations for instant on-chain USDC or sBTC settlement.

EIP-3009 (Base USDC) PAYMENTS

Gasless ERC-20 transferWithAuthorization / receiveWithAuthorization signature scheme on Base Mainnet (eip155:8453, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 6 decimals) powering x402.

Stacks sBTC (X402_RELAY) PAYMENTS

Bitcoin-backed 8-decimal SIP-010 asset settled via Clarity 128-bit integer post-conditions and stateful Durable Object X402_RELAY bindings with HTTP 409 nonce guards.

AP2 CartMandate PAYMENTS

Cryptographically signed Google Agent Payments Protocol artifact binding exact line items, currency, integer minor-unit total, merchant pay_to, and TTL before PaymentMandate execution.

Integer Minor-Unit Caps PAYMENTS

FinTech rule (SPEC_CLASS_09) banning IEEE-754 floats in favor of integer atomic units (amount_minor * (10000 - fee_bps) // 10000) and bounded slippage_bps in [0, 5000].

4-Tuple Idempotency PAYMENTS

Composite primary key (tenant_id, token_id, tool_name, client_key) + args_sha256 in SQLite WAL / Postgres ON CONFLICT DO NOTHING preventing cross-tool workflow UUID collisions.

Push Webhook SSRF SECURITY

A2ABreak Vector #7 & CVE-2026-90790 attack abusing CreateTaskPushNotificationConfig URLs to hit 169.254.169.254, RFC 1918 networks, or IPv4-mapped IPv6 ::ffff:127.0.0.1.

5-Layer Tool Poisoning SECURITY

Defense-in-depth scanner catching HTML comments, BiDi Trojan Source overrides (U+202E), UTS #39 homoglyphs, $defs/annotations drift, and high-entropy exfiltration sinks.

A2A-SCA (11 SDK CVEs) SECURITY

Commit-aware lockfile vulnerability scanner covering 11 advisories across PyPI a2a-sdk/python-a2a, npm @a2a-js/sdk, Go a2a-go, Cargo a2a-rs, and Maven io.a2a.sdk.

Task FSM CAS Isolation SECURITY

Compare-and-swap state transitions binding >=128-bit CSPRNG taskId/contextId to (tenant, client_id) and rejecting illegal resurrection from terminal states (CVE-2026-118128).

HTTP 30x Header Strip SECURITY

Client defense against CVE-2026-111763 / CVE-2026-111765 stripping Authorization and X-API-Key headers whenever an HTTP 301/302/307/308 redirect crosses scheme, host, or port.

Byzantine Sybil Collapse SECURITY

Multi-agent quorum rule requiring 2f + 1 independent attestations for N = 3f + 1 verifiers while collapsing agents that share a signing kid or registrable domain to weight = 1.

Agent IQ (60-160 Scale) SECURITY

Deterministic 8-dimension conformance score IQ = 60 + round((passed / 8) * 100) with SHA-256 SVG attestation live at khoaphan.dev/a2a-iq/.

03 // INSTANT COPY-PASTE VERIFICATION RECIPES mcp-tool-guard v0.7.0 ↗
RECIPE 01 // 1-LINE LIVE AGENT-CARD + JWKS AUDIT
bash // zero-install uvx
uvx --from https://github.com/khoap1220-hue/mcp-tool-guard/releases/download/v0.7.0/mcp_tool_guard-0.7.0-py3-none-any.whl \
  a2a-card-guard audit https://khoaphan.dev --auto-jwks --strict-v1
RECIPE 02 // GITHUB ACTION SARIF V2.1.0 + 11-CVE GATE
yaml // .github/workflows/a2a-security.yml
- uses: khoap1220-hue/mcp-tool-guard@v0.7.0
  with:
    agent-card: .well-known/agent-card.json
    jwks: .well-known/jwks.json
    sarif-output: a2a-security.sarif
RECIPE 03 // CANONICAL A2A V1.0.1 SENDMESSAGE ENVELOPE
json // POST /a2a (JSONRPC binding)
{
  "jsonrpc": "2.0",
  "id": "req-9f3c2a1b",
  "method": "SendMessage",
  "params": {
    "message": {
      "messageId": "msg-71d4e802",
      "role": "ROLE_USER",
      "parts": [{ "text": "Audit /.well-known/agent-card.json JCS parity." }]
    }
  }
}
RECIPE 04 // X402 V2 BASE MAINNET USDC EXTENSION
json // capabilities.extensions[]
{
  "uri": "https://github.com/google-agentic-commerce/a2a-x402/blob/main/spec/v0.2",
  "required": false,
  "params": {
    "x402Version": 2,
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amountAtomic": "50000"
  }
}
1-CLICK .MCPB BUNDLES • MANIFEST V0.3 • ZERO RUNTIME DEPS

Install Companion A2A & MCP Verification Bundles in 1 Click

Full 9-Server .mcpb Hub →
a2a-wiki.mcpb PRIMARY

Offline A2A v1.0.1 + MCP encyclopedia search & wire-diff reference server

a2a-iq-mcp.mcpb .mcpb v0.3

8-Dimension A2A v1.0.1 & MCP Model IQ Benchmark (IQ 60-160 + SVG radar)

mcp-tool-guard.mcpb .mcpb v0.3

7-tool A2A v1.0.1 JCS/JWKS verifier, 11-CVE SCA & 5-layer MCP guard

a2a-registry-bridge-mcp.mcpb .mcpb v0.3

Bidirectional A2A v1.0.1 <-> MCP converter & RFC 8032 Ed25519 card signer

a2a-x402-guard-mcp.mcpb .mcpb v0.3

HTTP 402 x402 v2 Base USDC EIP-3009, Stacks sBTC & AP2 mandate guard

a2a-task-orchestrator-mcp.mcpb .mcpb v0.3

CAS atomic A2A TaskState FSM, 4-tuple WAL idempotency & BFT quorum

04 // FREQUENTLY ASKED QUESTIONS (A2A V1.0.1 & MCP) Test Model IQ →
What is the difference between A2A and MCP?
Model Context Protocol (MCP) is a vertical agent-to-tool and agent-to-data protocol (JSON-RPC 2.0 over stdio or Streamable HTTP) where an LLM host inspects deterministic JSON Schemas and invokes tools, resources, and prompts directly. Agent2Agent (A2A v1.0.1) is a horizontal agent-to-agent delegation protocol where autonomous peers discover signed capabilities at /.well-known/agent-card.json and collaborate over opaque, stateful Tasks (SendMessage, SendStreamingMessage, GetTask, CancelTask) without exposing internal prompts, memory, or private tool credentials.
What changed from A2A v0.3 to v1.0.1?
A2A v1.0.1 moved discovery from /.well-known/agent.json to /.well-known/agent-card.json, replaced top-level url, protocolVersion, and preferredTransport with non-empty supportedInterfaces[] ({url, protocolBinding, protocolVersion: '1.0'}), renamed slash JSON-RPC methods (message/send, tasks/get) to PascalCase (SendMessage, GetTask, CancelTask), switched task and role enums to ProtoJSON SCREAMING_SNAKE_CASE (TASK_STATE_WORKING, ROLE_USER), unified Part into a flat oneof (text, raw, url, data without a kind discriminator), and wrapped securitySchemes in explicit Proto3 oneof keys such as httpAuthSecurityScheme.
How do you sign agent-card.json with Ed25519 and RFC 8785 JCS?
Remove the top-level signatures array from the AgentCard object, serialize the remaining JSON object using RFC 8785 JSON Canonicalization Scheme (UTF-16 code unit key sorting, ECMAScript shortest number representation, compact UTF-8 with zero insignificant whitespace), build an unpadded base64url protected JWS header ({alg: 'EdDSA', cty: 'application/a2a-agent-card+json', kid: '<key-id>', typ: 'JOSE'}), sign ASCII(protected_b64) + '.' + UTF8(jcs_payload) with an RFC 8032 Ed25519 private key, and publish the matching OKP Ed25519 public key out-of-band at /.well-known/jwks.json.
What is S4-REJECT-005 in A2A ProtoJSON vs RFC 8785 JCS?
S4-REJECT-005 (flagged as A2A_JSON_DUAL_CASE_SMUGGLING) is the conformance and security guard against parser-differential signature smuggling. Standard ProtoJSON parsers accept both camelCase (defaultInputModes) and snake_case (default_input_modes) or overwrite duplicate JSON keys, whereas RFC 8785 JCS treats them as distinct lexicographical keys. A hardened A2A v1.0.1 verifier rejects duplicate keys and simultaneous snake_case/camelCase field pairs during JSON decoding before verifying JWS signatures.
What is an .mcpb bundle in MCP?
An .mcpb (MCP Bundle, formerly Desktop Extension .dxt) is a ZIP-archived single-click desktop package governed by Manifest v0.3 (manifest.json) containing a local stdio MCP server, runtime entrypoints using CWD-safe ${__dirname} paths, a 256x256 icon, typed user_config prompts, and tool declarations for zero-terminal installation in Claude Desktop, Cursor, and compatible IDEs.
How does x402 work with A2A and AP2?
x402 v2 uses HTTP 402 Payment Required headers (PAYMENT-REQUIRED / PAYMENT-SIGNATURE / PAYMENT-RESPONSE) to settle per-call machine payments such as Base Mainnet USDC (eip155:8453 via EIP-3009 transferWithAuthorization) or Stacks sBTC in exact integer atomic units. Google AP2 (Agent Payments Protocol) provides the cryptographic authorization layer above settlement via signed IntentMandate, CartMandate, and PaymentMandate objects enforcing spend caps, payee allowlists, expiry bounds, and 4-tuple idempotency locks.
What are the 2026 A2A SDK CVEs and how do you scan lockfiles for them?
Eleven 2025-2026 advisories affect official and community A2A SDKs across Python (CVE-2026-90790 webhook SSRF in a2a-sdk <= 1.1.3; CVE-2025-6167 path traversal in python-a2a < 0.5.6), TypeScript (CVE-2026-118128 Task FSM race in @a2a-js/sdk <= 1.1.0), Go (CVE-2026-116478 error leak in a2a-go <= 2.4.0), Rust (CVE-2026-113706 historyLength leak in a2a-rs <= 0.4.3), and Java/Maven (CVE-2026-90819 and CVE-2026-111761..111765 in io.a2a.sdk < 1.3.2.Final). Because several advisories are commit-mapped in OSV, run a2a-card-guard sca . across uv.lock, package-lock.json, go.mod, Cargo.lock, and pom.xml.
How is the 8-Dimension A2A & MCP Agent IQ (60-160) calculated?
The deterministic Agent IQ benchmark evaluates an LLM or autonomous agent across 8 binary/rubric protocol security dimensions (D1 Protocol Discovery, D2 RFC 8785 JCS/JWKS, D3 5-Layer Tool-Poisoning Immunity, D4 Task FSM Isolation, D5 Monotonic Scope Attenuation, D6 x402/AP2 Integer Math, D7 JSON-RPC Dual-Case Smuggling, D8 Byzantine Quorum & Sybil Collapse) using IQ = 60 + round((passed / 8) * 100), producing a SHA-256 attested scorecard from 60 to 160.
FIXED-SCOPE A2A & MCP ENGINEERING • 100% WRITTEN WORKFLOW

Need Production A2A v1.0.1 / MCP Bridging ($145–$290) or a 72h Security Hardening Audit ($450)?

I operate a transparent A2A engineering practice strictly via written channels (Email, GitHub Specs/PRs — zero live meetings), leading with Code-First PoCs, deterministic pytest/vitest suites, and $0 upfront Pay-on-Green-PR-Pass first-time trials ($145–$250).

A2A AGENT CARDv1.1.0 · VERIFIED_EDDSA
UPSTREAM TRACK33+ Merged Pull Requests
SECURITY SUITEmcp-tool-guard v0.7.0 (0 Deps)
WRITTEN SLA< 2–4h Initial Async Reply