@cloakely/mcp

中文文档
0.9.2发布于 2026/11/08MITTypeScriptES Module构建来源已验证近 30 天下载 3548

Cloak's MCP server: let an AI agent launch tokens with sealed bids and trade them privately on Elysium, with spending limits, testnet by default and a local signer.

原始使用文档
文档目录5 节
  1. Connect by link
  2. Set up the local server
  3. Tools
  4. Safety
  5. Configuration

@cloakely/mcp

Cloak's MCP server. It lets an AI agent launch tokens with sealed bids and trade them privately on Kinetiq's Elysium, from Claude, Cursor or any MCP client.

An agent that trades on chain leaks its strategy with every transaction, and anyone can copy or front-run it. With Cloak, its bids stay sealed until bidding closes, and its trades come from a private balance: each one is proven on the agent's machine and sent by a relayer, so the agent's wallet never appears on them.

Testnet only for now (Elysium testnet, chain 99801). Play money only.

The easy way: tell your agent

Read https://cloak.boblabs.tech/agent.md and set me up to trade privately.

That page is written for agents. The agent sets up its own wallet and the connection, and asks you only for what it can't do itself (free testnet HYPE from the faucet). It never needs your own wallet's key.

There are two ways in:

Hosted linkLocal server (this package)
InstallNothing: paste https://cloak.boblabs.tech/mcpnpx -y @cloakely/mcp
Can doRead and plan: launches, quotes, vault totals, launch plansEverything: launch, bid, claim, shield, private swaps, batch orders, private sends, withdrawals
KeysNone. It never signs and refuses calls that look like they carry a keyYour agent's wallet, on your machine only
  • Claude (claude.ai or Desktop): Settings, Connectors, Add custom connector, then paste https://cloak.boblabs.tech/mcp.
  • ChatGPT: turn on developer mode under Apps and connectors, then add a connector with the link and no authentication.
  • Claude Code: claude mcp add --transport http cloak https://cloak.boblabs.tech/mcp
  • Cursor, VS Code and others: { "mcpServers": { "cloak": { "url": "https://cloak.boblabs.tech/mcp" } } }

Its tools: cloak_info, list_launches, get_launch, quote_bid, quote_swap, vault_stats, plan_launch and connect_full_agent. It's stateless (each request gets a fresh server and nothing is kept) and rate limited. You can serve it yourself from any runtime that speaks web Request/Response: import { handleMcpRequest } from "@cloakely/mcp/http".

Set up the local server

Make the agent's own wallet. It's saved in ~/.cloak-agent-key, readable by you only, and the key is never printed:

npx -y @cloakely/mcp setup

It prints the wallet's address. Fund it with free testnet HYPE from the Elysium faucet. Running it again keeps the same wallet.

Claude Code:

claude mcp add cloak -- npx -y @cloakely/mcp

Claude Desktop, Cursor and other clients (claude_desktop_config.json, .cursor/mcp.json, and so on):

{
  "mcpServers": {
    "cloak": { "command": "npx", "args": ["-y", "@cloakely/mcp"] }
  }
}

The server uses ~/.cloak-agent-key when nothing else is set. To use another wallet, set CLOAK_KEY_FILE (or CLOAK_PRIVATE_KEY) in the server's env.

Without a key (no ~/.cloak-agent-key and nothing set), the server is read only: the agent can browse launches and quote bids and swaps, but can't sign anything.

Then ask, for example:

  • "What Cloak launches are open right now?"
  • "Launch a token called Ember, 1M for sale, starting at 0.000001 HYPE, bidding open for an hour."
  • "Bid on EMBR up to 0.00002 HYPE for 50,000 tokens. Dry run first."
  • "Shield 0.5 HYPE, then buy CLOAK privately with 0.1 of it."
  • "Send 0.05 private HYPE to cloak:…, then withdraw the rest to 0x…"
  • "Make a red envelope: 0.1 HYPE split into 5 shares, with the message gm"

Tools

