Function create_handler

Source
pub fn create_handler<T: Tool + 'static>(
    tool: T,
) -> impl Fn(Request) -> Result<Response, String> + Clone
Expand description

Create a handler function for serving a single FTL Core tool as an MCP server over HTTP

This function handles all HTTP/CORS details and delegates MCP protocol handling to the McpServer.