Repository avatar
AI Tools
v1.0.0
active

a2a-wiki

io.github.khoap1220-hue/a2a-wiki

Offline BM25 A2A v1.0.1, agent-card JWS, MCPB v0.3 & x402/AP2 documentation wiki for LLMs.

Documentation

The Open A2A v1.0.1 & .mcpb Engineering Wiki (a2a-wiki)

CI MCP Registry A2A Spec MCPB Bundle Zero Dependencies License: MIT

"The Context7 for A2A v1.0.1, Anthropic .mcpb v0.3, RFC 8785 JCS, x402 & AP2."
Canonical Web Edition: https://khoaphan.dev/a2a-wiki/ · Live Agent IQ Benchmark: https://khoaphan.dev/a2a-iq/

A2A v1.0.1 & MCPB Engineering Wiki Architecture


Why This Wiki & Offline .mcpb Server Exist

Base LLMs suffer from severe post-training-cutoff hallucinations when generating multi-agent and MCP bundle code:

  • Emitting removed A2A v0.3 methods ("message/send", "tasks/get") instead of normative A2A v1.0.1 PascalCase ("SendMessage", "GetTask", "SendStreamingMessage").
  • Emitting lowercase "role": "user" or tagged "kind": "text" parts instead of strict ProtoJSON "ROLE_USER", "TASK_STATE_*", and flattened Part oneof ({"text": "..."}).
  • Injecting "homepage" or "license" at the root of /.well-known/agent-card.json, triggering S4-REJECT-005 strict ProtoJSON unmarshalling failures and cross-SDK Ed25519 JWS signature breakage.
  • Writing bare "args": ["launcher.py"] without "${__dirname}" inside Anthropic .mcpb v0.3 manifests, causing instant FileNotFoundError crashes in Claude Desktop.
  • Using IEEE-754 float numbers (0.25) instead of exact integer minor-unit strings ("250000") in x402 HTTP 402 and AP2 (Agent Payments Protocol) mandates.

khoap1220-hue/a2a-wiki solves this for both humans and AI coding agents:

  1. For Engineers & Architects: 24 structured, machine-verified RAW -> SPEC -> TECH reference articles in wiki/ and at khoaphan.dev/a2a-wiki.
  2. For Claude Desktop, Cursor, Windsurf & VS Code (io.github.khoap1220-hue/a2a-wiki): A zero-dependency Python >=3.10 stdlib Okapi BM25 MCP Server (< 20ms cold boot) with 6 grounding tools, 3 slash prompts, and 3 instant wire-format cheatsheet resources—working 100% offline with zero API keys.

Quick Install (Claude Desktop, Cursor, Windsurf & VS Code)

Option 1 — One-Click .mcpb Desktop Extension (Claude Desktop)

Download a2a-wiki.mcpb from the latest GitHub Release and drag it into Claude Desktop -> Settings -> Extensions. Zero pip install or environment variables required.

Option 2 — Zero-Install uvx Prebuilt Wheel (<0.6s Cold Boot, 0 Dependencies)

# Run CLI selftest or BM25 search directly with zero install
uvx --from https://github.com/khoap1220-hue/a2a-wiki/releases/latest/download/a2a_wiki-1.0.0-py3-none-any.whl a2a-wiki selftest

# Register stdio MCP server in Claude Code CLI
claude mcp add a2a-wiki -- uvx --from https://github.com/khoap1220-hue/a2a-wiki/releases/latest/download/a2a_wiki-1.0.0-py3-none-any.whl a2a-wiki-server

Option 3 — Cursor / Windsurf / VS Code mcp.json

{
  "mcpServers": {
    "a2a-wiki": {
      "command": "a2a-wiki-server",
      "args": []
    }
  }
}

Complete Knowledge Base Table of Contents (24 Verified RAW -> SPEC -> TECH Articles)

Every article follows a deterministic YAML frontmatter graph (id, type, title, protocol_version, tags, canonical_url, source_ids, updated_at) verified on every commit via wiki_validate_frontmatter_graph.

Lane 1 — RAW Upstream Changelogs & Threat Intakes (4 Docs)

IDTopic & ProtocolRepo MarkdownWeb Canonical URL
RAW-001A2A v0.3 -> v1.0.1 Breaking Wire Changelogwiki/raw-001-a2a-v03-to-v101-breaking-changes.mdkhoaphan.dev/a2a-wiki/raw-001-a2a-v03-to-v101-breaking-changes/
RAW-002Anthropic .mcpb v0.3 & Official MCP Registry Intakewiki/raw-002-anthropic-mcpb-v03-bundle-intake.mdkhoaphan.dev/a2a-wiki/raw-002-anthropic-mcpb-v03-bundle-intake/
RAW-003x402 HTTP 402 & AP2 Agentic Payments Intakewiki/raw-003-x402-ap2-agentic-payments-intake.mdkhoaphan.dev/a2a-wiki/raw-003-x402-ap2-agentic-payments-intake/
RAW-004MCP & A2A Security Advisories & CVEs (2025–2026)wiki/raw-004-mcp-a2a-security-advisories-2025-2026.mdkhoaphan.dev/a2a-wiki/raw-004-mcp-a2a-security-advisories-2025-2026/

