{"record":{"id":"0ed9633d5fe43d85","repo":"Kuberwastaken/claurst","slug":"rmcp-list-all-tools-failed","errorCode":null,"errorMessage":"rmcp list_all_tools failed: {}","messagePattern":"rmcp list_all_tools failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/mcp/src/rmcp_backend.rs","lineNumber":640,"sourceCode":") -> anyhow::Result<McpClientSnapshot> {\n    let server_info = peer.peer_info().map(|info| (*info).clone());\n\n    let (server_info_value, capabilities, instructions) = match server_info {\n        Some(info) => (\n            Some(ServerInfo {\n                name: info.server_info.name,\n                version: info.server_info.version,\n            }),\n            convert_server_capabilities(info.capabilities),\n            info.instructions,\n        ),\n        None => (None, ServerCapabilities::default(), None),\n    };\n\n    let tools = if capabilities.tools.is_some() {\n        peer.list_all_tools()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"rmcp list_all_tools failed: {}\", e))?\n            .into_iter()\n            .map(convert_tool)\n            .collect()\n    } else {\n        vec![]\n    };\n\n    let resources = if capabilities.resources.is_some() {\n        peer.list_all_resources()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"rmcp list_all_resources failed: {}\", e))?\n            .into_iter()\n            .map(convert_resource)\n            .collect()\n    } else {\n        vec![]\n    };\n","sourceCodeStart":622,"sourceCodeEnd":658,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/mcp/src/rmcp_backend.rs#L622-L658","documentation":"During connection setup, build_snapshot's paginated list_all_tools call failed even though the server advertised the tools capability. The initialize handshake succeeded, but enumerating tools errored (server-side failure or connection drop), so no snapshot can be built.","triggerScenarios":"Thrown at src-rust/crates/mcp/src/rmcp_backend.rs:640 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry connecting; transient server errors during listing are common","Check server logs for why tools/list failed","Verify protocol compatibility with the server"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b0637c97ec34144387cbf2f74f65df6d16a6cef1","analyzedAt":"2026-09-10T00:24:58.650Z","contentChangedAt":"2026-09-10T00:24:58.650Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}