Skip to main content

Module mcp_server

Module mcp_server 

Source
Expand description

UAR runtime MCP server — exposes UAR agent capabilities as MCP tools.

Any MCP-aware system (Claude Desktop, LangGraph, AutoGen, etc.) can invoke UAR agents, inspect compiled agent registries, start runs, and trigger compilation without implementing the UAR REST API directly.

§Exposed Tools

ToolDescription
uar_list_agentsList all compiled agents in the registry
uar_create_runCreate a new agent run and return the run ID + SSE URL
uar_get_run_statusGet the status of an active or completed run
uar_list_skillsList all registered native skills
uar_compile_specCompile a UAR-AGENT-MD Markdown document

§HTTP exposure

Mount the router at /mcp/uar:

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

Structs§

CompileSpecParams
CreateRunParams
RunIdParams

Functions§

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