Skip to main content
Glama
solr_list_collections.py470 B
"""Tool for listing Solr collections.""" from typing import Dict, List from solr_mcp.tools.tool_decorator import tool @tool() async def execute_list_collections(mcp) -> List[str]: """List all available Solr collections. Lists all collections available in the Solr cluster. Args: mcp: SolrMCPServer instance Returns: List of collection names """ solr_client = mcp.solr_client return await solr_client.list_collections()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/allenday/solr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server