INNER CODE UNIT · Python
__init__
RekklesNA/ProxmoxMCP-Plus · src/proxmox_mcp/server.py:111
def __init__(self, config_path: Optional[str] = None):
self.code_mode: CodeMode | None = None
self.config = load_config(config_path)
self.tool_exposure_policy = ToolExposurePolicy(
known_tools=BUILTIN_TOOL_NAMES,
allowlist=self.config.mcp.tool_allowlist,
denylist=self.config.mcp.tool_denylist,
)
self.logger = setup_logging(self.config.logging)
self.target_registry = TargetRegistry(self.config)
self.proxmox_managers = {
name: ProxmoxManager(
target.config,
target.auth,
api_tunnel_config=target.api_tunnel,
ssh_config=target.ssh,
)
for name in self.target_registry.names