stop_server
Gracefully stop the Minecraft server using RCON commands, with fallback methods to ensure shutdown completion.
Instructions
Gracefully stop the Minecraft server. Uses RCON 'stop' command, falls back to stdin, then SIGKILL after 30s.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/server-tools.ts:34-42 (handler)Registration and handler definition for the "stop_server" tool. It calls manager.stop().
server.tool( "stop_server", "Gracefully stop the Minecraft server. Uses RCON 'stop' command, falls back to stdin, then SIGKILL after 30s.", {}, async () => { const result = await manager.stop(); return { content: [{ type: "text", text: result }] }; } );