Skip to main content
Glama
README.md
# x402-mcp-guard — Dual-Rail MCP & x402 Base USDC Supply-Chain Security Auditor

Zero-cost serverless (`Cloudflare Workers` / `Node.js >= 22`) security auditor for **MCP servers (`mcp.json`)**, **`SKILL.md` agent skills**, **GitHub Actions workflows**, and **`package.json` lifecycle scripts**, monetized natively via **x402 v2 (`HTTP 402 Payment Required`)** in **USDC on Base Mainnet (`eip155:8453`)**.

## Payout Configuration
- **Protocol**: `x402 v2` (`PAYMENT-REQUIRED` / `PAYMENT-SIGNATURE` / `PAYMENT-RESPONSE`)
- **Network**: `eip155:8453` (Base Mainnet)
- **Asset**: Native USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`)
- **Receive-Only Experiment Wallet**: `0x5aEcF98f2C3eF56402091Ce8ACaa1B1e972E5097`
- **Price**: `100000` base units (`$0.10 USDC` per full SARIF 2.1.0 audit; 10 calls = `$1.00 USD`)

## Endpoints
- `GET /health` — Service & x402 payment metadata
- `POST /api/v1/quick-preview` — Free score & rule-ID preview (organic conversion funnel)
- `POST /api/v1/deep-audit` — Paid (`$0.10 USDC` via x402) full SARIF 2.1.0 report & remediations
- `POST /mcp` — Streamable-HTTP JSON-RPC 2.0 MCP Server (`initialize`, `tools/list`, `tools/call`)

## Verification
```bash
npm test
```