From bdc1f8a279ae2e2adbba394c3f78518ee35a3056 Mon Sep 17 00:00:00 2001 From: kaffa Date: Sun, 1 Feb 2026 14:09:04 +0000 Subject: [PATCH] docs: Update CLAUDE.md with new features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update tool count: 21 → 22 - Add haproxy_wait_drain to server management tools - Update haproxy_add_server: slot=0 for auto-select - Update server.py description (~1750 lines, 22 tools) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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