A2A IQ MCP
Deterministic 8-dimension A2A v1.0.1 & MCP conformance benchmark, .mcpb v0.3 linter, and CI gate
Documentation
a2a-iq-mcp — 8-Dimension A2A v1.0.1 & MCP Agent IQ Benchmark Suite (v2.0.0)
a2a-iq-mcp (v2.0.0) is a zero-API-key, zero-dependency, deterministic IQ & Security Conformance Benchmark MCP Server & GitHub Action (Python 3.10+ stdlib only) for testing any LLM or autonomous agent's real-world A2A v1.0.1 + MCP 2026-07-28 engineering IQ (60–160 scale, Mean = 100, SD = 15) across quick (8 items), full (24 items), and gauntlet (40 items) modes, auditing .mcpb v0.3 desktop bundles, stress-testing x402 v2 / AP2 payment mandates, verifying RFC 8032 Ed25519 + RFC 8785 JCS certificates offline, and gating CI pipelines with OASIS SARIF v2.1.0.
Install in 1 click (.mcpb), uvx, GitHub Actions (uses: khoap1220-hue/a2a-iq-mcp@v2), or Docker, or explore the free interactive browser lab at khoaphan.dev/a2a-iq, then trigger /gauntlet-40q-deep-audit or /benchmark-this-model in Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, CrewAI, LangGraph, or FastA2A:
Run a 40-question gauntlet A2A IQ test on yourself using a2a-iq-mcp, verify the Ed25519 attestation, and show my scorecard!
Quick Install (0 API Keys, 0 External Dependencies)
Option 1 — 1-Click Offline .mcpb Bundle (Claude Desktop)
Download a2a-iq-mcp.mcpb from the v2.0.0 Release and drag it into Claude Desktop -> Settings -> Extensions. Includes crisp 256x256 icon, 12 read-only tools, 5 slash-prompts, and 2 calibration resources; boots offline in <25ms from any external cwd with 0 environment variables.
Option 2 — 0.3s Instant Run via uvx (.whl)
uvx --from https://github.com/khoap1220-hue/a2a-iq-mcp/releases/latest/download/a2a_iq_mcp-2.0.0-py3-none-any.whl a2a-iq-mcp selftest --mode gauntlet
Option 3 — Claude Code CLI (claude mcp add)
claude mcp add a2a-iq-mcp -- uvx --from https://github.com/khoap1220-hue/a2a-iq-mcp/releases/latest/download/a2a_iq_mcp-2.0.0-py3-none-any.whl a2a-iq-mcp-server
Option 4 — GitHub Actions CI Security Gate (< 2s, Zero pip install, OASIS SARIF v2.1.0)
- name: Gate A2A AgentCard & .mcpb Bundle
uses: khoap1220-hue/a2a-iq-mcp@v2
with:
card: ".well-known/agent-card.json"
mcpb: "dist/my-server.mcpb"
min-iq: "130"
sarif-out: "a2a-iq-results.sarif"
- name: Upload SARIF to GitHub Code Scanning
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "a2a-iq-results.sarif"
Option 5 — Cursor / Windsurf / Claude Desktop JSON Config
{
"mcpServers": {
"a2a-iq-mcp": {
"command": "uvx",
"args": [
"--from",
"https://github.com/khoap1220-hue/a2a-iq-mcp/releases/latest/download/a2a_iq_mcp-2.0.0-py3-none-any.whl",
"a2a-iq-mcp-server"
]
}
}
}
Option 6 — Docker (python:3.12-slim, Non-Root)
docker build -t a2a-iq-mcp .
docker run -i --rm a2a-iq-mcp
What It Measures: The 8 A2A & MCP Cognitive/Security Dimensions (40Q Gauntlet)
Every iq_start_session call mints an HMAC-SHA256 challenge token with dynamically parameterized ports, minor-unit amounts, key IDs, timestamps, and trap payloads (8 scenarios in quick mode, 24 in full mode, 40 in gauntlet mode = 5 per dimension). Every graded session in iq_submit_answers emits a verifiable RFC 8032 Ed25519 + RFC 8785 JCS Compact JWS Certificate.
| ID | Dimension | Weight | Real-World Failure Traps Tested (v2.0.0 40Q Gauntlet) |
|---|---|---|---|
D1_PROTOCOL_DISCOVERY | A2A v1.0.1 Discovery & Binding | 12.5% | /.well-known/agent-card.json vs agent.json dual-card split-brain, supportedInterfaces selection, and agent/getAuthenticatedExtendedCard CDN cache/header leak gating. |
D2_CRYPTO_JCS_JWKS | RFC 8785 JCS & JWKS Provenance | 13.5% | -0.0 normalization, UTF-16 surrogate key order (U+1F680 vs U+E000), A2A#2122 cleanEmpty() vs raw JCS divergence, alg:none downgrade, inline jwk/jku header injection, and 169.254.169.254 SSRF jwks_uri. |
D3_ADVERSARIAL_IMMUNITY | MCP Tool-Poisoning, .mcpb & Rug-Pulls | 14.0% | 5-layer <IMPORTANT> injection, Unicode Tag/Bidi smuggling, readOnlyHint rug-pulls, .mcpb v0.3 unexpanded ${user_config.*} cold-start crashes, and stealth outputSchema.$defs prompt poisoning. |
D4_STATE_MACHINE_RECOVERY | Multi-Hop Task FSM, CAS & Tenant IDOR | 12.0% | Terminal COMPLETED/CANCELED -> WORKING resurrection under SQLite-WAL CAS races, AgentInterface.tenant cross-tenant IDOR, -32602 vs -32001 vs HTTP 503 triage, and HTTP 504 idempotency. |
D5_SCOPE_ATTENUATION | 3-Hop OAuth/JWT & Warrant Attenuation | 12.0% | RFC 8693 least-privilege downscoping, multi-hop allowed_payees omission (arXiv:2612.03456v1), wildcard a2a:* inflation rejection, header stripping, and strict aud + SLA TTL bounds. |
D6_ECONOMIC_X402_SAFETY | Exact Minor-Unit x402 & AP2 Math | 12.5% | SPEC_CLASS_09 zero-float minor units (USDC 6-dec, JPY 0-dec, KWD 3-dec), integer floor fee math, negative slippage traps, EIP-3009 zero-nonce replay, and stacks:1 sBTC post_condition_mode="deny". |
D7_SCHEMA_PRECISION | JSON Schema 2020-12 & S4-REJECT-005 | 11.0% | Closed payloads (additionalProperties: false), oneOf, uniqueItems: true, S4-REJECT-005 camelCase + snake_case shadow key collisions (messageId + message_id), and -32700/-32600 framing. |
D8_BYZANTINE_CONSENSUS | Byzantine Quorum & Sybil Resistance | 12.5% | Fresh Ed25519 peer reconciliation, 2-of-3 safety quorum halts, SHA-256 hash-chain tamper audit, and 2f + 1 Sybil clone collapse across shared kid and shared registrable eTLD+1 domains. |
12 Built-In Read-Only MCP Tools (v2.0.0)
All 12 tools set readOnlyHint: true and destructiveHint: false, requiring 0 environment variables on startup:
iq_start_session(mode="quick" | "full" | "gauntlet", seed_tag=...)— Generates an HMAC-signedsession_tokenand8(quick),24(full), or40(gauntlet) parameterized scenarios without exposing the answer key.iq_submit_answers(session_token, model_name, answers)— Grades answers onto60–160IQ, returning radar scores, diagnostics, pure-Python Ed25519attestation_jwscertificate, SHA-256 Receipt, and Shields.io badge Markdown.iq_probe_live_a2a_agent(target_url, strict_v1=True)— Actively audits any public HTTPS A2A agent's/.well-known/agent-card.json+/.well-known/jwks.jsonunder the SSRF DNS-pinning guard (0–100Readiness Score).iq_audit_mcp_toolset_quality(tools_json)— Audits any MCP server'stools/listJSON (0–100) across schema completeness,readOnlyHinttruthfulness, token efficiency, and 5-layer anti-poisoning.iq_render_scorecard_svg(model_name, iq_score, tier, dimension_scores, baseline_scores, baseline_label)— Renders a self-contained840x320dark-mode SVG Radar & IQ Certificate with optional 2-polygon baseline comparison overlay.iq_reference_tiers()— Returns the complete 8-dimension weights,quick/full/gauntletmode specs, protocol baselines, and IQ calibration curve.iq_compare_a2a_agents(agent_urls, strict_v1=True, include_svg=True)— Concurrently probes2to5public HTTPS A2A agents under the SSRF DNS-pinning guard with a ranked Markdown leaderboard +860x340comparative SVG.iq_generate_remediation_plan(dimension_scores, probe_findings, target_name, max_steps=5)— Emits prioritized, runnable Python guardrails (RFC 8785 JCS,S4-REJECT-005allowlist,ToolAnnotationspinning,x402integer math, OAuth attenuation).iq_audit_mcpb_bundle(bundle_target)— Audits a.mcpbarchive path, unpacked directory, or rawmanifest.jsonagainst Anthropic.mcpbManifestv0.3zero-crash gates (manifest_version == "0.3",256x256icon.png,prompts[],${__dirname}external-cwdsafety, unexpanded${user_config.*}templates, and archive bloat), returningmcpb_iq(60–160),passed, andfindings[].iq_stress_test_x402_mandate(mandate)— Stress-tests anx402 v2payment payload orAP2mandate (SPEC_CLASS_09float rejection, negativeslippage_bpsrejection,eip155:8453Base USDC /stacks:1sBTCpost_condition_mode="deny", non-zero 32-byte EIP-3009 nonce,allowed_payeesbinding, and 4-tuple idempotency), returningpayment_iq(60–160),passed, andviolations[].iq_verify_attestation_jws(compact_jws, jwks=...)— Offline pure-Python RFC 8032 Ed25519 + RFC 8785 JCS verifier for anyA2A-IQ v2.0compact_jwsorhttps://khoaphan.dev/a2a-iq/?cert=<jws>URL (pre-loaded with officialTRUSTED_IQ_JWKSfora2a-live-nodeandkhoaphan.dev).iq_export_ci_sarif(target, min_iq=130, target_type="auto")— Evaluates an AgentCard JSON/URL,.mcpbmanifest/path, or IQ session result againstmin_iqand emits valid OASIS SARIFv2.1.0JSON + GitHub Actions$GITHUB_STEP_SUMMARYMarkdown table.
5 Slash-Prompts & 2 Calibration Resources
Slash-Prompts (prompts/list & prompts/get)
benchmark-this-model(mode?) — Launches an8-,24-, or40-scenario session, solves every item, submits viaiq_submit_answers, and renders your SVG IQ Certificate.compare-live-a2a-agents(urls_csv) — Benchmarks 2 to 5 live A2A URLs head-to-head and generates a prioritized code-level remediation report.audit-mcpb-bundle-quality(tools_json) — Audits an MCP server'stools/listJSON and emits JSON Schema2020-12+ToolAnnotationsupgrades.gauntlet-40q-deep-audit(seed_tag?) — Runs the full 40-questiongauntletsession, verifies the Ed25519attestation_jwsoffline, and renders a 2-polygon baseline overlay SVG.ci-gate-sarif-check(target,min_iq?) — Runsiq_export_ci_sariffor CI gating and generates prioritized remediation code for any flagged rule.
Built-In Resources (resources/list & resources/read)
a2a-iq://leaderboard/reference-tiers(application/json) — Reference calibration profiles (oracle-perfect-v1IQ 160down tonaive-fragile-baseline-v0IQ 72).a2a-iq://rubric/8-dimensions-v1.1(text/markdown) — DetailedD1..D8basis weights, 40Q gauntlet coverage, live comparison scoring breakdown, and canonical test vectors.
CLI Usage (a2a-iq-mcp)
# Run deterministic selftest across quick (8Q), full (24Q), or gauntlet (40Q)
a2a-iq-mcp selftest --mode gauntlet --json
# Run CI security gate on an AgentCard and/or .mcpb bundle (exits 0 on pass, 2 on fail/CRITICAL)
a2a-iq-mcp ci-gate --card .well-known/agent-card.json --mcpb dist/a2a-iq-mcp.mcpb --min-iq 130 --sarif-out results.sarif --summary-out summary.md
# Probe any live HTTPS A2A v1.0.1 node's Well-Known AgentCard & Ed25519 JWKS
a2a-iq-mcp probe https://khoaphan.dev --json
# Compare 2 to 5 live HTTPS A2A agents head-to-head
a2a-iq-mcp compare https://khoaphan.dev https://a2a-live-node.p-khoa90.workers.dev
# Render a standalone 840x320 dark-mode SVG IQ certificate
a2a-iq-mcp render-svg --model "Claude 4.5 Sonnet" --iq 155 --out scorecard.svg
Sibling Official Anthropic MCP Servers & A2A Security Ecosystem
a2a-iq-mcp is part of an open-source suite of 8 Official Anthropic MCP Registry servers and zero-dependency A2A v1.0.1 security tooling maintained by Khoa Phan (khoaphan.dev):
| Server / Package | Registry ID / Repo | Focus |
|---|---|---|
a2a-iq-mcp | io.github.khoap1220-hue/a2a-iq-mcp | 8-Dimension A2A v1.0.1 & MCP Agent IQ Suite (60–160 IQ, 12 tools, 40Q Gauntlet, SARIF CI Gate) |
mcp-tool-guard | io.github.khoap1220-hue/mcp-tool-guard | Runtime guardrails: 5-layer tool-poisoning scan, JCS/JWKS verifier, x402 cap & 11-CVE lockfile SCA |
anythingllm-mcp | io.github.khoap1220-hue/anythingllm-mcp | AnythingLLM workspaces, RAG chat, vector search & workspace ACLs |
caido-mcp | io.github.khoap1220-hue/caido-mcp | Caido HTTP security proxy & GraphQL traffic auditing |
wakatime-mcp | io.github.khoap1220-hue/wakatime-mcp | Developer coding telemetry, language breakdowns & project analytics |
shopnex-mcp | io.github.khoap1220-hue/shopnex-mcp | Headless e-commerce catalog, order & fulfillment automation |
trefle-mcp | io.github.khoap1220-hue/trefle-mcp | Botanical taxonomy & scientific plant dataset queries |
blender-mcp-suite | io.github.khoap1220-hue/blender-mcp-suite | Deterministic 3D scene assembly & asset validation |
Need custom A2A v1.0.1 multi-agent architecture, cryptographic JCS/JWKS hardening, x402 settlement guardrails, or enterprise MCP server engineering? Explore the free browser benchmark lab at khoaphan.dev/a2a-iq or commission a written async hardening sprint (100% asynchronous written engineering via GitHub Issues/PRs and email — zero live meetings, with Code-First PoCs and automated test suites delivered upfront): khoaphan.dev/services.
License
MIT © Khoa Phan