docs: Update CLAUDE.md with new features
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -218,7 +218,8 @@ Returns overall system status:
|
|||||||
"components": {
|
"components": {
|
||||||
"mcp": {"status": "ok"},
|
"mcp": {"status": "ok"},
|
||||||
"haproxy": {"status": "ok", "version": "3.3.2", "uptime_sec": 3600},
|
"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`
|
**Status values:** `healthy` (all UP), `degraded` (partial UP), `down` (all DOWN), `no_servers`
|
||||||
|
|
||||||
## MCP Tools (20 total)
|
## MCP Tools (21 total)
|
||||||
|
|
||||||
### Domain Management
|
### Domain Management
|
||||||
| Tool | Description |
|
| Tool | Description |
|
||||||
@@ -258,6 +259,7 @@ Returns backend server status for a specific domain:
|
|||||||
| `haproxy_remove_server` | Remove server from slot, auto-saved |
|
| `haproxy_remove_server` | Remove server from slot, auto-saved |
|
||||||
| `haproxy_set_server_state` | Set state: ready/drain/maint |
|
| `haproxy_set_server_state` | Set state: ready/drain/maint |
|
||||||
| `haproxy_set_server_weight` | Set weight (0-256) |
|
| `haproxy_set_server_weight` | Set weight (0-256) |
|
||||||
|
| `haproxy_set_domain_state` | Set all servers of domain to ready/drain/maint |
|
||||||
|
|
||||||
### Health Check
|
### Health Check
|
||||||
| Tool | Description |
|
| Tool | Description |
|
||||||
@@ -335,7 +337,7 @@ echo "set server pool_1/pool_1_1 state ready" | nc localhost 9999
|
|||||||
```
|
```
|
||||||
/opt/haproxy/
|
/opt/haproxy/
|
||||||
├── mcp/ # MCP server (streamable-http)
|
├── mcp/ # MCP server (streamable-http)
|
||||||
│ └── server.py # Main MCP server (~1500 lines, 20 tools)
|
│ └── server.py # Main MCP server (~1600 lines, 21 tools)
|
||||||
├── conf/
|
├── conf/
|
||||||
│ ├── haproxy.cfg # Main HAProxy config (100 pool backends)
|
│ ├── haproxy.cfg # Main HAProxy config (100 pool backends)
|
||||||
│ ├── domains.map # Domain → Pool mapping
|
│ ├── domains.map # Domain → Pool mapping
|
||||||
|
|||||||
Reference in New Issue
Block a user