McpServerModule

Lifecycle manager for the server-side MCP HTTP endpoint.

Functions

Link copied to clipboard

Returns true if the MCP HTTP server is currently running.

Link copied to clipboard
fun register()

Registers server lifecycle hooks that auto-start/stop the MCP endpoint.

Link copied to clipboard
fun start(server: MinecraftServer)

Starts the MCP server with the current config. Call from commands for runtime enable.

Link copied to clipboard
fun stop()

Stops the MCP server. Call from commands for runtime disable.