Repository avatar
AI Tools
v1.0.0
active

defense-gateway

com.vilmamonroy.a2a/defense-gateway

A2A Defense & Monetization Gateway: L402 Lightning payments, Why-Trail court, and 16 MCP tools.

Documentation

A2A Defense & Monetization Gateway

License: MIT MCP Standard L402 Protocol Why-Trail Ledger Live Endpoint

Production-grade Agent-to-Agent (A2A) economic, defense, and monetization infrastructure. Exposes a Streamable HTTP Model Context Protocol (MCP) server providing cryptographic truth verification, Why-Trail forensic dispute resolution, Bitcoin Lightning L402 payments, AST SAST malware scanning, and GBNF grammar compilation.


⚡ Core Capabilities (14 Production Tools)

ToolCapabilityTransport
generate_l402_challengeIssues RFC-compliant L402 Macaroon + Lightning Bolt11 invoices for micro-metered tool calls.MCP / REST
verify_l402_tokenValidates preimage payments on Bitcoin Mainnet and settles machine-to-machine transactions.MCP / REST
verify_factual_claimComputes Epistemic Confidence Index ($S_c$) with Cross-Encoder NLI anti-hallucination.MCP / REST
create_erc8183_escrowDeploys conditional smart escrow contracts with slashing rules for autonomous jobs.MCP / REST
resolve_erc8183_disputeWhy-Trail forensic arbitration tribunal for agent contractual breaches.MCP / REST
audit_ast_malwareStatic AST analysis detecting ClawHavoc, AMOS malware, and prompt injection vectors.MCP / REST
compile_gbnf_grammarGrammar-as-a-Service compiler ensuring deterministic JSON schema enforcement.MCP / REST
audit_agent_guardrailsReal-time policy and guardrail evaluation for agent execution loops.MCP / REST
audit_why_trail_ledgerVerifies cryptographic integrity of the causal hash chain.MCP / REST
calculate_dynamic_priceSurge/load-aware algorithmic pricing engine based on token compute and USL capacity.MCP / REST
fetch_alpha_feedCurated feed of zero-day exploits and unmet agent service demand.MCP / REST
compute_procedural_deadlineArithmetic judicial and administrative deadline calculator excluding D. Leg. 713 holidays.MCP / REST
verify_normative_validityDeterministic graph verification of statute validity (VIGENTE, MODIFICADO, DEROGADO).MCP / REST
audit_sunat_cpe_xmlForensic electronic invoice XML auditor (RUC Modulo 11 check, 18% IGV ledger balance).MCP / REST

🔌 Quickstart: Connect to Claude Desktop or Cursor

1. Claude Desktop Configuration (claude_desktop_config.json)

{
  "mcpServers": {
    "a2a-defense-gateway": {
      "url": "https://a2a.vilmamonroy.com/mcp"
    }
  }
}

2. Cursor IDE (.cursor/mcp.json)

{
  "mcpServers": {
    "a2a-defense-gateway": {
      "type": "sse",
      "url": "https://a2a.vilmamonroy.com/mcp"
    }
  }
}

🌐 Endpoints

  • Live Landing & Showcase: https://a2a.vilmamonroy.com/
  • Streamable HTTP MCP Endpoint: https://a2a.vilmamonroy.com/mcp
  • Interactive OpenAPI Documentation: https://a2a.vilmamonroy.com/docs
  • LLM Manifest: https://a2a.vilmamonroy.com/llms.txt
  • Why-Trail Live Cryptographic Verification: https://a2a.vilmamonroy.com/api/v1/audit/verify

🛠️ Local Development & Testing

# Clone repository
git clone https://github.com/mmansillaf/a2a-defense-gateway.git
cd a2a-defense-gateway

# Set up environment with uv
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt

# Run test suite (100% passing)
PYTHONPATH=agents pytest tests

📜 License

MIT License. See LICENSE for details.

No installation packages available.

Remote