a2a-iq-mcp
README.md
# `a2a-iq-mcp` — 8-Dimension A2A v1.0.1 & MCP Agent IQ Benchmark Suite
<p align="center">
<img src="assets/hero-iq-banner.svg" alt="a2a-iq-mcp — Zero-Dependency 8-Dimension A2A v1.0.1 & MCP Agent IQ Benchmark" width="100%"/>
</p>
<p align="center">
<a href="https://registry.modelcontextprotocol.io/?q=io.github.khoap1220-hue%2Fa2a-iq-mcp"><img src="https://img.shields.io/badge/MCP_Registry-io.github.khoap1220--hue%2Fa2a--iq--mcp-00d68f?style=flat-square" alt="Official Anthropic MCP Registry"/></a>
<a href="https://glama.ai/mcp/servers/khoap1220-hue/a2a-iq-mcp"><img src="https://img.shields.io/badge/Glama-MCP_Server-38bdf8?style=flat-square" alt="Glama MCP Server"/></a>
<a href="https://github.com/khoap1220-hue/a2a-iq-mcp/releases/tag/v1.0.0"><img src="https://img.shields.io/badge/Release-v1.0.0_(.mcpb_%2B_.whl)-818cf8?style=flat-square" alt="Release v1.0.0"/></a>
<img src="https://img.shields.io/badge/Dependencies-0_(Pure_Stdlib)-2ea043?style=flat-square" alt="Zero Dependencies"/>
<img src="https://img.shields.io/badge/Tests-66_Passed-2ea043?style=flat-square" alt="66 Tests Passed"/>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue?style=flat-square" alt="MIT License"/></a>
</p>
**`a2a-iq-mcp`** is a **zero-API-key, zero-dependency, deterministic IQ & Security Conformance Benchmark MCP Server** (`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`)**.
Install in 1 click (`.mcpb`), `uvx`, or Docker, then paste a single prompt into **Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, CrewAI, LangGraph, or FastA2A** to generate a cryptographic **SHA-256 Scorecard Receipt**, **Shields.io Badge**, and **8-Dimension Dark-Mode SVG Radar Certificate**:
```text
Run a full A2A IQ test on yourself using a2a-iq-mcp and show my scorecard!
```
<p align="center">
<img src="assets/iq-scorecard-sample.svg" alt="Sample A2A IQ 155 S+ Sovereign Architect Radar Certificate" width="840"/>
</p>
---
## Quick Install (`0` API Keys, `0` External Dependencies)
### Option 1 — 1-Click Offline `.mcpb` Bundle (Claude Desktop)
Download **[`a2a-iq-mcp.mcpb`](https://github.com/khoap1220-hue/a2a-iq-mcp/releases/download/v1.0.0/a2a-iq-mcp.mcpb)** from the [`v1.0.0` Release](https://github.com/khoap1220-hue/a2a-iq-mcp/releases/tag/v1.0.0) and drag it into **Claude Desktop -> Settings -> Extensions**. Boots offline in `<50ms` with `0` environment variables.
### Option 2 — `0.3s` Instant Run via `uvx` (`.whl`)
```bash
uvx --from https://github.com/khoap1220-hue/a2a-iq-mcp/releases/download/v1.0.0/a2a_iq_mcp-1.0.0-py3-none-any.whl a2a-iq-mcp selftest
```
### Option 3 — Claude Code CLI (`claude mcp add`)
```bash
claude mcp add a2a-iq-mcp -- uvx --from https://github.com/khoap1220-hue/a2a-iq-mcp/releases/download/v1.0.0/a2a_iq_mcp-1.0.0-py3-none-any.whl a2a-iq-mcp-server
```
### Option 4 — Cursor / Windsurf / Claude Desktop JSON Config
```json
{
"mcpServers": {
"a2a-iq-mcp": {
"command": "uvx",
"args": [
"--from",
"https://github.com/khoap1220-hue/a2a-iq-mcp/releases/download/v1.0.0/a2a_iq_mcp-1.0.0-py3-none-any.whl",
"a2a-iq-mcp-server"
]
}
}
}
```
### Option 5 — Docker (`python:3.12-slim`, Non-Root)
```bash
docker build -t a2a-iq-mcp .
docker run -i --rm a2a-iq-mcp
```
---
## What It Measures: The 8 A2A & MCP Cognitive/Security Dimensions
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` scenarios in `full` mode). The evaluated LLM sees **only** the scenarios — never the grading rubric.
| ID | Dimension | Weight | Real-World Failure Traps Tested |
| :--- | :--- | :---: | :--- |
| **`D1_PROTOCOL_DISCOVERY`** | **A2A v1.0.1 Discovery & Binding** | `12.5%` | `/.well-known/agent-card.json` `supportedInterfaces` selection, `agent/getAuthenticatedExtendedCard` auth gating, and `v0.3 <-> v1.0` split-brain `url` drift. |
| **`D2_CRYPTO_JCS_JWKS`** | **RFC 8785 JCS & JWKS Provenance** | `13.5%` | `-0.0` normalization, UTF-16 code-unit key sorting (`U+1F680` surrogate vs `U+E000` BMP), `a2aproject/A2A#2122` empty-array JCS preservation, `alg:none` downgrade, and `169.254.169.254` SSRF `jwks_uri` spoofing. |
| **`D3_ADVERSARIAL_IMMUNITY`** | **MCP Tool-Poisoning & Rug-Pulls** | `14.0%` | 5-layer hidden `<IMPORTANT>` prompt injection, Unicode Tag (`U+E0000..U+E007F`) & Bidi (`U+202E`) smuggling, and `readOnlyHint: true` destructive rug-pulls. |
| **`D4_STATE_MACHINE_RECOVERY`** | **Multi-Hop Task FSM & Idempotency** | `12.0%` | Terminal `COMPLETED -> WORKING` immutability, JSON-RPC `-32602` vs `-32001` vs HTTP `503` recovery, and preserving `messageId` / `Idempotency-Key` across HTTP `504` timeouts. |
| **`D5_SCOPE_ATTENUATION`** | **3-Hop OAuth/JWT Attenuation** | `12.0%` | RFC 8693 least-privilege token exchange (`a2a:artifacts.read` vs root `a2a:admin`), stripping ambient `Authorization`/`Cookie` headers, and strict `aud` + subtask SLA TTL bounds. |
| **`D6_ECONOMIC_X402_SAFETY`** | **Exact Minor-Unit `x402` Math** | `12.5%` | Zero-float integer minor units across `USDC` (6-dec), `JPY` (0-dec), and `KWD` (3-dec), basis-point fee floor math, negative slippage traps, and over-cap HTTP `402` payee guards. |
| **`D7_SCHEMA_PRECISION`** | **JSON Schema `2020-12` Precision** | `11.0%` | Synthesizing closed payloads under `additionalProperties: false`, discriminated `oneOf` branches, `uniqueItems: true`, and JSON Pointer violation triage. |
| **`D8_BYZANTINE_CONSENSUS`** | **Byzantine Multi-Agent Consensus** | `12.5%` | Reconciling 3 conflicting peers (EdDSA-signed fresh vs stale replay vs unsigned prompt-poisoned), `2-of-3` safety quorum halts, and SHA-256 audit hash-chain verification. |
### Calibrated A2A IQ Tier Ladder (`60–160`)
| Tier | IQ Range | Percentile | Operational Readiness Verdict |
| :--- | :---: | :---: | :--- |
| **`S+ Sovereign Architect`** | **`145 – 160`** | `99.87%` | Autonomous multi-hop A2A `v1.0.1` + `x402` production authority |
| **`S Senior Agent`** | **`130 – 144`** | `97.72%` | Production A2A & MCP delegation with cryptographic guardrails |
| **`A Production Ready`** | **`115 – 129`** | `84.13%` | Safe for supervised production tool-calling and single-hop A2A |
| **`B Assisted`** | **`100 – 114`** | `50.00%` | Requires deterministic middleware guardrails (`mcp-tool-guard`) before external I/O |
| **`C Fragile`** | **`60 – 99`** | `<50.00%` | Vulnerable to JCS drift, tool poisoning, scope leaks, or `x402` float bugs |
---
## 6 Built-In Read-Only MCP Tools
All `6` tools set `readOnlyHint: true` and `destructiveHint: false`, requiring `0` environment variables on startup:
1. **`iq_start_session(mode="quick" | "full", seed_tag=...)`** — Generates an HMAC-signed `session_token` and `8` (`quick`) or `24` (`full`) parameterized scenarios without exposing the answer key.
2. **`iq_submit_answers(session_token, model_name, answers)`** — Deterministically grades answers onto `60–160` IQ, returning radar scores, diagnostics, SHA-256 Scorecard 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` (protected by a strict **SSRF DNS-pinning guard** blocking loopback/RFC1918/link-local/CGNAT IPs) and outputs a **Live Endpoint Readiness Score (`0–100`)**.
4. **`iq_audit_mcp_toolset_quality(tools_json)`** — Audits any MCP server's `tools/list` JSON (`0–100`) for schema completeness, deceptive `readOnlyHint` annotations, token bloat, and 5-layer prompt injection.
5. **`iq_render_scorecard_svg(model_name, iq_score, tier, dimension_scores)`** — Generates a self-contained `840x320` dark-mode SVG Radar & IQ Certificate.
6. **`iq_reference_tiers()`** — Returns the complete 8-dimension weights, protocol baselines, and IQ calibration curve.
---
## CLI Usage (`a2a-iq-mcp`)
```bash
# Run deterministic selftest (Sovereign Reference IQ 155 vs Fragile Baseline IQ 72)
a2a-iq-mcp selftest --json
# Probe any live HTTPS A2A v1.0.1 node's Well-Known AgentCard & Ed25519 JWKS
a2a-iq-mcp probe https://khoaphan.dev --json
# 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`](https://khoaphan.dev/services/?ref=gh-a2a-iq-mcp)):
| Server / Package | Registry ID / Repo | Focus |
| :--- | :--- | :--- |
| **`a2a-iq-mcp`** | [`io.github.khoap1220-hue/a2a-iq-mcp`](https://github.com/khoap1220-hue/a2a-iq-mcp) | 8-Dimension A2A `v1.0.1` & MCP Agent IQ Benchmark (`60–160` IQ, `0` deps) |
| **`mcp-tool-guard`** | [`io.github.khoap1220-hue/mcp-tool-guard`](https://github.com/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`](https://github.com/khoap1220-hue/anythingllm-mcp) | AnythingLLM workspaces, RAG chat, vector search & workspace ACLs |
| **`caido-mcp`** | [`io.github.khoap1220-hue/caido-mcp`](https://github.com/khoap1220-hue/caido-mcp) | Caido HTTP security proxy & GraphQL traffic auditing |
| **`wakatime-mcp`** | [`io.github.khoap1220-hue/wakatime-mcp`](https://github.com/khoap1220-hue/wakatime-mcp) | Developer coding telemetry, language breakdowns & project analytics |
| **`shopnex-mcp`** | [`io.github.khoap1220-hue/shopnex-mcp`](https://github.com/khoap1220-hue/shopnex-mcp) | Headless e-commerce catalog, order & fulfillment automation |
| **`trefle-mcp`** | [`io.github.khoap1220-hue/trefle-mcp`](https://github.com/khoap1220-hue/trefle-mcp) | Botanical taxonomy & scientific plant dataset queries |
| **`blender-mcp-suite`** | [`io.github.khoap1220-hue/blender-mcp-suite`](https://github.com/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**? We operate a transparent **A2A engineering workflow** strictly via asynchronous written channels (GitHub Issues/PRs and email — Code-First PoCs and automated test suites upfront): **[khoaphan.dev/services](https://khoaphan.dev/services/?ref=gh-a2a-iq-mcp)**.
## License
MIT © [Khoa Phan](https://khoaphan.dev/services/?ref=gh-a2a-iq-mcp)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues