mcp.cli.mcp_manager¶
Comprehensive MCP Server Manager.
This script provides a complete management interface for MCP servers including: - Discovery from multiple sources - Installation using various methods - Configuration management - Health monitoring - Updates and maintenance
- Usage:
python mcp_manager.py discover –auto-install python mcp_manager.py install –servers filesystem github postgres python mcp_manager.py install –categories official core python mcp_manager.py list –status all python mcp_manager.py health-check python mcp_manager.py update –all
Attributes¶
Classes¶
Comprehensive MCP Server Manager. |
Functions¶
|
MCP Server Manager - Comprehensive management for Model Context Protocol servers. |
|
Show current configuration. |
|
Discover MCP servers from all configured sources. |
|
Perform health checks on MCP servers. |
|
Install MCP servers. |
|
List MCP servers and their status. |
|
Update MCP servers to latest versions. |
Module Contents¶
- class mcp.cli.mcp_manager.MCPServerManager(config_file: str | None = None, install_dir: str | None = None)¶
Comprehensive MCP Server Manager.
- async discover_all_sources(auto_install: bool = False, limit: int | None = None) dict ¶
Discover MCP servers from all configured sources.
- async install_discovered_servers(servers: list[dict]) dict ¶
Install servers from discovery results.
- async install_servers(server_names: list[str] | None = None, categories: list[str] | None = None) dict ¶
Install specific servers or categories.
- async update_servers(server_names: list[str] | None = None, force: bool = False) dict ¶
Update servers to latest versions.
- downloader¶
- install_dir¶
- status_file¶
- mcp.cli.mcp_manager.cli(ctx, config, install_dir)¶
MCP Server Manager - Comprehensive management for Model Context Protocol servers.
- mcp.cli.mcp_manager.config(ctx)¶
Show current configuration.
- mcp.cli.mcp_manager.discover(ctx, auto_install, limit)¶
Discover MCP servers from all configured sources.
- mcp.cli.mcp_manager.health_check(ctx, servers)¶
Perform health checks on MCP servers.
- mcp.cli.mcp_manager.install(ctx, servers, categories, install_all)¶
Install MCP servers.
- mcp.cli.mcp_manager.list_servers(ctx, status, output_format)¶
List MCP servers and their status.
- mcp.cli.mcp_manager.update(ctx, servers, update_all, force)¶
Update MCP servers to latest versions.
- mcp.cli.mcp_manager.logger¶