Mcp Request Router
class McpRequestRouter(tools: List<McpTool>, serverName: String, toolCallListener: (String, Boolean, String?) -> Unit? = null)(source)
Routes incoming MCP JSON-RPC requests to the appropriate handler.
Handles initialize, ping, tools/list, tools/call, and notification methods. Receives a list of McpTool instances and dispatches tools/call by matching the tool name.