GroupToolWhat it does
Readcloak_infoNetwork, contracts, the wallet and its public balances, spending limits with what's left today
list_launchesLaunches, newest first, with phase, timing, prices and whether private trading is on
get_launchOne launch in full: timing, prices, caps, results, revealed demand once bids open
quote_bidThe price tick, cost and rounded deposit for a bid
quote_swapExpected output of a private buy or sell, with the fees
vault_statsHow much sits in each private vault (totals only)
Launchcreate_launchStart a sealed-bid launch
place_sealed_bidCommit a sealed bid. It opens by itself after bidding closes
my_bidsThe wallet's bids: opened, claimed, tokens won, refund
claimSettle if nobody has, then claim tokens and refunds
enable_private_tradingOpen a private vault for a settled launch's token
NFT dropslist_dropsSealed NFT drops and WL spot sales, newest first, with phase, floor, WL boost and results
get_dropOne drop in full: timing, floor, results, whether a wallet is on its GTD list or WL, and a spot sale's whitelist
place_drop_bidSeal a bid at the floor or more. A WL wallet gets its boost automatically
my_drop_bidsThe wallet's bids on a drop: sealed or opened, won, paid, refund
claim_dropTake NFTs (optionally to a fresh wallet) and refunds now, without waiting for the keeper
set_whitelist_walletsIn a WL spot sale you won, name the Elysium wallets to whitelist, one per spot, until the deadline
PrivateunlockDerive the private account from one local signature and return its cloak: address
private_balanceHYPE, USDC and launch tokens held privately
shieldHYPE or USDC from the wallet into the private balance (the one public step)
private_swapBuy or sell a launch token from the private balance
batch_orderTrade in standard sizes inside a batch round, which hides the trade's size
private_sendPay a cloak: address. Sender, recipient and amount stay hidden
withdrawPrivate balance to a normal address (ideally a fresh one)
create_payment_linkHYPE or USDC in a link anyone can claim, to a private balance or any wallet with no gas. Message, passcode and riddle, or split into shares (a red envelope)
claim_payment_linkClaim a link into the private balance or to a 0x address; also takes back your own unclaimed link
check_payment_linkWhat a link still holds, and how many shares are left
request_payment_linkA link that asks to be paid HYPE or USDC, with an optional amount, note and name
pay_payment_requestPay a request link from the private balance, the exact amount asked

Amounts are in whole units ("0.5" HYPE). private_send, withdraw and a private_swap sell accept "max".

Safety

  • Spending limits. Every action that moves value is checked first: bids, shields, swaps (either side, valued in HYPE at the pool price), batch orders, sends and withdrawals. There's a cap per transaction and per UTC day for HYPE value, a separate one for USDC, and a number of launches per day. The day's totals are kept in ~/.cloak-mcp, so restarting the server doesn't reset them.
  • Dry run. Every write tool takes dry_run: true and returns exactly what it would do, without signing or sending anything. CLOAK_DRY_RUN=1 makes every write a dry run.
  • Testnet by default. Mainnet needs CLOAK_NETWORK=mainnet and CLOAK_ALLOW_MAINNET=1, and isn't live yet.
  • The key stays on your machine. It signs locally and is never sent anywhere. The private account is derived from a local signature, and proofs are generated locally (the circuit files are downloaded once and checked against the hashes pinned in @cloakely/sdk). The relayer only sees proofs, which it can submit but can't change.
  • One write at a time, so two calls never spend the same private notes.
  • Give the agent a dedicated wallet with only what you're willing to let it spend.

Configuration

VariableDefault
CLOAK_KEY_FILE~/.cloak-agent-key if it existsFile holding the agent wallet's private key
CLOAK_PRIVATE_KEYThe key itself, if a file isn't practical
CLOAK_NETWORKtestnettestnet, or custom with CLOAK_DEPLOYMENT_FILE
CLOAK_MAX_HYPE_PER_TX1HYPE value per transaction
CLOAK_MAX_HYPE_PER_DAY10HYPE value per UTC day
CLOAK_MAX_USDC_PER_TX100USDC per transaction
CLOAK_MAX_USDC_PER_DAY1000USDC per UTC day
CLOAK_MAX_LAUNCHES_PER_DAY3Launches per UTC day
CLOAK_DRY_RUN1 turns every write into a dry run
CLOAK_STATE_DIR~/.cloak-mcpDaily spend totals and bid receipts
CLOAK_RPC_URLElysium testnet RPC
CLOAK_RELAYER_URLCloak's hosted relayer
CLOAK_CIRCUITS_DIRdownloadFolder with transaction2x2.wasm and transaction2x2_final.zkey

Built on @cloakely/sdk. Source: NECOKIZZ/Cloak. MIT.

版本与发布记录

@cloakely/mcp 共发布 19 个版本,首次发布于 2026/10/30;过去 12 个月发布了 19 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.9.2latest2026/11/081 天前
0.9.12026/11/072 天前
0.9.02026/11/072 天前
0.8.52026/11/073 天前
0.8.42026/11/063 天前
0.8.32026/11/046 天前

关于 @cloakely/mcp 的常见问题

@cloakely/mcp 是什么?

Cloak's MCP server: let an AI agent launch tokens with sealed bids and trade them privately on Elysium, with spending limits, testnet by default and a local signer.

如何安装 @cloakely/mcp?

在项目目录运行 npm install @cloakely/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 cloak-mcp,可以用 npx cloak-mcp 直接运行。

@cloakely/mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cloakely/mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cloakely/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cloakely/mcp 可以商用吗?

@cloakely/mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cloakely/mcp 的下载量有多少?

根据 npm 官方下载统计,@cloakely/mcp 在 2026/10/10 – 2026/11/08 这 30 天内被下载 3,548 次,日均约 118 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cloakely/mcp 还在维护吗?

最新版本 0.9.2 发布于 2026/11/08(1 天前);至今共发布 19 个版本,其中过去 12 个月发布了 19 个;首次发布于 2026/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。