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 — Zero-Dependency 8-Dimension A2A v1.0.1 & MCP Agent IQ Benchmark

Official Anthropic MCP Registry Glama MCP Server Release v2.0.0 Interactive Browser Lab Zero Dependencies Tests Passed MIT License

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!

Sample A2A IQ 155 S+ Sovereign Architect Radar Certificate


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.

IDDimensionWeightReal-World Failure Traps Tested (v2.0.0 40Q Gauntlet)
D1_PROTOCOL_DISCOVERYA2A v1.0.1 Discovery & Binding12.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_JWKSRFC 8785 JCS & JWKS Provenance13.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_IMMUNITYMCP Tool-Poisoning, .mcpb & Rug-Pulls14.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_RECOVERYMulti-Hop Task FSM, CAS & Tenant IDOR12.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_ATTENUATION3-Hop OAuth/JWT & Warrant Attenuation12.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_SAFETYExact Minor-Unit x402 & AP2 Math12.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_PRECISIONJSON Schema 2020-12 & S4-REJECT-00511.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_CONSENSUSByzantine Quorum & Sybil Resistance12.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:

  1. iq_start_session(mode="quick" | "full" | "gauntlet", seed_tag=...) — Generates an HMAC-signed session_token and 8 (quick), 24 (full), or 40 (gauntlet) parameterized scenarios without exposing the answer key.
  2. iq_submit_answers(session_token, model_name, answers) — Grades answers onto 60–160 IQ, returning radar scores, diagnostics, pure-Python Ed25519 attestation_jws certificate, SHA-256 Receipt, and Shields.io badge Markdown.
  3. 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.json under the SSRF DNS-pinning guard (0–100 Readiness Score).
  4. iq_audit_mcp_toolset_quality(tools_json) — Audits any MCP server's tools/list JSON (0–100) across schema completeness, readOnlyHint truthfulness, token efficiency, and 5-layer anti-poisoning.
  5. iq_render_scorecard_svg(model_name, iq_score, tier, dimension_scores, baseline_scores, baseline_label) — Renders a self-contained 840x320 dark-mode SVG Radar & IQ Certificate with optional 2-polygon baseline comparison overlay.
  6. iq_reference_tiers() — Returns the complete 8-dimension weights, quick/full/gauntlet mode specs, protocol baselines, and IQ calibration curve.
  7. iq_compare_a2a_agents(agent_urls, strict_v1=True, include_svg=True) — Concurrently probes 2 to 5 public HTTPS A2A agents under the SSRF DNS-pinning guard with a ranked Markdown leaderboard + 860x340 comparative SVG.
  8. iq_generate_remediation_plan(dimension_scores, probe_findings, target_name, max_steps=5) — Emits prioritized, runnable Python guardrails (RFC 8785 JCS, S4-REJECT-005 allowlist, ToolAnnotations pinning, x402 integer math, OAuth attenuation).
  9. iq_audit_mcpb_bundle(bundle_target) — Audits a .mcpb archive path, unpacked directory, or raw manifest.json against Anthropic .mcpb Manifest v0.3 zero-crash gates (manifest_version == "0.3", 256x256 icon.png, prompts[], ${__dirname} external-cwd safety, unexpanded ${user_config.*} templates, and archive bloat), returning mcpb_iq (60–160), passed, and findings[].
  10. iq_stress_test_x402_mandate(mandate) — Stress-tests an x402 v2 payment payload or AP2 mandate (SPEC_CLASS_09 float rejection, negative slippage_bps rejection, eip155:8453 Base USDC / stacks:1 sBTC post_condition_mode="deny", non-zero 32-byte EIP-3009 nonce, allowed_payees binding, and 4-tuple idempotency), returning payment_iq (60–160), passed, and violations[].
  11. iq_verify_attestation_jws(compact_jws, jwks=...) — Offline pure-Python RFC 8032 Ed25519 + RFC 8785 JCS verifier for any A2A-IQ v2.0 compact_jws or https://khoaphan.dev/a2a-iq/?cert=<jws> URL (pre-loaded with official TRUSTED_IQ_JWKS for a2a-live-node and khoaphan.dev).
  12. iq_export_ci_sarif(target, min_iq=130, target_type="auto") — Evaluates an AgentCard JSON/URL, .mcpb manifest/path, or IQ session result against min_iq and emits valid OASIS SARIF v2.1.0 JSON + GitHub Actions $GITHUB_STEP_SUMMARY Markdown table.

5 Slash-Prompts & 2 Calibration Resources

Slash-Prompts (prompts/list & prompts/get)

  • benchmark-this-model (mode?) — Launches an 8-, 24-, or 40-scenario session, solves every item, submits via iq_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's tools/list JSON and emits JSON Schema 2020-12 + ToolAnnotations upgrades.
  • gauntlet-40q-deep-audit (seed_tag?) — Runs the full 40-question gauntlet session, verifies the Ed25519 attestation_jws offline, and renders a 2-polygon baseline overlay SVG.
  • ci-gate-sarif-check (target, min_iq?) — Runs iq_export_ci_sarif for 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-v1 IQ 160 down to naive-fragile-baseline-v0 IQ 72).
  • a2a-iq://rubric/8-dimensions-v1.1 (text/markdown) — Detailed D1..D8 basis 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 / PackageRegistry ID / RepoFocus
a2a-iq-mcpio.github.khoap1220-hue/a2a-iq-mcp8-Dimension A2A v1.0.1 & MCP Agent IQ Suite (60–160 IQ, 12 tools, 40Q Gauntlet, SARIF CI Gate)
mcp-tool-guardio.github.khoap1220-hue/mcp-tool-guardRuntime guardrails: 5-layer tool-poisoning scan, JCS/JWKS verifier, x402 cap & 11-CVE lockfile SCA
anythingllm-mcpio.github.khoap1220-hue/anythingllm-mcpAnythingLLM workspaces, RAG chat, vector search & workspace ACLs
caido-mcpio.github.khoap1220-hue/caido-mcpCaido HTTP security proxy & GraphQL traffic auditing
wakatime-mcpio.github.khoap1220-hue/wakatime-mcpDeveloper coding telemetry, language breakdowns & project analytics
shopnex-mcpio.github.khoap1220-hue/shopnex-mcpHeadless e-commerce catalog, order & fulfillment automation
trefle-mcpio.github.khoap1220-hue/trefle-mcpBotanical taxonomy & scientific plant dataset queries
blender-mcp-suiteio.github.khoap1220-hue/blender-mcp-suiteDeterministic 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