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 分