Mcp Http Server
HTTP transport for the MCP protocol.
Handles CORS, auth validation, content negotiation, and delegates JSON-RPC dispatch to McpRequestRouter. Both client and server MCP endpoints instantiate this with their own config.
Types
Link copied to clipboard
data class McpHttpServerConfig(val port: Int, val tools: List<McpTool>, val serverName: String, val authValidator: (HttpExchange) -> Boolean, val toolCallListener: (String, Boolean, String?) -> Unit? = null)
Configuration for an McpHttpServer instance.