分布式系统检查工具

Shardeum MCP Server是一个为分布式系统检查和开发者工作流设计的工具,通过结构化工具调用提供网络和RPC操作。

  • by abdulazeem-tk4vr
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 abdulazeem-tk4vr/shardeum-mcp-server

使用说明

Shardeum MCP服务器

Shardeum上用于分布式系统检查和开发人员工作流的模型上下文协议服务器。

该项目将Shardeum网络和RPC操作作为结构化MCP工具公开,因此AI代理、IDE助手和开发人员工作流可以通过经过验证的工具调用而不是临时脚本来检查分布式系统状态。它专为代理驱动的调试、节点/网络检查和可重复的开发人员操作而设计。

它展示了什么

  • 用于AI代理工具的MCP服务器实现
  • 分布式系统RPC方法上的结构化工具调用接口
  • 节点、周期、科目、冻结、交易、入库检验
  • IDE与Cursor和MCP兼容客户端集成
  • Docker化部署路径
  • 围绕网络和RPC故障的错误处理
  • 通过MseeP/Smithery徽章对MCP服务器列表进行安全审查

建筑

MCP client / AI agent / Cursor
        |
        v
Shardeum MCP Server
        |
        +-- tool schema
        +-- request validation
        +-- RPC adapter
        +-- error handling
        |
        v
Shardeum RPC endpoint
        |
        v
Structured response to agent

支持的工具区域

网络和节点检查

  • shardeum_getNodeList
  • shardeum_getNetworkAccount
  • shardeum_getCycleInfo

阻止和交易检查

  • eth_blockNumber
  • eth_getBlockByHash
  • eth_getBlockByNumber
  • eth_getBlockReceipts
  • eth_getTransactionByHash
  • eth_getTransactionReceipt
  • eth_getTransactionCount

帐户和执行查询

  • eth_getBalance
  • eth_estimateGas
  • eth_chainId

光标集成

克隆仓库,安装依赖项,并注册MCP服务器:

npm install

光标MCP配置:

{
  "mcpServers": {
    "shardeum-mcp": {
      "command": "node",
      "args": ["path_to/shardeum-mcp-server/index.js"]
    }
  }
}

示例提示:

What is the current Shardeum block number?
List available network nodes and summarize their state.
Fetch the receipt for this transaction and explain the result.
Inspect this account balance and transaction count.

配置

在服务器配置中设置RPC终结点或更新 rpcUrl 针对您的目标环境保持不变。

码头工人

docker build -t shardeum-mcp-server .
docker run --rm shardeum-mcp-server

为什么这不是小事

MCP服务器允许代理对外部系统进行操作访问。该项目将分布式系统RPC调用转换为显式的工具模式,与自由形式的shell或HTTP访问相比,使代理操作更容易验证、调试和约束。

路线图

  • 扩展支持的网络方法
  • 添加具有明确确认门的写安全事务工作流
  • 改进键入的响应和验证
  • 添加更广泛的分布式系统诊断
  • 为MCP兼容客户端添加更多部署示例