buildStatus function

KernelStatus buildStatus(
  1. McpToolRegistry registry, {
  2. Map<String, String> providers = const <String, String>{},
  3. Map<String, String> remoteServerHealth = const <String, String>{},
})

Builds KernelStatus from a McpToolRegistry + remote server map.

Implementation

KernelStatus buildStatus(
  McpToolRegistry registry, {
  Map<String, String> providers = const <String, String>{},
  Map<String, String> remoteServerHealth = const <String, String>{},
}) {
  return KernelStatus(
    providers: providers,
    toolCountPerNamespace: registry.toolCountPerNamespace,
    remoteServerHealth: remoteServerHealth,
    totalToolCount: registry.size,
  );
}