mcp.discovery.installed_servers =============================== .. py:module:: mcp.discovery.installed_servers .. autoapi-nested-parse:: Discover and manage installed MCP servers. This module provides utilities to find, check, and manage MCP servers that are already installed on the system. Attributes ---------- .. autoapisummary:: mcp.discovery.installed_servers.logger Classes ------- .. autoapisummary:: mcp.discovery.installed_servers.MCPServerDiscovery Functions --------- .. autoapisummary:: mcp.discovery.installed_servers.main Module Contents --------------- .. py:class:: MCPServerDiscovery Discover installed MCP servers on the system. This class provides methods to: - Find npm-installed MCP servers - Check Python-based MCP servers - Locate configuration files - Verify server functionality .. rubric:: Example >>> discovery = MCPServerDiscovery() >>> installed = discovery.find_all_installed() >>> print(f"Found {len(installed)} installed servers") .. py:method:: check_server_availability(server_name: str) -> bool Check if a specific server is available. :param server_name: Name of the server to check :returns: True if server is installed and available .. py:method:: export_installed_list(filename: str = 'installed_mcp_servers.json') Export list of installed servers to file. :param filename: Output filename .. py:method:: find_all_installed() -> List[Dict] Find all installed MCP servers. :returns: List of dicts with server information .. py:method:: find_config_servers() -> List[Dict] Find servers from configuration files. :returns: List of configured servers with metadata .. py:method:: find_npm_servers() -> List[Dict] Find npm-installed MCP servers. :returns: List of npm MCP servers with metadata .. py:method:: find_pip_servers() -> List[Dict] Find pip-installed MCP servers. :returns: List of Python MCP servers with metadata .. py:method:: get_server_info(server_name: str) -> Optional[Dict] Get detailed information about an installed server. :param server_name: Name of the server :returns: Dict with server details or None if not found .. py:attribute:: config_servers :type: List[Dict] :value: [] .. py:attribute:: discovered_servers :type: Set[str] .. py:attribute:: npm_servers :type: List[Dict] :value: [] .. py:attribute:: pip_servers :type: List[Dict] :value: [] .. py:function:: main() Main entry point for CLI usage. .. py:data:: logger