Cloaked Agent

io.github.CloakedAgent由 GitHub 账号 CloakedAgent 发布v0.2.0更新于 Oct 24, 2026

Trustless spending accounts for AI agents on Solana with on-chain enforced limits.

已验证STDIO仅桌面金融开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为 AI 助手提供带链上限额的 Solana 支出账户,可查询余额并支付 SOL 或 USDC。

可以做什么
查询代理金库的可用余额和代币余额,并从链上状态读取支出限额与约束。在单笔、每日和总额限额内向目标地址发送 SOL 或 USDC。自动支付并获取受 x402 保护的资源。可选启用带单代币约束的 USDC,以及隐藏钱包与代理关联的隐私模式。
适用场景
当你希望助手为按次计费的 API 付费或发送小额加密货币,而支出上限由 Solana 程序强制执行而非依赖对代理的信任时使用。
运行要求
通过 npx 从 npm 包以 stdio 在本地运行,仅支持桌面客户端。需要 CLOAKED_AGENT_KEY(base58 编码的代理私钥);可选 CLOAKED_BACKEND_URL 和 SOLANA_RPC_URL,后者默认使用 Solana devnet 端点。需要访问 Solana RPC 和后端的网络。
安装前请注意
CLOAKED_AGENT_KEY 是控制有资金金库的私钥,持有者可在限额内操作。助手可转移真实资金并自动进行 x402 支付,应谨慎设置限额并先在 devnet 上试用。请求会发送到所配置的后端和 Solana RPC 端点。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@cloakedagent/sdk

Trustless spending accounts for AI agents on Solana

Give AI agents spending power without giving them your wallet keys. On-chain enforced limits they literally cannot bypass.

Documentation · Website · GitHub

Installation

bash
npm install @cloakedagent/sdk

Quick Start

For AI Agents (MCP)

Add to your Claude Desktop or MCP-compatible client:

json
{  "mcpServers": {    "cloaked": {      "command": "npx",      "args": ["@cloakedagent/sdk/mcp"],      "env": {        "CLOAKED_AGENT_KEY": "your-agent-key-here"      }    }  }}

For Developers

typescript
import { CloakedAgent } from "@cloakedagent/sdk";
// Load agent from keyconst agent = new CloakedAgent(agentKey, rpcUrl);
// Check balanceconst balance = await agent.getBalance();
// Spend within limitsawait agent.spend({  destination: recipientPubkey,  amount: 100_000_000 // 0.1 SOL in lamports});
// Spend USDCawait agent.spendToken({  destination: recipientPubkey,  mint: USDC_MINT,  amount: 5_000_000 // 5 USDC});

Features

  • On-chain constraints - Per-tx, daily, and total limits enforced by Solana program
  • MCP integration - Works with Claude and other AI agents via Model Context Protocol
  • x402 support - Automatic payment for pay-per-use APIs
  • USDC support - Send USDC with per-token spending constraints
  • Privacy mode - Optional ZK proofs to hide wallet-agent link

API

CloakedAgent

typescript
// Create from agent keyconst agent = new CloakedAgent(agentKey: string, rpcUrl: string);
// Propertiesagent.publicKey      // Agent's public keyagent.vaultPda       // Vault address (holds funds)agent.agentStatePda  // State account address
// Methodsawait agent.getBalance()           // Get vault balance in lamportsawait agent.getStatus()            // Get full status with constraintsawait agent.spend({ destination, amount })  // Spend SOLawait agent.spendToken({ destination, mint, amount }) // Spend USDCawait agent.getTokenBalance(mint)   // Get token balanceawait agent.enableToken(owner, mint, constraints) // Enable USDC

MCP Tools

When running as MCP server, provides these tools:

  • cloak_balance - Check available balance
  • cloak_status - Get spending limits and constraints
  • cloak_pay - Send SOL or USDC to destination
  • cloak_x402_fetch - Fetch x402-protected resources with auto-payment

License

MIT

来源:sdk/README.md,提交 b9f1ee8

工具

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

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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