From c336cd886cb97eaa17baf3b9e005bfea203b076e Mon Sep 17 00:00:00 2001 From: Dustin Healy <54083382+dustinhealy@users.noreply.github.com> Date: Mon, 5 Jan 2026 20:42:03 -0800 Subject: [PATCH] feat: add default clickhouse logo to MCPSelect --- client/src/components/MCP/StackedMCPIcons.tsx | 36 +++++++++++++------ client/src/components/MCP/mcpServerUtils.ts | 20 ++++++++--- client/src/components/Tools/MCPToolItem.tsx | 35 ++++++++++++------ 3 files changed, 65 insertions(+), 26 deletions(-) diff --git a/client/src/components/MCP/StackedMCPIcons.tsx b/client/src/components/MCP/StackedMCPIcons.tsx index fa04928210..bf9e8566f0 100644 --- a/client/src/components/MCP/StackedMCPIcons.tsx +++ b/client/src/components/MCP/StackedMCPIcons.tsx @@ -2,6 +2,7 @@ import { useMemo } from 'react'; import { MCPIcon } from '@librechat/client'; import type { MCPServerDefinition } from '~/hooks/MCP/useMCPServerManager'; import { getSelectedServerIcons } from './mcpServerUtils'; +import ClickHouseIcon from './ClickHouseIcon'; import { cn } from '~/utils'; interface StackedMCPIconsProps { @@ -58,8 +59,31 @@ export default function StackedMCPIcons({ const sizes = sizeConfig[iconSize]; const colors = variantConfig[variant]; + const renderIcon = (icon: { iconPath: string | null; displayName: string }) => { + if (icon.iconPath === 'clickhouse') { + return ( + + ); + } + + if (icon.iconPath) { + return ( + {icon.displayName} + ); + } + + return ; + }; + return ( -