Skip to main content
Glama

restart_server

Restart the Minecraft server to apply configuration changes or resolve issues by stopping and starting the server process.

Instructions

Restart the Minecraft server (stop then start). Useful after configuration changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'restart' method in ServerManager stops and then starts the server.
    /** Restart the server */
    async restart(): Promise<string> {
      const stopResult = await this.stop();
      // Wait a moment for cleanup
      await new Promise((r) => setTimeout(r, 2000));
      const startResult = await this.start();
      return `Stop: ${stopResult}\nStart: ${startResult}`;
    }
  • The 'restart_server' MCP tool is registered here, which calls the manager.restart() method.
    // --- Restart Server ---
    server.tool(
      "restart_server",
      "Restart the Minecraft server (stop then start). Useful after configuration changes.",
      {},
      async () => {
        const result = await manager.restart();
        return { content: [{ type: "text", text: result }] };
      }
    );

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