Skip to main content

build_router

Function build_router 

Source
pub fn build_router(
    state: ServerState,
    config: &ServeConfig,
    mcp: &McpServeSettings,
) -> Router
Available on crate feature serve only.
Expand description

Build the full router: unauthenticated probes + the bearer-guarded /v1 API.