Skip to main content

build_mcp_capability_tools

Function build_mcp_capability_tools 

pub fn build_mcp_capability_tools(
    registry: &Arc<McpRegistry>,
    policy: Option<&ToolAccessPolicy>,
) -> Vec<Arc<dyn Tool>>
Expand description

Build the two generic MCP capability tools (mcp_resources, mcp_prompts), including each only when the access policy admits its name. A None policy admits both. Returned as Arc<dyn Tool> ready to register and/or expose to delegates.