McpServerState constructor

McpServerState({
  1. required String name,
  2. required String uri,
  3. ConnectionStatus status = ConnectionStatus.disconnected,
  4. String? error,
  5. List<String>? tools,
  6. List<String>? resources,
  7. DateTime? connectedAt,
})

Implementation

McpServerState({
  required this.name,
  required this.uri,
  this.status = ConnectionStatus.disconnected,
  this.error,
  List<String>? tools,
  List<String>? resources,
  this.connectedAt,
}) : tools = tools ?? [],
     resources = resources ?? [];