Package-level declarations
Types
run_command target=client.run_command tool's target=client — i.e.Runs a Minecraft command on the server thread and captures its chat feedback, for the run_command MCP tool. Vanilla mechanism throughout: a custom CommandSource collects the feedback the command would normally print, attached to a server-level (OP) CommandSourceStack, executed via Commands#performPrefixedCommand.
The single MCP endpoint the mod exposes: Streamable HTTP, bound to loopback, Bearer-token gated. Three tools: execute_code (runs Kotlin inside the running game via ReplBridge), run_command (runs a Minecraft command) and take_screenshot (the client's framebuffer, as an image).
Captures the game's framebuffer for the take_screenshot tool.
Functions
eval's outcome, writing a space every second meanwhile: whitespace before the JSON is harmless, and a write is the only thing that notices a hangup — as the IOException it throws. ex is null for a notification.