Repository avatar
AI Tools
v1.0.2
active

aegis-x402

io.github.IvanTamayoRamos1989/aegis-x402

Zero-signup HTTP 402 AI security firewall (DLP, prompt-injection, SARIF) & Base USDC escrow.

Documentation

ESW-P000001 · Seguridad para agentes (aegis-x402)

Zero-signup, wallet-native HTTP 402 AI Security Firewall & Base USDC Escrow Clearinghouse — first catalog product of Ecosystem Services World (ESW-P000001, v1.0.2).

No forms, no OAuth, no API keys, no monthly subscriptions. Any autonomous agent starts with 100 free security checks/day (X-Aegis-Wallet: 0x...) and seamlessly scales into machine-readable HTTP 402 (a2a-x402 v2 / EIP-3009 USDC on Base) payments at $0.002/call, backed by Ed25519 audit receipts and a SHA-256 hash-chained double-entry PostgreSQL ledger.

Live Production Endpoints & Registries

SurfaceLive URL / Identifier
Product Sheet & Live Playgroundhttps://www.ecosystemservicesworld.com/p/000001
60-Server MCP Security Leaderboardhttps://www.ecosystemservicesworld.com/leaderboard (JSON feed)
Business Activity Monitorhttps://www.ecosystemservicesworld.com/dashboard
Signed A2A v1.0.1 AgentCardhttps://www.ecosystemservicesworld.com/.well-known/agent-card.json
Public JWKS (ES256 + Ed25519)https://www.ecosystemservicesworld.com/.well-known/jwks.json
Streamable HTTP MCPPOST https://www.ecosystemservicesworld.com/mcp
Machine Specs (llms.txt / OpenAPI)https://www.ecosystemservicesworld.com/llms.txt · https://www.ecosystemservicesworld.com/openapi.json
npm Package (npx MCP Bridge + TS SDK)https://www.npmjs.com/package/aegis-x402 (npx -y --package=aegis-x402 aegis-x402-mcp)
PyPI Package (Python / LangGraph / CrewAI)https://pypi.org/project/aegis-x402/ (pip install aegis-x402)
Official MCP Registryio.github.IvanTamayoRamos1989/aegis-x402

Customer & Agent Documentation Suite


Core Capabilities

  1. Zero-Signup Security Skills (POST /v1/x402/*, A2A /v1/message:send, MCP /mcp):
    • sanitize_payload (100 free/day, then $0.002 USDC): Multi-layer de-obfuscation (Base64/Hex/URL/Unicode NFKC/homoglyphs/leetspeak), Luhn PAN & Mod-97 IBAN DLP, secret entropy detection, multilingual prompt injection, shell/SQLi/SSRF detection, and MCP tool poisoning defense.
    • verify_agent_card (100 free/day, then $0.002 USDC): ES256/Ed25519 JWS + RFC 8785 JCS signature verification + _agentpin DNS check + skill description safety inspection.
    • attest_receipt ($0.003 USDC): Signed Ed25519 cryptographic attestation over any payload digest.
    • delegate_verified_task ($0.005 USDC): Verify peer AgentCard, sanitize outbound/inbound payloads, and relay A2A v1.0 tasks cleanly without tool-wrapping.
    • scan_code_sarif ($0.25 USDC): Static security scanner for MCP servers, TS/JS/Python agents, iOS AppIntents, and Android AppFunctions emitting OASIS SARIF 2.1.0.
  2. Wallet-Native A2A/MCP Buy & Rent Escrow Clearinghouse (/v1/commerce/*, 3.0% fee):
    • Sellers publish BUY, RENT, or PAY_PER_CALL offers signed by their EVM wallet (POST /v1/commerce/listings).
    • Buyers fund orders via HTTP 402 (POST /v1/commerce/orders) into escrow; RENT orders auto-mint metered aegis_lease_* tokens verified in 1 call (POST /v1/commerce/leases/verify).
    • Fulfillment releases 97% to the seller and 3% platform fee into the SHA-256 hash-chained double-entry Postgres ledger; disputes refund 100% to the buyer.

10-Second Integration (AegisX402Client)

import { AegisX402Client } from "aegis-x402";

const agent = new AegisX402Client({
  baseUrl: "https://www.ecosystemservicesworld.com",
  privateKey: process.env.AGENT_EVM_PRIVATE_KEY as `0x${string}`,
  useFreeTier: true, // 100 free checks/day, then auto-signs EIP-3009 USDC
});

const verdict = await agent.sanitize({ prompt: "Check user transfer" }, { mode: "REDACT" });

Local Development

npm install
npm run build
npm test
npm run dev
NPM
aegis-x402
Install Command
npm install aegis-x402