buildStatus function
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,
);
}