haive.mcp.discovery.installed_servers

Discover and manage installed MCP servers.

This module provides utilities to find, check, and manage MCP servers that are already installed on the system.

Classes

MCPServerDiscovery

Discover installed MCP servers on the system.

Functions

main()

Main entry point for CLI usage.

Module Contents

class haive.mcp.discovery.installed_servers.MCPServerDiscovery[source]

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

Example

>>> discovery = MCPServerDiscovery()
>>> installed = discovery.find_all_installed()
>>> print(f"Found {len(installed)} installed servers")

Initialize the discovery system.

check_server_availability(server_name)[source]

Check if a specific server is available.

Parameters:

server_name (str) – Name of the server to check

Returns:

True if server is installed and available

Return type:

bool

export_installed_list(filename='installed_mcp_servers.json')[source]

Export list of installed servers to file.

Parameters:

filename (str) – Output filename

find_all_installed()[source]

Find all installed MCP servers.

Returns:

List of dicts with server information

Return type:

List[Dict]

find_config_servers()[source]

Find servers from configuration files.

Returns:

List of configured servers with metadata

Return type:

List[Dict]

find_npm_servers()[source]

Find npm-installed MCP servers.

Returns:

List of npm MCP servers with metadata

Return type:

List[Dict]

find_pip_servers()[source]

Find pip-installed MCP servers.

Returns:

List of Python MCP servers with metadata

Return type:

List[Dict]

get_server_info(server_name)[source]

Get detailed information about an installed server.

Parameters:

server_name (str) – Name of the server

Returns:

Dict with server details or None if not found

Return type:

Optional[Dict]

haive.mcp.discovery.installed_servers.main()[source]

Main entry point for CLI usage.