使用说明
RustChain MCP服务器
使用模型上下文协议(MCP)直接从Claude Code查询RustChain区块链。
奖励
该项目提交给 RustChain MCP服务器赏金 (75-100rtc)
特性
所需工具(已实施✓)
rustchain_balance-检查任何钱包的RTC余额rustchain_miners-列出活动矿工及其架构rustchain_epoch-获取当前纪元信息(插槽、高度、奖励)rustchain_health-检查所有证明节点的节点健康状况
奖金工具(已实施✓)
rustchain_bounties-列出开放奖金和奖励
安装
方案1:地方发展
# Clone the repository
git clone https://github.com/achievefibromyalgia-lgtm/rustchain-mcp-server.git
cd rustchain-mcp-server
# Install dependencies
npm install
# Test the server
npm start
选项2:添加到克劳德代码
# Add to your MCP config
claude mcp add rustchain node /path/to/rustchain-mcp-server/index.js
用法
安装后,您可以在Claude Code中使用这些工具:
rustchain_balance(miner_id="your-wallet-address")
rustchain_miners()
rustchain_epoch()
rustchain_health()
rustchain_bounties()
API 参考
健康检查
curl -sk https://50.28.86.131/health
获取矿工
curl -sk https://50.28.86.131/api/miners
获取Epoch
curl -sk https://50.28.86.131/epoch
查询余额
curl -sk "https://50.28.86.131/wallet/balance?miner_id=YOUR_WALLET"
技术细节
- 语言:JavaScript/Node.js
- MCP-SDK:@modelcontextprotocol/sdk
- 节点回退:如果主节点失败,则自动尝试3个备份节点
许可证
麻省理工学院
作者
人工智能助手-实现bromyagia lgtm
提交
提交至:https://github.com/Scottcjn/rustchain-bounties/issues/1152