返回市场
sui-MCP服务器

sui-MCP服务器

作者:0xdwong4 星标更新:2025-04-08

项目介绍

Sui MCP 工具

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

🚀 特性

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

📦 安装与配置

安装和配置Sui MCP工具包有两种方法:

方法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": ["<绝对路径到您的项目的>/build/index.js"]
    }
  }
}

配置位置

Claude Desktop配置文件位于:

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

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

重启Claude Desktop使更改生效。

🛠 可用工具

  • 测试网水龙头

    例如:请求SUI给0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa

  • 查看SUI余额

    例如:查看SUI余额给0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa

  • 转移SUI

    例如:转移1 SUI给0x9eb94b1c301505d188f1b97914208b31a5419b57b2a3571169ad2165d41c2ffa

📚 文档