Skip to main content
Glama

validate_server

Check if the Minecraft server directory, JAR file, and EULA are properly configured to ensure the server starts correctly.

Instructions

Check if the server directory, JAR file, and EULA are properly configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `validate_server` tool handler, which invokes `manager.validate()` and returns a summary of the server configuration and validation status.
    server.tool(
      "validate_server",
      "Check if the server directory, JAR file, and EULA are properly configured.",
      {},
      async () => {
        const { valid, errors } = manager.validate();
        const config = manager.getConfig();
        const lines = [
          `Server Directory: ${manager.getServerDir()}`,
          `Server JAR: ${manager.getServerJarPath()}`,
          `RCON: ${config.rconHost}:${config.rconPort}`,
          `Java: ${config.javaPath}`,
          `JVM Args: ${config.jvmArgs.join(" ")}`,
          ``,
          valid ? "✅ All checks passed." : `❌ Issues found:\n${errors.map((e) => `  - ${e}`).join("\n")}`,
        ];
        return { content: [{ type: "text", text: lines.join("\n") }] };
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamo2918/Minecraft-Server-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server