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
| Name | Required | Description | Default |
|---|---|---|---|
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)}