haive.mcp.installers.config_manager¶
MCP Configuration and Environment Management.
Handles .env files, configuration templates, and secure credential storage.
Classes¶
Manages MCP server configurations and environment files. |
|
Environment configuration for MCP servers. |
|
Standard pattern for MCP server installation. |
Module Contents¶
- class haive.mcp.installers.config_manager.MCPConfigManager(config_dir=None)¶
Manages MCP server configurations and environment files.
Init .
- Parameters:
config_dir (pathlib.Path | None) – [TODO: Add description]
- add_server_config(config)¶
Add a new server configuration.
- Parameters:
config (MCPEnvironmentConfig)
- Return type:
- export_claude_desktop_config(server_name)¶
Export server config in Claude Desktop format.
- get_pattern(pattern_name)¶
Get a server pattern by name.
- Parameters:
pattern_name (str)
- Return type:
MCPServerPattern | None
- get_server_config(server_name)¶
Get server configuration by name.
- Parameters:
server_name (str)
- Return type:
MCPEnvironmentConfig | None
- class haive.mcp.installers.config_manager.MCPEnvironmentConfig(/, **data)¶
Bases:
pydantic.BaseModelEnvironment configuration for MCP servers.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class haive.mcp.installers.config_manager.MCPServerPattern¶
Standard pattern for MCP server installation.