Rustok Wallet

io.github.rustok-org由 GitHub 账号 rustok-org 发布v0.4.2更新于 Oct 24, 2026

Self-custody Ethereum agent wallet (MCP/stdio). Keys stay in a local Docker volume.

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

概览

AI 生成的概览

自托管以太坊代理钱包 MCP 服务器,让助手读取钱包余额、预览交易,并在授权后执行转账,私钥保留在本机。

可以做什么
读取钱包状态与各链余额(read_wallet 能力)。
适用场景
当你希望 AI 代理查看自托管以太坊钱包,或在明确授权下准备并发送交易,同时私钥始终留在自己机器上时使用。
运行要求
以 Docker 镜像通过 stdio 在本机运行,需要 Docker。钱包需先用 PIN 和助记词初始化。能力需显式授予(例如通过 RUSTOK_MCP_CAPABILITIES);链由 RUSTOK_ALLOWED_CHAINS 设定,可提供自定义 RPC 地址或 Alchemy 密钥。需要访问 RPC 节点的网络。
安装前请注意
这是持有真实资金的钱包:代理版无需人工批准即可签名,且没有硬编码的消费限额,代理可能转走资金。助记词和 PIN 属敏感信息;密钥保存在本地 Docker 卷中。交易预览和余额查询会发往 RPC 节点,节点可获知地址和 IP。面向网络的 SSE 传输需要 bearer 令牌且无内置限流,不应直接暴露在公网。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

rustok-mcp

[CI] [License: MIT-0]

MCP Server for Rustok — connects Claude Desktop, Cursor, and cloud agents to the Rustok wallet via Gateway.

Two editions

Rustok ships two wallet products — pick the trust model you want:

rustok-wallet (agent edition)rustok-wallet-tui (this repo)
Who signsthe agent, unrestrictedyou, in a separate terminal (rustok-console, y/N + PIN)
Whererustokwallet.com · ClawHub · image ghcr.io/rustok-org/rustok-walletthis repo (main) · ClawHub · image ghcr.io/rustok-org/rustok-wallet-tui
Line0.4.x (maintained from the wallet-v0.4.0 tag)0.5.x+

Install (rustok-wallet-tui, self-custody)

Install trusted cosign 3+ independently, then use the verify-before-execute bootstrap in the published release skill. It downloads over --proto '=https' --tlsv1.2, verifies the manifest signature and installer hash before running the installer. There is no pipe-to-shell path. The repository skill is an unfilled source template; install wallet binaries only from the generated release/listing package.

sh
rustok init             # you choose a 6-digit PIN; the recovery phrase prints oncerustok connect claude   # read-only; also cursor / hermes / openclaw

rustok connect claude --force --capabilities read_wallet,preview_tx,execute_tx requires confirmation in the user's own terminal before expanding rights. Core policy and PIN remain separate from the capability grant. rustok update verifies a signed release and preserves explicit subsets; live sessions retain their old image/grants until a human restart. There are no hard-coded spending limits after the user acknowledges unlimited autonomy.

The wallet is one self-contained image (Core + Gateway + MCP over stdio + the human-approval console); keys live only in a local container volume and never leave your machine. Transactions that move funds are approved by a human in a second terminal with rustok console — the agent cannot drive it.

Install as an agent skill

The wallet skill (skills/rustok-wallet-tui/) installs straight from this repo:

bash
# skills CLI (Claude Code, Cursor, and other agents) — https://skills.shnpx skills add rustok-org/mcp
# Hermes Agenthermes skills tap add rustok-org/mcphermes skills install rustok-org/mcp/rustok-wallet-tui

Both editions are on ClawHub as separate listings: the agent edition at @temrjan/rustok-wallet, and the console edition — the maintained one — at @rustok/wallet, published as Rustok Agentic Wallet.

Registries

  • Official MCP Registry — the agent edition is published as io.github.rustok-org/rustok-wallet (OCI package ghcr.io/rustok-org/rustok-wallet, stdio). A TUI-edition registry entry ships separately as io.github.rustok-org/rustok-wallet-tui.
  • ClawHub — two listings: the console edition (maintained) at @rustok/wallet, and the agent edition at @temrjan/rustok-wallet.

Quick Start (Development)

bash
# Install dependenciesuv sync --dev
# Run the serveruv run rustok-mcp
# Or run stdio transportuv run rustok-mcp-stdio

Docker

bash
docker build -t rustok-mcp .docker run -p 127.0.0.1:3001:3001 -e RUSTOK_MCP_HOST=0.0.0.0 rustok-mcp

To run the full stack (MCP → Gateway → Core + Redis), use the compose file in rustok-org/meta.

Authentication

The network-facing SSE transport is gated by a shared bearer token.

  • Inbound (RUSTOK_MCP_INBOUND_API_KEY) — clients must send Authorization: Bearer <token> to reach /mcp/sse and /mcp/message. Distinct from the outbound RUSTOK_MCP_API_KEY (MCP → Gateway).
  • Dev: leave it empty — the loopback flow stays open and the server logs a warning at startup.
  • Prod: required. The token must travel in the request header, never in a query string (query strings leak into access logs). Generate one with openssl rand -hex 32.
  • The browser EventSource API cannot set headers and is not a supported client; use an MCP client that sends request headers.
  • /health is always public (used by the container healthcheck).
  • The local stdio transport is process-trusted and not gated.

⚠️ The MCP has no built-in brute-force / rate-limit protection. Terminate it behind the edge proxy (Caddy) with host-level rate limiting (see the rustok-org/meta deploy docs); do not expose it to the internet directly.

What is Rustok?

Rustok is a self-custody AI-native crypto wallet. The MCP Server is a thin bridge between LLM agents and the Rustok Gateway — private keys never leave the Core service (they stay in the local keystore volume).

  • Self-custody: keys are encrypted at rest (Argon2id + AES-256-GCM) and only decrypted inside Core on your machine.
  • Capability-gated tools (read_wallet / preview_tx / execute_tx): the stdio transport defaults to read-only (explicit grants use RUSTOK_MCP_CAPABILITIES); the network-facing SSE transport is bearer-gated.
  • No spending policy by design: no hard-coded limits, budgets, or blocklists — you consciously accept the risk of funds on the agent wallet. txguard surfaces a risk level on preview but does not block. Opt-in limits may come later.
  • Chains: RUSTOK_ALLOWED_CHAINS decides which ones are shown (default 1,8453,42161 — Ethereum, Base, Arbitrum). Those read out of the box: the build carries two public nodes for each. Naming your own (RUSTOK_RPC_URLS_<id>, or an Alchemy key) replaces the carried list rather than joining it. Any node that reads a balance learns the address and the IP that asked — that is true of ours, yours, and your provider's alike.
  • Informed preview: preview_transaction returns the decoded call (who/what is authorized), a pre-sign simulation (revert check), gas, and a txguard risk level. Execution is not exposed as an MCP tool.
  • Audit logging: every action is append-only logged to SQLite in Core.

Documentation

License

This repository is licensed under MIT-0.

The warranty and liability terms it carries, and the limit of every safeguard this wallet advertises, are stated in full here: https://github.com/rustok-org/mcp/blob/main/DISCLAIMER.md

The Rustok Core wallet engine is a proprietary artifact built from the private rustok-org/core repository.

来源:README.md,提交 209d422

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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