MCPcopy Create free account
hub / github.com/GCWing/BitFun / list_mcp_resources

Function list_mcp_resources

src/apps/desktop/src/api/mcp_api.rs:318–328  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    request: ListMCPResourcesRequest,
)

Source from the content-addressed store, hash-verified

316
317#[tauri::command]
318pub async fn list_mcp_resources(
319 state: State<'_, AppState>,
320 request: ListMCPResourcesRequest,
321) -> Result<Vec<MCPResource>, String> {
322 let mcp_service = state
323 .mcp_service
324 .as_ref()
325 .ok_or_else(|| "MCP service not initialized".to_string())?;
326
327 load_mcp_resources(mcp_service.as_ref(), &request.server_id, request.refresh).await
328}
329
330#[tauri::command]
331pub async fn read_mcp_resource(

Callers

nothing calls this directly

Calls 1

load_mcp_resourcesFunction · 0.85

Tested by

no test coverage detected