S

Sui-MCP测试工具

@0xdwong/sui-mcp
0 Stars 392 次浏览 0xdwong 更新于 2026-08-23

一种与Sui区块链集成的工具包,允许克劳德在用户提供钱包地址时,通过测试网水龙头工具请求测试令牌。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "sui-tools": {
      "args": [
        "\u003cabsolute-path-to-your-project\u003e/build/index.js"
      ],
      "command": "node"
    }
  }
}

可用工具 (3 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

faucet 2 个参数 需填 1 项

Get faucet from sui networks

必填参数:address

balance 2 个参数 需填 1 项

Get balance of an address from sui networks

必填参数:address

sui-transfer 3 个参数 需填 2 项

transfer SUI(in mist) to single or multiple addresses

必填参数:amounts、recipients

服务介绍

Sui MCP 工具

这是一个基于 Sui 区块链的 MCP(模型上下文协议)工具包。该项目提供了与 Sui 区块链交互的功能,并集成了 MCP SDK 以实现模型上下文协议功能。

🚀 特性

  • 使用 TypeScript 开发,确保类型安全
  • 深度集成 Sui 区块链功能
  • 支持多种网络环境(测试网、开发网)
  • 完整的构建脚本和开发工具链

📦 安装与配置

有两种方法可以安装和配置 Sui MCP Tools:

方法 1:使用 npx(推荐)

这是最简单的方法 - 只需将以下配置添加到您的 Claude Desktop 配置文件中:

{
  "mcpServers": {
    "sui-tools": {
      "command": "npx",
      "args": ["-y", "sui-mcp@latest"]
    }
  }
}

方法 2:本地构建

  1. 克隆并安装依赖项:
git clone https://github.com/0xdwong/sui-mcp.git
cd sui-mcp
yarn install
  1. 构建项目:
yarn build
  1. 使用您的本地构建配置 Claude Desktop:
{
  "mcpServers": {
    "sui-tools": {
      "command": "node",
      "args": ["<absolute-path-to-your-project>/build/index.js"]
    }
  }
}

配置位置

Claude Desktop 的配置文件位于:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

您可以通过 Claude Desktop 访问此文件:Claude > 设置 > 开发者 > 编辑配置

重启 Claude Desktop 使更改生效。

🛠 可用工具

  • 测试网水龙头

    例如:为 0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa 请求 SUI

  • 检查 SUI 余额

    例如:检查 0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa 的 SUI 余额

  • 转账 SUI

    例如:向 0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa 转账 1 SUI

📚 文档

相关 MCP 服务