Agent Wallet

io.github.dingdawg由 GitHub 账号 dingdawg 发布v1.0.6更新于 Oct 24, 2026

Governed USDC wallet for AI agents — policy gates, spending caps, and Ed25519-signed receipts.

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

一个本地 MCP 服务器,为 AI 助手提供受管控的 USDC 钱包,带消费上限、白名单和签名审计回执。

可以做什么
按消费策略创建钱包:每日上限、单次调用上限和收款方白名单,并可在运行时修改这些限制。执行受管控的支出,先按策略检查,再授权、拒绝或要求升级审批,并返回要执行的 SDK 调用。接收付款并生成防篡改回执。审计完整回执链(含被拒记录),并校验其未被改动。
适用场景
适用于让智能体自主转移 USDC、同时需要强制限额以及可证明其花费与未花费记录的场景。也适合已通过 Coinbase AgentKit 等工具包为智能体配置钱包、需要在其上加一层策略控制的团队。
运行要求
作为本地进程从 npm 包安装运行,需要 Node.js。README 称演示无需 API 密钥,也无需区块链。清单未声明任何环境变量或请求头。
安装前请注意
该服务器涉及真实资金:会创建钱包并授权 USDC 支出,应谨慎设置上限和白名单。支出与收款操作会转移资金并写入审计记录。升级审批需要来自自有授权流程的 approval token。README 的演示步骤会克隆并运行第三方仓库中的代码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Wallet,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

dingdawg-agent-wallet — live demo

Shows governed agent wallet enforcement in action: allow, deny, step-up, allowlist — all in 5 seconds. No API keys. No blockchain required.


What it demonstrates

▶ provision_wallet  wallet_id:    demo-wallet-abc123  daily_cap:    $200 USDC  per_call_cap: $100 USDC
▶ governed_spend — $25 USDC (allowed)  ✓ AUTHORIZED  receipt_id:      6aba84a6-...  daily_remaining: $175 USDC  next_step:       wallet.sendToken({ assetId: "usdc", amount: "25", destination: "0xVendorABC123" })
▶ governed_spend — $150 USDC (exceeds per-call cap)  ✗ DENIED  reason:      Amount 150 USDC exceeds per-call cap 100 USDC  receipt_id:  cd7a7aa8-... (denial is logged too)
▶ governed_spend — $75 USDC (step-up required)  ⚠ STEP-UP REQUIRED  reason: Amount 75 USDC > step-up threshold 50 USDC — MFA required  fix:    Pass approval_token from your authorization flow
▶ governed_spend — unknown recipient (not in allowlist)  ✗ DENIED  reason: Recipient 0xUnknownAddress not in allowlist
▶ wallet_audit  chain_verified: true ✓  total_receipts: 5  [17:02:18] DENY  $10 USDC    governed_spend  [17:02:18] DENY  $75 USDC    governed_spend  [17:02:18] DENY  $150 USDC   governed_spend  [17:02:18] ALLOW $25 USDC    governed_spend  [17:02:18] ALLOW              provision_wallet

Every action — allow AND deny — produces an immutable receipt. chain_verified: true means the full chain is tamper-evident — any modification is detectable.


Run it

bash
git clone https://github.com/DingDawg/agent-wallet-democd agent-wallet-demonpm installnode demo.mjs

The package

dingdawg-agent-wallet — 5 MCP tools that wrap any agent wallet with policy enforcement and an immutable audit trail.

bash
npm install dingdawg-agent-wallet
ToolWhat it does
provision_walletCreate wallet with spend policy (daily cap, per-call cap, allowlist)
governed_spendPolicy check → authorize → immutable receipt
governed_receiveAccept payment with tamper-evident receipt
wallet_policyUpdate limits and allowlists at runtime
wallet_auditFull receipt chain — chain_verified: true

Coinbase AgentKit gives your agent a wallet. DingDawg gives it a conscience.


Why this matters

AI agents can now hold USDC and spend autonomously. The infrastructure exists. What doesn't: who enforces what the agent is allowed to spend, on what, for whom — and proves it happened correctly.

  • governed_spend authorizes then returns the exact agentkit_call SDK method to execute on-chain
  • Every denial is logged — you can prove what your agent didn't do
  • chain_verified: true means the audit trail is tamper-evident — any modification is detectable

npm · DingDawg

来源:README.md,提交 361d64e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。