McpClientConfig

data class McpClientConfig(var enabled: Boolean = false, var port: Int = DEFAULT_PORT, var apiKey: String = "", var autoStart: Boolean = true, var safetyEnabled: Boolean = true, var maxAreaSize: Int = DEFAULT_MAX_AREA_SIZE, var allowedCommands: List<String> = DEFAULT_ALLOWED_COMMANDS, var maxEntitiesPerCommand: Int = DEFAULT_MAX_ENTITIES, var maxBlocksPerCommand: Int = DEFAULT_MAX_BLOCKS, var requestTimeoutMs: Int = DEFAULT_TIMEOUT_MS, var showToolLogs: Boolean = true)(source)

Client-side MCP configuration, saved to config/evermod-mcp-client.json.

Independent of com.evermod.lorekeeper.LorekeeperConfig (server-side). Each player has their own client config on their machine.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, port: Int = DEFAULT_PORT, apiKey: String = "", autoStart: Boolean = true, safetyEnabled: Boolean = true, maxAreaSize: Int = DEFAULT_MAX_AREA_SIZE, allowedCommands: List<String> = DEFAULT_ALLOWED_COMMANDS, maxEntitiesPerCommand: Int = DEFAULT_MAX_ENTITIES, maxBlocksPerCommand: Int = DEFAULT_MAX_BLOCKS, requestTimeoutMs: Int = DEFAULT_TIMEOUT_MS, showToolLogs: Boolean = true)

Types

Link copied to clipboard
object Companion

Constants, defaults, and factory methods for loading client MCP config.

Properties

Link copied to clipboard

whitelist of allowed command names

Link copied to clipboard

bearer token required to authenticate MCP requests

Link copied to clipboard

whether to start the MCP server automatically on join

Link copied to clipboard

whether the client MCP endpoint is active

Link copied to clipboard

maximum blocks per axis for area scans

Link copied to clipboard

maximum blocks allowed per fill command

Link copied to clipboard

maximum entities allowed per command

Link copied to clipboard
var port: Int

TCP port for the client MCP HTTP server

Link copied to clipboard

HTTP request timeout in milliseconds

Link copied to clipboard

whether command safety validation is enabled

Link copied to clipboard

whether to show in-game [MCP] tool call notifications

Functions

Link copied to clipboard
fun save(): Boolean

Writes this config to disk. Returns true on success.