Skip to main content

uar_mcp_router

Function uar_mcp_router 

Source
pub fn uar_mcp_router(
    run_manager: Arc<RunManager>,
    native_skills: Arc<NativeSkillRegistry>,
    persistence: Option<Arc<dyn PersistenceLayer>>,
) -> Router
Expand description

Build an Axum router that exposes the UAR runtime as an MCP server over the streamable-HTTP transport.

Mount at /mcp/uar in the main Axum router:

ⓘ
let uar_mcp = uar_mcp_router(Arc::clone(&run_manager), Arc::clone(&native_skills), persistence.clone());
app = app.nest("/mcp/uar", uar_mcp);