Skip to main content

register_routes

Function register_routes 

Source
pub fn register_routes(
    router: Router,
    config: &McpConfig,
    providers: Vec<Arc<dyn ToolProvider>>,
) -> Result<Router>
Expand description

Adds the MCP route at config.path. The route does not authenticate: the host must layer a bearer validation middleware on the returned router.