health_check
Monitor the health and status of the Commitizen service using the health_check tool. Retrieve detailed information to ensure optimal functionality for managing conventional commit messages.
Instructions
Check the health and status of the Commitizen service.
Returns: Dict containing service health information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The health_check tool handler function. Decorated with @mcp.tool() to register it as an MCP tool. Retrieves Commitizen service info and returns a health status response.@mcp.tool() @handle_errors(log_errors=True) def health_check() -> Dict[str, Any]: """ Check the health and status of the Commitizen service. Returns: Dict containing service health information """ info = service.get_info() result = { "status": "healthy", "service_info": info, "timestamp": str(__import__("datetime").datetime.now()), } return create_success_response(result)
- src/commit_helper_mcp/mcp_server.py:46-51 (registration)Import statement in the main MCP server file that brings in the health_check function, triggering its registration via the @mcp.tool() decorator when the module is loaded.from .server.workflow_tools import ( get_commit_questions, health_check, refresh_configuration, commit_workflow_step, )