Kuberwastaken/claurst · error

rmcp list_all_prompts failed

Error message

rmcp list_all_prompts failed: {}

What it means

During connection setup, build_snapshot's list_all_prompts call failed although the server advertised the prompts capability. The paginated prompts/list enumeration errored, so snapshot building and the connection fail.

Solutions

  1. Retry the connection
  2. Check server logs for prompts/list failures
  3. Verify the server's prompts implementation matches its advertised capability
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src-rust/crates/mcp/src/rmcp_backend.rs:662 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kuberwastaken/claurst@b0637c97ec (2026-09-10). Data as JSON: /api/errors/f8cf2fc8b4edbd0f. Report an issue: GitHub.

Appendix: source

Thrown at src-rust/crates/mcp/src/rmcp_backend.rs:662

    } else {
        vec![]
    };

    let resources = if capabilities.resources.is_some() {
        peer.list_all_resources()
            .await
            .map_err(|e| anyhow::anyhow!("rmcp list_all_resources failed: {}", e))?
            .into_iter()
            .map(convert_resource)
            .collect()
    } else {
        vec![]
    };

    let prompts = if capabilities.prompts.is_some() {
        peer.list_all_prompts()
            .await
            .map_err(|e| anyhow::anyhow!("rmcp list_all_prompts failed: {}", e))?
            .into_iter()
            .map(convert_prompt)
            .collect()
    } else {
        vec![]
    };

    Ok(McpClientSnapshot {
        server_name: config.name.clone(),
        server_info: server_info_value,
        capabilities,
        tools,
        resources,
        prompts,
        instructions,
    })
}

View on GitHub (pinned to b0637c97ec)