Lane 2 — SPEC Normative Protocol & Cryptography Specifications (10 Docs)

IDNormative SpecificationRepo MarkdownWeb Canonical URL
SPEC-001A2A v1.0.1 AgentCard (/.well-known/agent-card.json) Schemawiki/spec-001-a2a-v101-agent-card-schema.mdkhoaphan.dev/a2a-wiki/spec-001-a2a-v101-agent-card-schema/
SPEC-002A2A v1.0.1 JSON-RPC PascalCase Methods & SSE Streamingwiki/spec-002-a2a-v101-jsonrpc-methods-and-streaming.mdkhoaphan.dev/a2a-wiki/spec-002-a2a-v101-jsonrpc-methods-and-streaming/
SPEC-003ProtoJSON SCREAMING_SNAKE_CASE Enums & Flattened Part Unionswiki/spec-003-a2a-protojson-enums-and-part-unions.mdkhoaphan.dev/a2a-wiki/spec-003-a2a-protojson-enums-and-part-unions/
SPEC-004RFC 8785 JCS Canonicalization & RFC 8032 Ed25519 AgentCard JWSwiki/spec-004-rfc8785-jcs-and-ed25519-agent-card-jws.mdkhoaphan.dev/a2a-wiki/spec-004-rfc8785-jcs-and-ed25519-agent-card-jws/
SPEC-005S4-REJECT-005 Strict ProtoJSON Unmarshalling & Root Whitelistwiki/spec-005-s4-reject-005-protojson-strict-conformance.mdkhoaphan.dev/a2a-wiki/spec-005-s4-reject-005-protojson-strict-conformance/
SPEC-006Anthropic .mcpb v0.3 Manifest Schema & ${__dirname} Layoutwiki/spec-006-mcpb-v03-manifest-and-packaging.mdkhoaphan.dev/a2a-wiki/spec-006-mcpb-v03-manifest-and-packaging/
SPEC-007Official MCP Registry server.json (2025-12-11) & GitHub OIDCwiki/spec-007-mcp-registry-server-json-and-oidc.mdkhoaphan.dev/a2a-wiki/spec-007-mcp-registry-server-json-and-oidc/
SPEC-008x402 v2 HTTP 402 Micropayments, Minor Units & Nonce Replaywiki/spec-008-x402-http-402-micropayments.mdkhoaphan.dev/a2a-wiki/spec-008-x402-http-402-micropayments/
SPEC-009AP2 (Agent Payments Protocol) IntentMandate & CartMandatewiki/spec-009-ap2-agent-payments-protocol-mandates.mdkhoaphan.dev/a2a-wiki/spec-009-ap2-agent-payments-protocol-mandates/
SPEC-010MCP 2026 vs A2A v1.0.1 Boundary & Security Advisory Matrixwiki/spec-010-mcp-2026-vs-a2a-v101-security-and-cve-matrix.mdkhoaphan.dev/a2a-wiki/spec-010-mcp-2026-vs-a2a-v101-security-and-cve-matrix/

Lane 3 — TECH Framework Guides & Production Zero-Dep Code Recipes (10 Docs)

IDImplementation Guide / Code RecipeRepo MarkdownWeb Canonical URL
TECH-001FastA2A & Pydantic-AI ASGI Guide for Strict A2A v1.0.1wiki/tech-001-fasta2a-pydantic-ai-v101-guide.mdkhoaphan.dev/a2a-wiki/tech-001-fasta2a-pydantic-ai-v101-guide/
TECH-002a2a-adapter (LangGraph/CrewAI) & A2A <-> MCP Skill Bridgewiki/tech-002-a2a-adapter-langgraph-crewai-mcp-bridge.mdkhoaphan.dev/a2a-wiki/tech-002-a2a-adapter-langgraph-crewai-mcp-bridge/
TECH-003Pure-Python RFC 8032 Ed25519 + RFC 8785 JCS Signer Recipewiki/tech-003-python-ed25519-jcs-agent-card-signer.mdkhoaphan.dev/a2a-wiki/tech-003-python-ed25519-jcs-agent-card-signer/
TECH-004Sub-20ms Zero-Dep Python .mcpb Launcher & Dual stdio Framingwiki/tech-004-python-zero-dep-mcpb-launcher-pattern.mdkhoaphan.dev/a2a-wiki/tech-004-python-zero-dep-mcpb-launcher-pattern/
TECH-005TypeScript esbuild Single-File Offline .mcpb v0.3 Bundlerwiki/tech-005-ts-esbuild-offline-mcpb-bundler.mdkhoaphan.dev/a2a-wiki/tech-005-ts-esbuild-offline-mcpb-bundler/
TECH-006x402 Integer Minor-Unit Math & HTTP 409 Nonce Guard Recipewiki/tech-006-x402-minor-unit-and-nonce-guard.mdkhoaphan.dev/a2a-wiki/tech-006-x402-minor-unit-and-nonce-guard/
TECH-007AP2 + x402 Bound Mandate Checkout Over A2A SendMessagewiki/tech-007-ap2-x402-bound-mandate-checkout-flow.mdkhoaphan.dev/a2a-wiki/tech-007-ap2-x402-bound-mandate-checkout-flow/
TECH-008SQLite WAL Crash-Safe Idempotent Webhook & Task Store Recipewiki/tech-008-sqlite-wal-idempotent-webhook-and-task-store.mdkhoaphan.dev/a2a-wiki/tech-008-sqlite-wal-idempotent-webhook-and-task-store/
TECH-009SSRF-Guarded & DNS-Pinned HTTPS AgentCard Discoverywiki/tech-009-ssrf-dns-pinned-agent-card-discovery.mdkhoaphan.dev/a2a-wiki/tech-009-ssrf-dns-pinned-agent-card-discovery/
TECH-010Post-Cutoff LLM Hallucination Linter Ruleset & Migration Playbookwiki/tech-010-llm-hallucination-linter-and-migration-playbook.mdkhoaphan.dev/a2a-wiki/tech-010-llm-hallucination-linter-and-migration-playbook/

