Skip to main content
Glama
list_servers.py672 B
"""List configured servers tool.""" from typing import Any from fastmcp import Context from .base import MCPTool class ListServersService(MCPTool): """Service to list configured database servers.""" @property def name(self) -> str: return "list_configured_servers" @property def description(self) -> str: return "List servers configured via environment variables" async def execute(self, ctx: Context) -> list[str]: """List configured server names. Returns: list[str]: List of configured server names """ return self.conn_manager.get_configured_server_names()

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/yuuues/mcp-sql'

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