Agentpay Sentinel Mcp

io.github.Rumblingb由 GitHub 帳號 Rumblingb 發布v1.0.0更新於 Oct 24, 2026

Security guardrails for AI agent payments

發布方自己的服務:AgentPay — Pay-per-call AI Microservices

已驗證STDIO僅桌面金融安全與監控

概覽

AI 產生的概覽

一個本機看門狗 MCP,對 AI 代理的付款請求執行預檢安全檢查,回傳 PASS 或 BLOCKED 結論。

可以做什麼
  • 對付款交易執行九項檢查(權杖雜湊、預算上限、商家白名單、受限類別、到期、速率限制、金額不符、重放、撤銷),回傳 PASS/BLOCKED 結論與稽核雜湊
  • 撤銷權杖,讓後續稽核一律攔截;為合法重試從重放儲存中清除 nonce
  • 驗證一串稽核雜湊是否構成完整鏈條
  • 模擬權杖偽造、預算溢出、重放、商家冒充等攻擊向量,回傳嚴重程度、防禦與偵測方式
適用情境
當代理被允許發起付款,而你希望在每次付款前用本機建議性關卡檢查政策、預算與權杖完整性時適用。也適合用來了解常見付款攻擊向量會如何被偵測。
執行需求
以本機 Python 程序執行:需要 Python 3.10+ 與 mcp 套件,並在用戶端設定(Claude Desktop 或 Cursor)中以指令加腳本路徑啟動。未宣告任何 API 金鑰或環境變數。狀態保存在使用者家目錄下。
安裝前請注意
結論僅為建議性質:它不攔截網路流量,代理必須在付款前主動呼叫並在 BLOCKED 時停止。撤銷權杖與清除 nonce 會改動本機持久狀態。README 列出付費 Pro 方案每月 19 美元(無限稽核與威脅模擬),免費方案每月限 50 次稽核。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agentpay Sentinel Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[AgentPay]

AgentPay Sentinel MCP

A watchdog MCP that validates every agent payment request against all 9 security checks before it executes — catching policy violations, replay attacks, amount tampering, revoked tokens, and budget overruns at call time.

What your agent can do

  • Run a pre-flight audit on any payment transaction before executing it — get PASS or BLOCKED with the specific check that failed
  • Validate token integrity: confirms the SHA-256 hash matches the expected merchant_id:amount binding, catching forged or tampered tokens
  • Enforce budget caps: rejects transactions where current_spend + amount > budget_cap and returns exact remaining budget
  • Check merchant allowlist membership and block purchases in restricted categories
  • Verify token expiry and rate limits before the payment fires
  • Simulate known attack vectors (token forgery, budget overflow, replay, merchant spoof, expiry bypass) and get the specific defense mechanism and detection method for each

Installation

Requires: Python 3.10+, mcp package.

bash
pip install mcp

Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "agentpay-sentinel": {      "command": "python",      "args": ["/absolute/path/to/agentpay-sentinel-mcp/server.py"]    }  }}

Cursor — add to .cursor/mcp.json in your project root:

json
{  "mcpServers": {    "agentpay-sentinel": {      "command": "python",      "args": ["/absolute/path/to/agentpay-sentinel-mcp/server.py"]    }  }}

Tool Reference

ToolDescriptionKey params
sentinel_audit_transactionRun all 9 security checks; returns PASS/BLOCKED + SHA-256 audit hashtoken_hash, merchant_id, amount, current_spend, budget_cap (required) · nonce, token_id, approved_amount (enable checks 7–9)
sentinel_revoke_tokenPermanently revoke a token — all future audits with this token_id will BLOCKtoken_id, reason
sentinel_clear_nonceRemove a nonce from the replay store (for legitimate refunds/retries only)nonce
sentinel_verify_chainVerify a sequence of audit hashes forms an unbroken chainaudit_hashes, expected_chain_root
sentinel_threat_modelSimulate any named attack vector; returns severity, defence, and detectionattack_vector, context

All 9 checks run by sentinel_audit_transaction

#CheckWhat it catchesParam
1Token integritySHA-256 hash mismatch — forged tokenstoken_hash
2Budget enforcementSpend exceeding capcurrent_spend, budget_cap
3Merchant allowlistPayment to unlisted merchantallowlist
4Category restrictionPurchase in blocked categoryblocked_categories
5Expiry checkExpired tokenexpires_at
6Rate limitToo many calls per minutecalls_this_minute
7Amount mismatchAgent changed amount after human approvedapproved_amount
8Replay attackSame nonce used twice (file-backed store)nonce
9Revocation evasionAgent using a revoked tokentoken_id

Checks 7–9 activate when the corresponding param is passed. State persists to ~/.sentinel/.

Attack vectors in sentinel_threat_model

token_forgery · budget_overflow · replay_attack · amount_mismatch · revocation_evasion · merchant_spoof · expiry_bypass

Security

sentinel_audit_transaction returns an advisory verdict — it does not intercept network traffic. Your agent is responsible for calling it before executing a payment and halting on BLOCKED. The audit hash returned is a SHA-256 digest of all check results, giving you a tamper-evident record of each pre-flight decision.

Pricing

PlanPriceIncluded
Free$050 audits/month
Pro$19/monthUnlimited audits + threat model simulations

Upgrade to Pro

License

MIT — AgentPay Labs. Source: github.com/Rumblingb/agentpay-sentinel-mcp

來源:README.md,提交 eb6284f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Agentpay 整合