{"record":{"id":"cf402a3a5c02fb99","repo":"zeroclaw-labs/zeroclaw","slug":"mcp-server-does-not-support-prompts","errorCode":null,"errorMessage":"MCP server `{}` does not support prompts","messagePattern":"MCP server `(.+?)` does not support prompts","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/mcp_client.rs","lineNumber":831,"sourceCode":"            if !inner.capabilities.supports_resources() {\n                bail!(\n                    \"MCP server `{}` does not support resources\",\n                    inner.config.name\n                );\n            }\n        }\n        let raw = self\n            .dispatch_method(\"resources/read\", json!({ \"uri\": uri }))\n            .await?;\n        serde_json::from_value(raw).context(\"failed to parse resources/read result\")\n    }\n\n    /// `prompts/list` — capability-gated.\n    pub async fn list_prompts(&self, cursor: Option<String>) -> Result<McpPromptsListResult> {\n        {\n            let inner = self.inner.lock().await;\n            if !inner.capabilities.supports_prompts() {\n                bail!(\n                    \"MCP server `{}` does not support prompts\",\n                    inner.config.name\n                );\n            }\n        }\n        let params = match cursor {\n            Some(c) => json!({ \"cursor\": c }),\n            None => json!({}),\n        };\n        let raw = self.dispatch_method(\"prompts/list\", params).await?;\n        serde_json::from_value(raw).context(\"failed to parse prompts/list result\")\n    }\n\n    /// `prompts/get` — capability-gated.\n    pub async fn get_prompt(\n        &self,\n        name: &str,\n        arguments: serde_json::Value,","sourceCodeStart":813,"sourceCodeEnd":849,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/mcp_client.rs#L813-L849","documentation":"Error \"MCP server `{}` does not support prompts\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/mcp_client.rs:831 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Only request prompts from MCP servers that advertise prompt support; list capabilities first."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}