server_health_check
Check the health status of the Azure DevOps server and connection to ensure system availability and proper functionality for development workflows.
Instructions
Performs a comprehensive health check of the server and Azure DevOps connection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_azure_devops/server.py:1069-1089 (handler)The main handler function that performs the server health check, validating environment, client status, and Azure DevOps connectivity.async def _health_check(self) -> Dict[str, Any]: """Perform comprehensive health check.""" health_status = { "server_status": "healthy", "environment_check": self._validate_environment(), "client_initialized": self.client is not None, "tools_registered": self.tools_registered, "total_tools": len(self.tools), "azure_devops_connection": "unknown" } if self.client: try: # Test Azure DevOps connection projects = self.client.get_projects() health_status["azure_devops_connection"] = "connected" health_status["available_projects"] = len(projects) except Exception as e: health_status["azure_devops_connection"] = f"error: {str(e)}" return health_status
- mcp_azure_devops/server.py:578-586 (schema)Defines the tool schema, including name, description, and empty input schema since no parameters are required.types.Tool( name="server_health_check", description="Performs a comprehensive health check of the server and Azure DevOps connection.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
- mcp_azure_devops/server.py:895-896 (registration)Registers and dispatches the server_health_check tool call to the _health_check handler method.if name == "server_health_check": return await self._health_check()