模型上下文协议(MCP)是一种突破性的标准化方法,它增强了 AI 助手的语境感知能力,让其能执行更具体的操作。这个迅速崛起的协议吸引了众多开发者的目光,成为人工智能集成领域令人兴奋的创新之一。
雪崩 MCP 工具将整个 Avalanche CLI 命令集和 AvalancheJS API 转化为直观的 AI 交互,实现了区块链访问的民主化。它具有以下优势:
# 克隆仓库
git clone https://github.com/yourusername/avalanche-mcp-tools.git
cd avalanche-mcp-tools
# 安装依赖项
npm install
# 构建项目
npm run build
npm start
MCP 服务器运行在 stdio 上,允许其与支持 MCP 工具的 AI 助手集成。
例如与 Claude 的对话:
用户:列出我所有的 Avalanche 区块链
Claude:我会检查您的 Avalanche 区块链。
[使用 blockchainList MCP 工具]
以下是您的 Avalanche 区块链:
- mySubnet(已部署)
- testChain
- devNet
等等更多功能...
# 克隆仓库
git clone https://github.com/yourusername/avalanche-mcp-tools.git
cd avalanche-mcp-tools
# 安装依赖项
npm install
# 构建项目
npm run build
# 启动 MCP 服务器
npm start
用户:列出我所有的 Avalanche 区块链
Claude:我会检查您的 Avalanche 区块链。
[使用 blockchainList MCP 工具]
以下是您的 Avalanche 区块链:
- mySubnet(已部署)
- testChain
- devNet
avalanche-mcp-tools/
├── src/
│ ├── tools/
│ │ ├── blockchainList.js
│ │ └── blockchainPublish.js
│ └── index.js
└── package.json
npm test
git checkout -b feature/your-feature-namegit commit -m '添加新功能'git push origin feature/your-feature-name在 GitHub 仓库中提交问题或拉取请求。
[项目许可证信息]