getConnectedIdeClient method
Gets the connected IDE client from a list of MCP clients.
Implementation
Map<String, dynamic>? getConnectedIdeClient(
List<Map<String, dynamic>>? mcpClients,
) {
if (mcpClients == null) return null;
try {
return mcpClients.firstWhere(
(client) => client['type'] == 'connected' && client['name'] == 'ide',
);
} catch (_) {
return null;
}
}