Skip to main content

collect_mcp_elevation_arcs

Function collect_mcp_elevation_arcs 

Source
pub async fn collect_mcp_elevation_arcs(
    registry: &Arc<McpRegistry>,
) -> Vec<Arc<dyn Tool>>
Expand description

Build resolution-only MCP tool wrappers for skill MCP elevation (kind = "mcp").

These wrappers are not added to the model-visible tool registry — they exist solely so a skill MCP elevation can resolve its target ({server}__{tool}, e.g. images__generate) by name at registration time and delegate to it. Cheap: MCP tool definitions are cached at connect time, so this performs no network I/O. Returned alongside the built-in unfiltered_tool_arcs to form the skill resolution registry.