@@ -14,6 +14,7 @@ import {
1414 RefreshCwOff ,
1515 Copy ,
1616 CheckCheck ,
17+ Server ,
1718} from "lucide-react" ;
1819import { Button } from "@/components/ui/button" ;
1920import { Input } from "@/components/ui/input" ;
@@ -40,6 +41,7 @@ import {
4041import CustomHeaders from "./CustomHeaders" ;
4142import { CustomHeaders as CustomHeadersType } from "@/lib/types/customHeaders" ;
4243import { useToast } from "../lib/hooks/useToast" ;
44+ import IconDisplay , { WithIcons } from "./IconDisplay" ;
4345
4446interface SidebarProps {
4547 connectionStatus : ConnectionStatus ;
@@ -71,6 +73,9 @@ interface SidebarProps {
7173 setConfig : ( config : InspectorConfig ) => void ;
7274 connectionType : "direct" | "proxy" ;
7375 setConnectionType : ( type : "direct" | "proxy" ) => void ;
76+ serverImplementation ?:
77+ | ( WithIcons & { name ?: string ; version ?: string ; websiteUrl ?: string } )
78+ | null ;
7479}
7580
7681const Sidebar = ( {
@@ -102,6 +107,7 @@ const Sidebar = ({
102107 setConfig,
103108 connectionType,
104109 setConnectionType,
110+ serverImplementation,
105111} : SidebarProps ) => {
106112 const [ theme , setTheme ] = useTheme ( ) ;
107113 const [ showEnvVars , setShowEnvVars ] = useState ( false ) ;
@@ -776,6 +782,45 @@ const Sidebar = ({
776782 </ span >
777783 </ div >
778784
785+ { connectionStatus === "connected" && serverImplementation && (
786+ < div className = "bg-gray-50 dark:bg-gray-900 p-3 rounded-lg mb-4" >
787+ < div className = "flex items-center gap-2 mb-1" >
788+ { ( serverImplementation as WithIcons ) . icons &&
789+ ( serverImplementation as WithIcons ) . icons ! . length > 0 ? (
790+ < IconDisplay
791+ icons = { ( serverImplementation as WithIcons ) . icons }
792+ size = "sm"
793+ />
794+ ) : (
795+ < Server className = "w-4 h-4 text-gray-500" />
796+ ) }
797+ { ( serverImplementation as { websiteUrl ?: string } )
798+ . websiteUrl ? (
799+ < a
800+ href = {
801+ ( serverImplementation as { websiteUrl ?: string } )
802+ . websiteUrl
803+ }
804+ target = "_blank"
805+ rel = "noopener noreferrer"
806+ className = "text-sm font-medium text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:underline transition-colors"
807+ >
808+ { serverImplementation . name || "MCP Server" }
809+ </ a >
810+ ) : (
811+ < span className = "text-sm font-medium text-gray-800 dark:text-gray-200" >
812+ { serverImplementation . name || "MCP Server" }
813+ </ span >
814+ ) }
815+ </ div >
816+ { serverImplementation . version && (
817+ < div className = "text-xs text-gray-500 dark:text-gray-400" >
818+ Version: { serverImplementation . version }
819+ </ div >
820+ ) }
821+ </ div >
822+ ) }
823+
779824 { loggingSupported && connectionStatus === "connected" && (
780825 < div className = "space-y-2" >
781826 < label
0 commit comments