@GetMapping("/health")
    public ResponseEntity<Map<String, Object>> healthCheck() {
        Map<String, Object> response = new HashMap<>();
        response.put("status", "UP");
        response.put("timestamp", LocalDateTime.now().toString());
        response.put("service", "Basic Calculator Service");
        
        // Add calculator service status information
        response.put("calculatorService", calculatorService != null ? "Available" : "Unavailable");
        
        return ResponseEntity.ok(response);
    }
Simple health check endpoint.

@return Health status information
03-GettingStarted/samples/java/calculator/src/main/java/com/microsoft/mcp/sample/server/controller/HealthController.java