<!-- 协议兼容性 --> <!-- 持续集成与持续部署 --> <!-- 规范 --> <!-- 社区与许可 -->
Axone 的 MCP 服务器是一个轻量级实现,通过标准化的模型上下文协议暴露Axone的能力。
flowchart LR
classDef actor stroke:#808
classDef system stroke:#0ff
classDef resource stroke:#f00
actor:::actor@{ shape: stadium, label: "具有MCP客户端的主机<br>(Claude, IDEs, 工具)" }
mcpServer:::system@{ shape: rounded, label: "Axone<br>MCP服务器" }
axone:::system@{ shape: das, label: "🔗 Axone链" }
actor -- 查询 --> mcpServer
mcpServer -. 查询 .-> axone
get_resource_governance_code获取附加到给定资源的治理代码(如果有)。
{
"dataverse": {
"type": "string",
"description": "数据宇宙合约的地址"
},
"resource": {
"type": "string",
"description": "资源的DID URI"
}
}
获取最新发行版,并将其放置在您的$PATH中或易于访问的位置。
在您的 claude_desktop_config.json Claude Desktop 配置文件中添加以下内容:
{
"mcpServers": {
"axone": {
"command": "axone-mcp",
"args": [
"serve",
"stdio",
"--node-grpc",
"grpc.dentrite.axone.xyz:443"
]
}
}
}
标志:
--node-grpc: 要连接的Axone节点的gRPC端点。axone-mcp serve sse --listen-addr localhost:8080 --node-grpc grpc.dentrite.axone.xyz:443
axone-mcp serve stdio --node-grpc grpc.dentrite.axone.xyz:443
make build