Kavach KYA (Sovereign Agentic Spend Firewall)

io.github.srigenmedia由 GitHub 帳號 srigenmedia 發布v0.1.0更新於 Nov 20, 2026

Zero-custody agentic spend firewall with <50ms kill-switch, 1-tap 2FA holds & audit hash chains.

發布方自己的服務:agentic.no

已驗證Streamable HTTP可網頁執行金融安全與監控

概覽

AI 產生的概覽

遠端 Kavach KYA 防火牆,讓助理檢查代理支出政策、查看代理資格與支出,並觸發緊急停止開關。

可以做什麼
  • 以速率限制、商家白名單和提示注入防護評估代理支出的五元組
  • 查看代理的即時資格旗標、當日速率支出與待處理的 2FA 保留
  • 以原子方式撤銷代理資格,並將撤銷狀態傳播到下游閘道
適用情境
適用於助理需要維運或監督會花錢的自律代理時:付款前做政策檢查、查看代理額度狀態,或快速撤銷某個代理的支出資格。
執行需求
需要遠端 streamable HTTP 端點,不需在本機安裝套件。呼叫租戶防火牆政策與緊急停止開關時,必須在 Authorization 標頭提供 bearer 權杖。
安裝前請注意
Authorization 中的 bearer 權杖是敏感憑證,可存取你租戶的支出政策與緊急停止控制,請勿寫入日誌或共用設定。緊急停止開關會改變狀態並撤銷代理資格,呼叫需謹慎。支出決策與稽核回執由第三方服務處理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Kavach KYA (Sovereign Agentic Spend Firewall),將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.srigenmedia%2Fkavach-kya/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "kavach-kya-sovereign-agentic-spend-firew": {
      "type": "http",
      "url": "https://kavach.srigenmedia.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Kavach KYA (io.github.srigenmedia/kavach-kya)

[mcptry]

Sovereign Agentic Spend Firewall & Streamable HTTP MCP Guard (https://kavach.srigenmedia.com)

Kavach KYA is a zero-custody (₹0.00 customer funds held) horizontal B2B Know-Your-Agent (KYA) spend firewall for autonomous AI agents, 402-in-a-Box gateways, and Model Context Protocol (MCP) tool servers.


Core Capabilities

  • Streamable HTTP /mcp Endpoint (https://kavach.srigenmedia.com/mcp):
    • kavach_check_spend_policy — Evaluates canonical 5-tuples [asset_or_currency, kya_agent_id, merchant_vpa_or_recipient, amount_minor_or_units, eligibility_flag] against velocity limits, merchant allowlists, and prompt-injection guards.
    • kavach_get_agent_status — Inspects live eligibility_flag (0/1), daily velocity spend, and pending 2FA holds.
    • kavach_trigger_kill_switch — Atomically flips eligibility_flag = 0 in < 50ms via Cloudflare SQLite Durable Objects (KyaSpendCoordinatorDO) and propagates revocation to 402-in-a-Box (PUT /api/admin/kya/agents/:id/eligibility).
  • Hibernatable 15-Minute 2FA Holds & 1-Tap Webhooks: Velocity/amount breaches enter AWAITING_HUMAN_2FA with 15-minute Durable Object alarm() expiry and constant-time HMAC-SHA256 verified Slack (X-Slack-Signature) and WhatsApp Business (X-Hub-Signature-256) 1-tap callbacks.
  • Tamper-Evident Audit Hash Chain: Every decision appends a SHA-256 hash-chained receipt (prev_receipt_hash -> receipt_hash) with verified bank/gateway UTR/RRN proofs and zero raw PII.
  • Zero-Custody & Indian Regulatory Safe-Harbor: Holds ₹0.00 customer funds; B2B SaaS plans are billed under SAC 998315 (18% GST INR) or 0% Export LUT (USD).

Quick MCP Client Configuration

json
{  "mcpServers": {    "kavach-kya": {      "type": "streamable-http",      "url": "https://kavach.srigenmedia.com/mcp",      "headers": {        "Authorization": "Bearer ${KAVACH_OPERATOR_JWT}"      }    }  }}

See docs/402-in-a-box-connector.md for the complete 5-minute HTTP & webhook integration guide and SECURITY.md for our fail-closed security architecture.

來源:README.md,提交 066edfe

工具

3

kavach_check_spend_policy

Evaluate an agent spend 5-tuple against Kavach KYA velocity limits, merchant allowlists, and prompt-injection guards.

輸入參數tenant_id必填kya_agent_id必填intent_summaryuser_intent_hash必填asset_or_currencycart_mandate_hash必填tool_payload_summaryamount_minor_or_units必填merchant_vpa_or_recipient必填

kavach_get_agent_status

Inspect a KYA agent's live eligibility_flag (0/1), daily velocity spend, and pending 2FA holds.

輸入參數tenant_id必填kya_agent_id必填

kavach_trigger_kill_switch

Atomically flip eligibility_flag = 0 in <50ms and propagate revocation to downstream 402-in-a-Box gateways.

輸入參數reason必填tenant_id必填kya_agent_id必填

版本歷史

1
  1. v0.1.0最新Nov 20, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Agentic 整合