Skip to content
Back to search

402-in-a-box

402-in-a-Box — HTTP 402 Metering & Compute Packs for MCP

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/srigenmedia--402-in-a-box/badge.svg)](/listings/srigenmedia--402-in-a-box)

HTML

<a href="/listings/srigenmedia--402-in-a-box"><img src="/api/listings/srigenmedia--402-in-a-box/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

1. Install the Clean-Room SDK

# TypeScript / Cloudflare Workers
npm install @srigenmedia/mcp-402

# Python / FastAPI / MCP
pip install srigen-mcp-402

2. Connect an MCP Client (`mcp_config.json`)

{
  "mcpServers": {
    "vashishta-402": {
      "type": "streamable-http",
      "url": "https://mcp.vashishta.srigenmedia.com/mcp",
      "headers": {
        "Authorization": "Bearer ${MCP_402_API_KEY}"
      }
    }
  }
}

3. Run the 60-Second Terminal Demo

$env:MCP_402_API_KEY = "<your-sandbox-key-from-portal>"
.\scripts\demo-402-flow.ps1

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 62 lines
  1. # 402-in-a-Box — HTTP 402 Metering & Compute Packs for MCP
  2. [![mcptry](https://mcptry.com/badge/io.github.srigenmedia/402-in-a-box)](https://mcptry.com/servers/io.github.srigenmedia/402-in-a-box)
  3. Turn any Model Context Protocol (`2026-07-28`) server into a pay-per-call metered API using **HTTP `402 Payment Required`**, atomic reserve-commit-rollback metering, and compliant fiat compute packs (**Razorpay INR 18% GST** & **PayPal USD 0% Export LUT**).
  4. - **Live MCP Endpoint:** `https://mcp.vashishta.srigenmedia.com/mcp`
  5. - **Agent Discovery Card:** `https://mcp.vashishta.srigenmedia.com/.well-known/agent.json`
  6. - **Developer Portal & 25-Unit Free Sandbox:** `https://vashishta.srigenmedia.com/developers/402`
  7. - **Kavach KYA Spend-Hold Firewall:** `https://kavach.srigenmedia.com`
  8. ## 3-Step Quickstart
  9. ### 1. Install the Clean-Room SDK
  10. ```bash
  11. # TypeScript / Cloudflare Workers
  12. npm install @srigenmedia/mcp-402
  13. # Python / FastAPI / MCP
  14. pip install srigen-mcp-402
  15. ```
  16. ### 2. Connect an MCP Client (`mcp_config.json`)
  17. ```json
  18. {
  19. "mcpServers": {
  20. "vashishta-402": {
  21. "type": "streamable-http",
  22. "url": "https://mcp.vashishta.srigenmedia.com/mcp",
  23. "headers": {
  24. "Authorization": "Bearer ${MCP_402_API_KEY}"
  25. }
  26. }
  27. }
  28. }
  29. ```
  30. ### 3. Run the 60-Second Terminal Demo
  31. ```powershell
  32. $env:MCP_402_API_KEY = "<your-sandbox-key-from-portal>"
  33. .\scripts\demo-402-flow.ps1
  34. ```
  35. ## Architecture: `402-in-a-Box` + `Kavach KYA`
  36. ```mermaid
  37. flowchart LR
  38. Agent["AI Agent / MCP Client"] -->|"1. POST /mcp (No Key)"| Edge["402-in-a-Box Edge Meter"]
  39. Edge -->|"HTTP 402 + PAYMENT-REQUIRED"| Agent
  40. Agent -->|"2. Top-up Pack (Razorpay INR / PayPal USD)"| Portal["Developer Portal (/developers/402)"]
  41. Portal -->|"Mint SRG-COMPUTE-UNIT-V1"| Ledger["Durable Object Credit Meter + D1 Audit"]
  42. Agent -->|"3. POST /mcp + Bearer Key + Idempotency-Key"| Edge
  43. Edge -->|"Policy & 2FA Spend-Hold Check (Zero Custody)"| Kavach["Kavach KYA Firewall (kavach.srigenmedia.com)"]
  44. Kavach -->|"ALLOW / HOLD_2FA"| Edge
  45. Edge -->|"Reserve -> Execute -> Commit + PAYMENT-RESPONSE"| Agent
  46. ```
  47. ## Compliance & Zero-Custody Posture
  48. - **Closed-Loop SaaS Compute Units:** `SRG-COMPUTE-UNIT-V1` billed under **SAC `998315`** (non-withdrawable, non-transferable compute credits).
  49. - **Taxation & Invoicing:** Razorpay **18% GST** (INR) and PayPal Orders v2 **0% Export LUT** (USD) with sequential GST/LUT tax receipts.
  50. - **Indian Crypto Firewall:** `x402` on-chain facilitator verification is **disabled by default** (`X402_CRYPTO_ENABLED = false`) on Indian deployments (`opt-in` only for non-Indian self-hosters).
  51. - **Kavach KYA (`₹0` Custody):** Stores only authorization policy state, `user_intent_hash`, `cart_mandate_hash`, and verified bank/gateway RRN/UTR proofs — holding `₹0` customer funds.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.