New tools for SSL/TLS certificate management via acme.sh: - haproxy_list_certs: List all certificates with expiry info - haproxy_cert_info: Get detailed certificate info (expiry, issuer, SANs) - haproxy_issue_cert: Issue new certificate via Cloudflare DNS validation - haproxy_renew_cert: Renew specific certificate (with force option) - haproxy_renew_all_certs: Renew all certificates due for renewal - haproxy_delete_cert: Delete certificate from acme.sh and HAProxy Features: - Automatic PEM deployment to HAProxy certs directory - HAProxy hot-reload after certificate changes (USR2 signal) - Cloudflare DNS validation with CF_Token support - Wildcard certificate support Total MCP tools: 22 → 28 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
650 B
Python
23 lines
650 B
Python
"""MCP Tools for HAProxy management."""
|
|
|
|
from .domains import register_domain_tools
|
|
from .servers import register_server_tools
|
|
from .health import register_health_tools
|
|
from .monitoring import register_monitoring_tools
|
|
from .configuration import register_config_tools
|
|
from .certificates import register_certificate_tools
|
|
|
|
|
|
def register_all_tools(mcp):
|
|
"""Register all MCP tools with the server.
|
|
|
|
Args:
|
|
mcp: FastMCP server instance
|
|
"""
|
|
register_domain_tools(mcp)
|
|
register_server_tools(mcp)
|
|
register_health_tools(mcp)
|
|
register_monitoring_tools(mcp)
|
|
register_config_tools(mcp)
|
|
register_certificate_tools(mcp)
|