MEDIUM PRIORITY:
4. restore operations - use haproxy_cmd_checked()
- restore_servers_from_config() now validates commands
- haproxy_restore_state() logs warnings for individual failures
5. container health check - add exception logging
- logger.warning() for unexpected exceptions
6. haproxy_add_domain - optimize map file reading
- Read map contents once, reuse for domain check and pool lookup
- Eliminates redundant file reads
LOW PRIORITY:
7. Remove unused IP_PATTERN constant
- Was unused since validate_ip() uses ipaddress module
8. haproxy_add_server - auto-select slot
- slot=0 or slot=-1 finds first available slot
- Returns error if all slots in use
9. haproxy_wait_drain - new tool
- Wait for connections to drain before maintenance
- Polls HAProxy stats until scur=0 or timeout
MCP Tools: 21 → 22
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>