diff --git a/CLAUDE.md b/CLAUDE.md index eb4fb77..7643f20 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -241,7 +241,7 @@ Returns backend server status for a specific domain: **Status values:** `healthy` (all UP), `degraded` (partial UP), `down` (all DOWN), `no_servers` -## MCP Tools (21 total) +## MCP Tools (22 total) ### Domain Management | Tool | Description | @@ -254,12 +254,13 @@ Returns backend server status for a specific domain: | Tool | Description | |------|-------------| | `haproxy_list_servers` | List servers for a domain | -| `haproxy_add_server` | Add server to slot (1-10), auto-saved | +| `haproxy_add_server` | Add server to slot (1-10 or 0=auto), auto-saved | | `haproxy_add_servers` | Bulk add servers (JSON array), auto-saved | | `haproxy_remove_server` | Remove server from slot, auto-saved | | `haproxy_set_server_state` | Set state: ready/drain/maint | | `haproxy_set_server_weight` | Set weight (0-256) | | `haproxy_set_domain_state` | Set all servers of domain to ready/drain/maint | +| `haproxy_wait_drain` | Wait for connections to drain (timeout configurable) | ### Health Check | Tool | Description | @@ -337,7 +338,7 @@ echo "set server pool_1/pool_1_1 state ready" | nc localhost 9999 ``` /opt/haproxy/ ├── mcp/ # MCP server (streamable-http) -│ └── server.py # Main MCP server (~1600 lines, 21 tools) +│ └── server.py # Main MCP server (~1750 lines, 22 tools) ├── conf/ │ ├── haproxy.cfg # Main HAProxy config (100 pool backends) │ ├── domains.map # Domain → Pool mapping