From ab5b4aa64805d227ce994d1415c03c0886108860 Mon Sep 17 00:00:00 2001 From: kaffa Date: Sun, 1 Feb 2026 13:59:03 +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: 20 → 21 - Add haproxy_set_domain_state to server management tools - Add container status to health check example - Update server.py description (~1600 lines, 21 tools) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6d44e0d..eb4fb77 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -218,7 +218,8 @@ Returns overall system status: "components": { "mcp": {"status": "ok"}, "haproxy": {"status": "ok", "version": "3.3.2", "uptime_sec": 3600}, - "config_files": {"status": "ok", "files": {"map_file": "ok", "servers_file": "ok"}} + "config_files": {"status": "ok", "files": {"map_file": "ok", "servers_file": "ok"}}, + "container": {"status": "ok", "state": "running"} } } ``` @@ -240,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 (20 total) +## MCP Tools (21 total) ### Domain Management | Tool | Description | @@ -258,6 +259,7 @@ Returns backend server status for a specific domain: | `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 | ### Health Check | Tool | Description | @@ -335,7 +337,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 (~1500 lines, 20 tools) +│ └── server.py # Main MCP server (~1600 lines, 21 tools) ├── conf/ │ ├── haproxy.cfg # Main HAProxy config (100 pool backends) │ ├── domains.map # Domain → Pool mapping