MCP Tools, Slash Prompts & Resources Reference

6 Read-Only Grounding Tools (readOnlyHint: true)

Tool NamePurposeKey Inputs
wiki_searchSub-millisecond Okapi BM25 search across all 24 articlesquery, doc_type (RAW/SPEC/TECH), tag, limit
wiki_get_articleFull Markdown spec, parsed JSON schemas & code blocksidentifier (doc_id, slug, or alias like "agent-card", "x402")
wiki_compare_protocolsSide-by-side matrices (A2A v1.0.1 vs MCP 2026, v0.3 vs v1.0.1, x402 vs AP2, .mcpb v0.2 vs v0.3)comparison
wiki_check_hallucinationDeterministic linter catching v0.3 RPCs, S4-REJECT-005, missing ${__dirname}, and x402 floatssnippet, artifact_hint
wiki_get_code_recipeCopy-paste zero-dep Python/TypeScript production recipesrecipe_id (5 built-in recipes)
wiki_validate_frontmatter_graphVerify RAW -> SPEC -> TECH YAML frontmatter & source_ids DAGwiki_dir (defaults to bundled wiki/), strict_coverage

3 Slash Prompts & 3 Built-in Resources

TypeIdentifierDescription
Promptground-llm-on-a2a-v1Ground coding agent on A2A v1.0.1 ProtoJSON & S4-REJECT-005 before codegen
Promptcheck-code-for-a2a-v03-hallucinationsAudit generated JSON/code against post-cutoff v0.3, .mcpb, and x402 traps
Promptcompare-a2a-vs-mcp-architectureArchitectural decision matrix for MCP tools vs A2A remote peers & AP2/x402
Resourcea2a-wiki://index/catalogComplete JSON catalog of all 24 RAW, SPEC, and TECH articles
Resourcea2a-wiki://cheatsheet/v1.0.1-wire-formatInstant A2A v1.0.1 methods, enums, Part oneof & S4-REJECT-005 cheatsheet
Resourcea2a-wiki://cheatsheet/mcpb-v0.3-manifestInstant .mcpb v0.3 (${__dirname}) & server.json (<= 100 chars) cheatsheet

Instant A2A v0.3 -> v1.0.1 Cheatsheet

SurfaceHallucinated v0.3 (Fails!)Normative v1.0.1 (Strict ProtoJSON)
Discovery URI/.well-known/agent.json/.well-known/agent-card.json
Endpoint FieldRoot "url": "https://...""supportedInterfaces": [{"url": "https://...", "protocolBinding": "JSONRPC", "protocolVersion": "1.0"}]
Send & Stream"message/send", "tasks/sendSubscribe""SendMessage", "SendStreamingMessage"
Task Ops"tasks/get", "tasks/cancel""GetTask", "ListTasks", "CancelTask", "SubscribeToTask"
Enums"role": "user", "state": "working""role": "ROLE_USER", "state": "TASK_STATE_WORKING"
Part Union{"kind": "text", "text": "..."}{"text": "..."} (no "kind" or "type" discriminator!)

CLI Usage & Local Verification

# Run deterministic offline self-test (BM25 + DAG + Linter + 5 Recipes)
a2a-wiki selftest --json

# Search articles from terminal
a2a-wiki search "S4-REJECT-005 AgentCard"

# Validate RAW -> SPEC -> TECH frontmatter graph
a2a-wiki validate-graph

# Lint an LLM-generated file for v0.3 / MCPB / x402 hallucinations
a2a-wiki lint path/to/agent-card.json

Companion Ecosystem & Written A2A Architecture Sprints

License

MIT © Khoa Phan