NL

noctedefensor/ludusmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

42 stars 3 forks 质量 70 趋势 0GPL-3.0

noctedefensor/ludusmcp 是从 https://github.com/noctedefensor/ludusmcp. 导入的 MCP 服务器候选

概览

noctedefensor/ludusmcp 是从 https://github.com/noctedefensor/ludusmcp. 导入的 MCP 服务器候选

概述(AI 翻译)

模型上下文协议服务器,用于通过自然语言命令管理Ludus实验室环境。

先修条件

如需详细信息,请参阅维基

系统需求

  • Node.js 18.0.0 或更高版本
  • NPM 包管理器
  • Ludus CLI 二进制文件安装并安装在主机上的 PATH,使用 mcp-client(例如 claude desktop)
  • 主动Ludus服务器环境
  • 通过WireGuard VPN或SSH与Ludus服务器的网络连接

Ludus服务器访问

确保你具备:

  • Ludus 服务器 SSH 访问凭证
  • Ludus API 密钥(通过 ludus user apikey 命令获取)
  • WireGuard配置文件或SSH隧道功能(可从Ludus CLI获取wireguard conf)
  • Ludus 服务器的管理员 USERID。

安装

注意 MCP服务器的安装不在Ludus服务器上。它将安装在拥有MCP客户端(如Claude Desktop)且可访问Ludus服务器的设备上。

全局安装(推荐)

全局安装该软件包,使 ludus-mcp 命令在整个系统范围内可用:

安装过程中会发生什么:

  1. 下载源代码和依赖
  2. 编译适用于你的平台(Windows/Linux/macOS)的原生依赖(keytar)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

LudusMCP

Model Context Protocol server for managing Ludus lab environments through natural language commands.

Prerequisites

For detailed information, please refer to the wiki

System Requirements

  • Node.js 18.0.0 or higher
  • npm package manager
  • Ludus CLI binary installed and in PATH on host with the mcp-client(ex. claude desktop)
  • Active Ludus server environment
  • Network connectivity to Ludus server via WireGuard VPN or SSH

Ludus Server Access

Ensure you have:

  • Ludus server SSH access credentials
  • Ludus API key (obtain via ludus user apikey command)
  • WireGuard configuration file OR SSH tunnel capabilities (obtain wireguard conf from Ludus CLI)
  • Admin USERID for Ludus server.

Installation

NOTE Installation of the MCP server IS NOT on the Ludus server. It will be installed on a device with an MCP client (ex Claude Desktop) that has access to the Ludus server.

Install the package globally to make the ludus-mcp command available system-wide:

npm install -g ludus-mcp@latest
ludus-mcp --setup-keyring

What happens during installation:

  1. Downloads source code and dependencies
  2. Compiles native dependencies (keytar) for your platform (Windows/Linux/macOS)
  3. Builds TypeScript source to JavaScript (src/ → dist/)
  4. Creates global ludus-mcp command in your PATH

This is a one-time installation process that compiles everything for your specific platform.

From Source (Development)

git clone https://github.com/NocteDefensor/LudusMCP.git
cd LudusMCP
From within LudusMCP directory
npm install    # Installs dependencies and builds automatically
npx ludus-mcp --setup-keyring  # Use npx for local from source installations by running it from within clone/install directory

Installation Requirements

The package includes native dependencies that require compilation during installation:

  • Build tools: Node.js build tools (automatically installed)
  • Platform libraries: OS credential manager libraries (Windows Credential Manager, macOS Keychain, Linux libsecret)

If installation fails, ensure you have proper build tools for your platform.

Updating

NPM Global Install

npm install -g ludus-mcp@latest

Local Development Install

cd LudusMCP
git pull origin main
npm install
npm run build

Configuration

Initial Setup

Run the setup wizard to configure credentials securely: (from within cloned directory if installing from source)

npx ludus-mcp --setup-keyring

The setup wizard will prompt for:

  • Connection Method: WireGuard VPN or SSH tunnel
  • Ludus Admin Username: Your Ludus admin account USER ID
  • API Key: Ludus API key from ludus user apikey command.
  • SSH Credentials: Host, username, and authentication method
在 GitHub 查看完整 README

安装

npx ludus-mcp --setup-keyring # Use npx for local from source installations by running it from within clone/install directory
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ludus": { "command": "ludus-mcp" } }, "isUsingBuiltInNodeForMcp": true }