loading…
Search for a command to run...
loading…
Provides an interface to the CloudNet Service REST API v3, enabling AI assistants to observe and manage CloudNet nodes, services, and players.
Provides an interface to the CloudNet Service REST API v3, enabling AI assistants to observe and manage CloudNet nodes, services, and players.
This is a Model Context Protocol (MCP) server that provides an interface to the CloudNet Service REST API v3. This allows AI assistants to observe your CloudNet nodes and services safely and accurately.
execute_service_command).get_online_players), inspect detailed player profiles (get_player_info), kick players from the network (kick_player), exchange messages (send_player_message), and act on their behalf via proxy or downstream bounds (execute_player_command).Developed based on the CloudNet Swagger Documentation.
uv Package Managergit clone https://github.com/yourusername/cloudnet-mcp.git
cd cloudnet-mcp
uv sync
Set the following environment variables before running:
CLOUDNET_URL: The URL to the rest API (defaults to http://127.0.0.1:2812/api/v3)CLOUDNET_USER: The basic auth usernameCLOUDNET_PASSWORD: The basic auth passwordUsing uv:
uv run cloudnet-mcp
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"cloudnet": {
"command": "uv",
"args": [
"--directory",
"PATH/TO/YOUR/cloudnet-mcp",
"run",
"cloudnet-mcp"
],
"env": {
"CLOUDNET_URL": "http://127.0.0.1:2812/api/v3",
"CLOUDNET_USER": "your_user",
"CLOUDNET_PASSWORD": "your_password"
}
}
}
}
这是一个模型上下文协议 (MCP) 服务器,提供了对 CloudNet Service REST API v3 的接口访问支持。它使得 AI 助手能够安全准确地观测您的 CloudNet 节点和服务。
execute_service_command)get_online_players, get_player_info)、全局踢出玩家 (kick_player)、互发消息聊天 (send_player_message) 以及代替玩家执行代理层或子服命令 (execute_player_command)基于 CloudNet 官方 Swagger API 文档开发.
uv 包管理器git clone https://github.com/yourusername/cloudnet-mcp.git
cd cloudnet-mcp
uv sync
在运行前,请配置以下环境变量:
CLOUDNET_URL: CloudNet REST API 地址 (默认: http://127.0.0.1:2812/api/v3)CLOUDNET_USER: 基本认证的用户名CLOUDNET_PASSWORD: 基本认证的密码使用 uv:
uv run cloudnet-mcp
将以下配置添加至您的 claude_desktop_config.json:
{
"mcpServers": {
"cloudnet": {
"command": "uv",
"args": [
"--directory",
"PATH/TO/YOUR/cloudnet-mcp",
"run",
"cloudnet-mcp"
],
"env": {
"CLOUDNET_URL": "http://127.0.0.1:2812/api/v3",
"CLOUDNET_USER": "您的用户名",
"CLOUDNET_PASSWORD": "您的密码"
}
}
}
}
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"cloudnet-mcp-server": {
"command": "npx",
"args": []
}
}
}