kaffa 6bcfee519c refactor: Improve code quality, error handling, and test coverage
- Add file_lock context manager to eliminate duplicate locking patterns
- Add ValidationError, ConfigurationError, CertificateError exceptions
- Improve rollback logic in haproxy_add_servers (track successful ops only)
- Decompose haproxy_add_domain into smaller helper functions
- Consolidate certificate constants (CERTS_DIR, ACME_HOME) to config.py
- Enhance docstrings for internal functions and magic numbers
- Add pytest framework with 48 new tests (269 -> 317 total)
- Increase test coverage from 76% to 86%
  - servers.py: 58% -> 82%
  - certificates.py: 67% -> 86%
  - configuration.py: 69% -> 94%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 12:50:00 +09:00
2026-02-03 11:20:34 +09:00
2026-02-03 11:37:56 +09:00

haproxy-mcp

HAProxy Dynamic Load Balancer Management with MCP Interface

Overview

MCP server for managing HAProxy load balancer configurations dynamically.

Features

  • Dynamic backend management
  • SSL certificate handling
  • Health checks
  • Domain routing

Usage

Configure as MCP server in Claude Code settings.

License

MIT

Description
HAProxy Dynamic Load Balancer Management with MCP Interface
Readme MIT 304 KiB
Languages
Python 99.8%
Dockerfile 0.2%