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.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,在 AI 代理於 Base 上簽署或付款前檢查代幣、交易與地址的風險,並可選擇提供依代理的支出防火牆。

可以做什麼
買入前檢查代幣:賣出模擬、蜜罐與稅費訊號、擁有者權限、持倉集中度、流動性與部署者信譽,回傳 block、review 或 clear 及原因和風險評分。簽署前檢查交易:解碼 approve、permit 等呼叫資料,檢查授權對象與模擬結果、對手方風險、地址投毒,並提供更安全的替代簽署方案。檢查地址的制裁曝險、合約風險與身分。持有代理金鑰時,查詢依代理的防火牆政策及其 allow、hold 或 deny 狀態。
適用情境
當 Base 上的助理即將買入代幣、簽署交易或向某地址付款,而你希望取得確定性的執行前判定而非模型判斷時使用。防火牆工具適合在支出上限下轉移資金的代理。
執行需求
透過 npx 在本機執行(需要 Node.js)。guard 工具無需金鑰;環境變數 WARDEN_AGENT_KEY(來自服務商引導頁的代理金鑰)用於啟用防火牆工具。可用 WARDEN_API_URL 覆寫預設 API 位址。需要能連線服務商 API 的網路。
安裝前請注意
代理金鑰是機密,透過環境變數傳入,不應外洩。guard 呼叫依 IP 每日有免費額度,超出後按次以 Base 上的 USDC 付費,可能產生費用。判定僅為風險參考而非保證;README 稱採用失敗即關閉的設計,但 clear 結果並不代表交易安全。防火牆的 hold 可能需要人工核准。

安裝

在 SourceWeft 中

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

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:

json
{  "mcpServers": {    "warden402": {      "command": "npx",      "args": ["-y", "warden402-mcp"],      "env": { "WARDEN_AGENT_KEY": "wk_... (optional, enables firewall tools)" }    }  }}

Tools: guard_token, guard_tx, guard_address, and with an agent key firewall_check, firewall_status. → mcp/README.md

SDK (TypeScript, fail-closed):

ts
import { Warden } from "warden402-sdk";const warden = new Warden({ agentKey: process.env.WARDEN_AGENT_KEY });
await warden.assertSafe(() => warden.token("0xTOKEN"));         // throws on blockawait warden.protect({ to: payee, amountUsd: 5 }, () => pay());  // runs only on allow

→ sdk/README.md (also LangChain tools)

HTTP:

bash
curl "https://warden402.xyz/api/guard?address=0xTOKEN"                 # tokencurl "https://warden402.xyz/api/guard?type=address&address=0xADDR"     # addresscurl -X POST https://warden402.xyz/api/guard -H 'content-type: application/json' \  -d '{"type":"tx","from":"0x..","to":"0x..","calldata":"0x.."}'       # transaction

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

TargetSignals
Tokenlive sell simulation from a real holder (can you get out?), honeypot & taxes, owner powers (mint, set balances, blacklist, upgradeable logic), contract controls, wallet holder concentration (LP / CEX / burn excluded), liquidity, LP lock, deployer reputation, OFAC
Transactioncalldata decode (approve, increaseAllowance, EIP-2612 permit, Permit2, setApprovalForAll, transfer); approval target (unlimited approval to an address with no code → block); eth_call simulation (revert, call to non-contract); counterparty OFAC + contract risk; address poisoning on outgoing transfers. Returns remediation — e.g. an exact-amount approval to sign instead
AddressOFAC, exposure to sanctioned counterparties, contract risk, identity (verified / named / anonymous)

Signal data comes from the x402 Bazaar plus Base RPC.

How decisions are made

  1. No LLM in the decision path. Decision, score and summary are deterministic rules over the collected signals — same input, same verdict.
  2. Fails safe. A critical signal that can't be fetched is unknown → degraded: true → the verdict is review at worst, never a false clear. The SDK and MCP are fail-closed too: no verdict → throw / "do not proceed".
  3. Hard blocks regardless of score: honeypot, sanctioned target, token that can't be sold, poisoned look-alike recipient, unlimited approval to a plain wallet.
  4. Otherwise: weighted risk ≥ 70 → block; any fail or risk ≥ 35 or 2+ warns → review; else clear.
  5. 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

PathWhat
web/The production site and API (Next.js on Vercel): guard, firewall, track record, accounts, x402 payment gate
packages/core/Shared verdict schema + calldata decoder (@warden/core)
mcp/warden402-mcp — stdio MCP server
sdk/warden402-sdk — TypeScript client + LangChain tools
src/Optional standalone Hono API (Node host); a drift test keeps its engine identical to web/
tests/Vitest: decision engine, calldata decoder, firewall policy, drift guard, web signals
bash
npm install && npm test                      # unit testscd web && cp .env.example .env.local && npm run dev   # site + API on :3000

Deploy notes: DEPLOY.md.

License

MIT — see LICENSE.

來源:README.md,提交 c84d05f

工具

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

版本歷史

2
  1. v0.2.0最新Oct 10, 2026
  2. v0.1.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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