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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/server-tools.ts:106-124 (handler)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") }] }; } );