
Warden402 Mcp
io.github.sukrutkrdg由 GitHub 帳號 sukrutkrdg 發布v0.2.0更新於 Oct 25, 2026
Pre-execution security for AI agents on Base: guard token/tx/address + per-agent spend firewall.
概覽
一個本機 MCP 伺服器,在 AI 代理於 Base 上簽署或付款前檢查代幣、交易與地址的風險,並可選擇提供依代理的支出防火牆。
- 可以做什麼
- 買入前檢查代幣:賣出模擬、蜜罐與稅費訊號、擁有者權限、持倉集中度、流動性與部署者信譽,回傳 block、review 或 clear 及原因和風險評分。簽署前檢查交易:解碼 approve、permit 等呼叫資料,檢查授權對象與模擬結果、對手方風險、地址投毒,並提供更安全的替代簽署方案。檢查地址的制裁曝險、合約風險與身分。持有代理金鑰時,查詢依代理的防火牆政策及其 allow、hold 或 deny 狀態。
- 適用情境
- 當 Base 上的助理即將買入代幣、簽署交易或向某地址付款,而你希望取得確定性的執行前判定而非模型判斷時使用。防火牆工具適合在支出上限下轉移資金的代理。
- 執行需求
- 透過 npx 在本機執行(需要 Node.js)。guard 工具無需金鑰;環境變數 WARDEN_AGENT_KEY(來自服務商引導頁的代理金鑰)用於啟用防火牆工具。可用 WARDEN_API_URL 覆寫預設 API 位址。需要能連線服務商 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Warden402 Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Warden — pre-execution security for AI agents on Base
[npm warden402-mcp] [npm warden402-sdk] [License: MIT]
Before your agent buys a token, signs a transaction or pays an address, ask
Warden. You get block · review · clear with the reasons, a risk score
and — when there is one — the safer thing to sign instead. On top, a per-agent
Firewall enforces a spending policy: allow · hold · deny.
Live at warden402.xyz · public track record at warden402.xyz/track-record
Quick start
MCP (Claude, Cursor, any MCP client) — no key needed:
Tools: guard_token, guard_tx, guard_address, and with an agent key
firewall_check, firewall_status. → mcp/README.md
SDK (TypeScript, fail-closed):
→ sdk/README.md (also LangChain tools)
HTTP:
50 free guard calls per IP per day, then x402 pay-per-call ($0.01 token/address, $0.02 tx, USDC on Base). Firewall agent keys: warden402.xyz/onboard (free: 1 agent, 1,000 checks/month).
What it checks
Signal data comes from the x402 Bazaar plus Base RPC.
How decisions are made
- No LLM in the decision path. Decision, score and summary are deterministic rules over the collected signals — same input, same verdict.
- Fails safe. A critical signal that can't be fetched is
unknown→degraded: true→ the verdict isreviewat worst, never a falseclear. The SDK and MCP are fail-closed too: no verdict → throw / "do not proceed". - Hard blocks regardless of score: honeypot, sanctioned target, token that can't be sold, poisoned look-alike recipient, unlimited approval to a plain wallet.
- Otherwise: weighted risk ≥ 70 →
block; anyfailor risk ≥ 35 or 2+warns →review; elseclear. - Every verdict is recorded and re-checked later for rugs — the public track record.
Firewall (per agent)
Policy-as-code in front of an agent's value flow: per-call / hourly / daily
spend caps, allow & deny lists, unlimited approvals banned, first payment to a
new counterparty held for a human (approve/reject in /account or via API),
calls-per-minute limit, anomaly multiplier, kill switch, audit log, webhook on
hold. Team accounts sign in with a wallet (SIWE), with roles and plans.
→ FIREWALL.md
Repository
Deploy notes: DEPLOY.md.
License
MIT — see LICENSE.
來源:README.md,提交 c84d05f
工具
0版本歷史
2- v0.2.0最新Oct 10, 2026
- v0.1.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分