AGA-mcp-server
This server acts as a Portal (zero-trust Policy Enforcement Point) for AI agents. Every tool call is attested, measured against a sealed cryptographic reference, and logged to a tamper-evident continuity chain with signed receipts.
README
@attested-intelligence/aga-mcp-server v2.0.0
MCP server implementing the Attested Governance Artifact (AGA) protocol - cryptographic compliance enforcement for autonomous AI systems.
What It Does
This server acts as a Portal (zero-trust Policy Enforcement Point) for AI agents. Every tool call is attested, measured against a sealed cryptographic reference, and logged to a tamper-evident continuity chain with signed receipts.
20 tools, 4 resources, 3 prompts, 159 tests
20 MCP Tools
| # | Tool | NIST/Patent Ref | Description |
|---|---|---|---|
| 1 | aga_server_info |
- | Server identity, keys, portal state, framework alignment |
| 2 | aga_init_chain |
Claim 3a | Initialize continuity chain with genesis event |
| 3 | aga_create_artifact |
Claims 1a-1d | Attest subject, generate sealed Policy Artifact |
| 4 | aga_measure_subject |
Claims 1e-1g | Measure subject, compare to sealed ref, generate receipt |
| 5 | aga_verify_artifact |
Claim 10 | Verify artifact signature against issuer key |
| 6 | aga_start_monitoring |
NIST-2025-0035 | Start/restart behavioral monitoring with baseline |
| 7 | aga_get_portal_state |
- | Current portal enforcement state and TTL |
| 8 | aga_trigger_measurement |
Claims 1e-1g | Trigger measurement with specific type |
| 9 | aga_generate_receipt |
V3 Promise | Generate signed measurement receipt manually |
| 10 | aga_export_bundle |
Claim 9 | Package artifact + receipts + Merkle proofs |
| 11 | aga_verify_bundle |
Section J | 4-step offline bundle verification |
| 12 | aga_disclose_claim |
Claim 2 | Privacy-preserving disclosure with auto-substitution |
| 13 | aga_get_chain |
Claim 3c | Get chain events with optional integrity verification |
| 14 | aga_quarantine_status |
Claim 5 | Quarantine state and forensic capture status |
| 15 | aga_revoke_artifact |
NCCoE 3b | Mid-session artifact revocation |
| 16 | aga_set_verification_tier |
- | Set verification tier (BRONZE/SILVER/GOLD) |
| 17 | aga_demonstrate_lifecycle |
All | Full lifecycle: attest, measure, checkpoint, verify |
| 18 | aga_measure_behavior |
NIST-2025-0035 | Behavioral drift detection (tool patterns) |
| 19 | aga_delegate_to_subagent |
NCCoE | Constrained sub-agent delegation (scope only diminishes) |
| 20 | aga_rotate_keys |
Claim 3 | Key rotation with chain event |
4 Resources
| Resource | URI | Description |
|---|---|---|
| Protocol Spec | aga://specification/protocol-v2 |
Full protocol specification with SPIFFE alignment |
| Sample Bundle | aga://resources/sample-bundle |
Sample evidence bundle documentation |
| Crypto Primitives | aga://resources/crypto-primitives |
Cryptographic primitives documentation |
| Patent Claims | aga://resources/patent-claims |
20 patent claims mapped to tools |
3 Prompts
| Prompt | Description |
|---|---|
nccoe-demo |
4-phase NCCoE lab demo with behavioral drift |
governance-report |
Session governance summary report |
drift-analysis |
Drift event analysis and remediation |
CoSAI MCP Security Threat Coverage
The AGA MCP Server addresses all 12 threat categories identified in the CoSAI MCP Security whitepaper (Coalition for Secure AI / OASIS, January 2026).
| CoSAI Category | Threat Domain | AGA Governance Mechanism |
|---|---|---|
| T1: Improper Authentication | Identity & Access | Ed25519 artifact signatures, pinned issuer keys, TTL re-attestation, key rotation chain events |
| T2: Missing Access Control | Identity & Access | Portal as mandatory enforcement boundary, sealed constraints, delegation with scope diminishment |
| T3: Input Validation Failures | Input Handling | Runtime measurement against sealed reference, behavioral drift detection |
| T4: Data/Control Boundary Failures | Input Handling | Behavioral baseline (permitted tools, forbidden sequences, rate limits), phantom execution forensics |
| T5: Inadequate Data Protection | Data & Code | Salted commitments, privacy-preserving disclosure with substitution, inference risk prevention |
| T6: Missing Integrity Controls | Data & Code | Content-addressable hash binding, 10 measurement embodiments, continuous runtime verification |
| T7: Session/Transport Security | Network & Transport | TTL-based artifact expiration, fail-closed on expiry, mid-session revocation, Ed25519 signed receipts |
| T8: Network Isolation Failures | Network & Transport | Two-process architecture, agent holds no credentials, NETWORK_ISOLATE enforcement action |
| T9: Trust Boundary Failures | Trust & Design | Enforcement pre-committed by human authorities in sealed artifact, not delegated to LLM |
| T10: Resource Management | Trust & Design | Per-tool rate limits in behavioral baseline, configurable measurement cadence (10ms to 3600s) |
| T11: Supply Chain Failures | Operational | Content-addressable hashing at attestation, runtime hash comparison blocks modified components |
| T12: Insufficient Observability | Operational | Signed receipts, tamper-evident continuity chain, Merkle anchoring, offline evidence bundles |
Full mapping details available via the aga://specification resource.
Quick Start
npm install && npm run build && npm test
Connect to Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"aga": { "command": "node", "args": ["C:/Users/neuro/AIH/aga-mcp-server/dist/index.js"] }
}
}
Architecture
MCP Client (Claude Desktop)
│ JSON-RPC over stdio
▼
src/server.ts - 20 tools + 4 resources + 3 prompts
│
├── src/tools/ 20 individual tool handlers
├── src/core/ Protocol logic (artifact, chain, portal, etc.)
├── src/crypto/ Ed25519 + SHA-256 + Merkle + canonical JSON
├── src/middleware/ Zero-trust governance PEP
├── src/storage/ In-memory + optional SQLite
├── src/resources/ Protocol docs + patent claims
└── src/prompts/ Demo + report + analysis prompts
Test Coverage
| Suite | Tests | What |
|---|---|---|
| Crypto | 33 | SHA-256, Ed25519, Merkle, salt, canonical, keys |
| Core | 56 | Artifact, chain, portal, governance, behavioral, delegation, privacy, revocation, fail-closed |
| Tools | 25 | All 20 tool handlers |
| Integration | 38 | Bundle tamper, lifecycle, performance, NCCoE demo, crucible compatibility |
| Total | 159 |
License
MIT - Attested Intelligence Holdings LLC
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。