Package-level declarations

Shared MCP protocol and tool-host foundation. Central location for automation-friendly interfaces to mod functionality.

Types

Link copied to clipboard
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)

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

Link copied to clipboard

Lifecycle manager for the client-side MCP HTTP endpoint.

Link copied to clipboard

HTTP transport for the MCP protocol.

Link copied to clipboard

MCP protocol constants and response builders.

Link copied to clipboard
class McpRequestRouter(tools: List<McpTool>, serverName: String, toolCallListener: (String, Boolean, String?) -> Unit? = null)

Routes incoming MCP JSON-RPC requests to the appropriate handler.

Link copied to clipboard
interface McpTool

Interface implemented by both client-side and server-side MCP tools.