
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 分