Skip to main content
Glama

list_servers

Display all configured MCP servers and their configuration file paths for AWS Q Developer and Claude Desktop management.

Instructions

設定されている全てのMCPサーバーをリスト表示する。

Returns: Dict[str, Any]: サーバーのリストと設定ファイルのパスを含む辞書 - servers: 各サーバーの設定情報のリスト - config_path: 設定ファイルのパス

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_servers' tool. It loads the MCP configuration using load_config(), iterates over mcpServers, constructs a list of server details (name, command, args, env), and returns them along with the config file path.
    @mcp.tool(name="list_servers") async def list_servers() -> Dict[str, Any]: """設定されている全てのMCPサーバーをリスト表示する。 Returns: Dict[str, Any]: サーバーのリストと設定ファイルのパスを含む辞書 - servers: 各サーバーの設定情報のリスト - config_path: 設定ファイルのパス """ config = load_config() # 各サーバーの情報をリスト化 servers = [] for name, server_config in config.mcpServers.items(): servers.append( {"name": name, "command": server_config.command, "args": server_config.args, "env": server_config.env} ) return {"servers": servers, "config_path": str(CONFIG_PATH)}

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/r3-yamauchi/mcp-conf-mcp-server'

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