McpHttpServerConfig

data class McpHttpServerConfig(val port: Int, val tools: List<McpTool>, val serverName: String, val authValidator: (HttpExchange) -> Boolean, val toolCallListener: (String, Boolean, String?) -> Unit? = null)(source)

Configuration for an McpHttpServer instance.

Constructors

Link copied to clipboard
constructor(port: Int, tools: List<McpTool>, serverName: String, authValidator: (HttpExchange) -> Boolean, toolCallListener: (String, Boolean, String?) -> Unit? = null)

Properties

Link copied to clipboard

returns true if the request is authorized

Link copied to clipboard
val port: Int

TCP port to bind

Link copied to clipboard

name reported in the initialize response

Link copied to clipboard

optional callback invoked after each tool execution with tool name and error flag plus first-line summary text

Link copied to clipboard

list of MCP tools to expose