getHealthStatus method

Future<Map<String, dynamic>> getHealthStatus()

Gets health status from the MCP server

Implementation

Future<Map<String, dynamic>> getHealthStatus() async {
  try {
    // In a real implementation, this would query the MCP server health endpoint
    return {
      'status': 'healthy',
      'mcp_server': _mcpServer.isRunning,
      'timestamp': DateTime.now().toIso8601String(),
    };
  } catch (e) {
    return {
      'status': 'unhealthy',
      'error': e.toString(),
      'timestamp': DateTime.now().toIso8601String(),
    };
  }
}