Skip to main content

build_pinned_resource_blocks

Function build_pinned_resource_blocks 

pub async fn build_pinned_resource_blocks(
    registry: &Arc<McpRegistry>,
    configs: &[McpServerConfig],
    policy: Option<&ToolAccessPolicy>,
) -> Vec<PinnedResourceBlock>
Expand description

Read every policy-admitted pinned resource and return it as an attributed block. render_pinned_resources_section turns the blocks into the prompt section; keeping the blocks lets the holder prune them later.