Files
haproxy-mcp/mcp/server.py
kaffa c48456dc18 feat: Add batch operations, container health, code cleanup
7. Add haproxy_set_domain_state() tool
   - Set all servers of a domain to ready/drain/maint at once
   - Useful for maintenance windows and deployments
   - Reports changed servers and any errors

8. Add container status to haproxy_health()
   - Check HAProxy container state via podman inspect
   - Reports "ok" when running, actual state otherwise
   - Sets overall health to "unhealthy" on container issues

9. Extract configure_server_slot() helper
   - Eliminates duplicated server configuration code
   - Used by haproxy_add_server() and haproxy_add_servers()
   - Cleaner, more maintainable code

MCP Tools: 20 → 21

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 13:58:14 +00:00

58 KiB