ellymud
Verified Safeby ellyseum
Overview
AI integration with a Node.js-based Multi-User Dungeon (MUD) game server, enabling AI agents to interact with game logic.
Installation
npm startEnvironment Variables
- NODE_ENV
- JWT_SECRET
- ELLYMUD_MCP_API_KEY
- STORAGE_BACKEND
- DATABASE_URL
- REDIS_URL
- USE_REDIS
- DIRECT_ROOMS_DATA
- DIRECT_USERS_DATA
- DIRECT_ITEMS_DATA
- DIRECT_NPCS_DATA
Security Notes
The server includes an MCP (Model Context Protocol) endpoint that allows AI agents to interact with the game. This endpoint requires an API key for authentication. A significant security concern is the exposure of `child_process.execFileSync` via RPC methods (`sync_to_hub`, `sync_from_hub`) within `src/mcp/mcpServer.ts`. While the arguments passed to these shell scripts are hardcoded to an empty array (mitigating direct command injection), the ability to trigger shell scripts remotely via an API call represents a high-privilege operation. If the `ELLYMUD_MCP_API_KEY` is compromised, this could potentially be exploited through manipulating the scripts themselves (if file permissions allow modification by the server process) or by triggering resource exhaustion. Additionally, user input is handled by a command registry and state machine, which includes basic sanitization (trimming, lowercasing) and specific checks for sensitive commands (passwords are masked in logs). However, robust input validation is critical for all commands that can modify game state or interact with other users.
Similar Servers
mcp-game-asset-gen
An MCP server for generating various game development assets, including images, videos, audio, and 3D models using multiple AI providers.
mcp-ai-agent
This repository provides an AI agent designed to interact with and control entities within a Multi-Client Protocol (MCP) environment, likely a game or simulation.
agents-mcp-usage
This repository demonstrates the integration of a Model Context Protocol (MCP) server with various AI agent frameworks, showcasing agent communication and operation within a shared context.
kStock-mcp-server
This server provides an MCP (Micro-Capability Protocol) interface to interact with the Korean Investment API, enabling functionalities like fetching stock prices, account information, financial data, and executing stock buy/sell orders.