browse_mcp_registry

Function browse_mcp_registry 

Source
pub async fn browse_mcp_registry(
    query: Option<String>,
    cursor: Option<String>,
    limit: usize,
) -> Result<RegistryBrowsePage>
Expand description

Fetch a single page from the MCP Registry with optional full-text search.

Unlike list_popular_mcp_servers, this function:

  • Fetches one page only (no multi-page accumulation).
  • Includes all active servers regardless of transport or env-var requirements.
  • Marks servers that pass the zero-config npm/stdio criteria via RegistryBrowseEntry::quick_add so the UI can surface a “Quick Add” button.

§Parameters

  • query – Optional search string forwarded to the registry search= param. Pass None or an empty string to list all servers alphabetically.
  • cursor – Opaque pagination cursor from a previous RegistryBrowsePage::next_cursor.
  • limit – Number of servers to request per page (typically 20).