@@ -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" ;
@@ -38,6 +39,7 @@ import {
3839 TooltipContent ,
3940} from "@/components/ui/tooltip" ;
4041import { useToast } from "../lib/hooks/useToast" ;
42+ import IconDisplay , { WithIcons } from "./IconDisplay" ;
4143
4244interface SidebarProps {
4345 connectionStatus : ConnectionStatus ;
@@ -66,6 +68,9 @@ interface SidebarProps {
6668 loggingSupported : boolean ;
6769 config : InspectorConfig ;
6870 setConfig : ( config : InspectorConfig ) => void ;
71+ serverImplementation ?:
72+ | ( WithIcons & { name ?: string ; version ?: string ; websiteUrl ?: string } )
73+ | null ;
6974}
7075
7176const Sidebar = ( {
@@ -95,6 +100,7 @@ const Sidebar = ({
95100 loggingSupported,
96101 config,
97102 setConfig,
103+ serverImplementation,
98104} : SidebarProps ) => {
99105 const [ theme , setTheme ] = useTheme ( ) ;
100106 const [ showEnvVars , setShowEnvVars ] = useState ( false ) ;
@@ -729,6 +735,45 @@ const Sidebar = ({
729735 </ span >
730736 </ div >
731737
738+ { connectionStatus === "connected" && serverImplementation && (
739+ < div className = "bg-gray-50 dark:bg-gray-900 p-3 rounded-lg mb-4" >
740+ < div className = "flex items-center gap-2 mb-1" >
741+ { ( serverImplementation as WithIcons ) . icons &&
742+ ( serverImplementation as WithIcons ) . icons ! . length > 0 ? (
743+ < IconDisplay
744+ icons = { ( serverImplementation as WithIcons ) . icons }
745+ size = "sm"
746+ />
747+ ) : (
748+ < Server className = "w-4 h-4 text-gray-500" />
749+ ) }
750+ { ( serverImplementation as { websiteUrl ?: string } )
751+ . websiteUrl ? (
752+ < a
753+ href = {
754+ ( serverImplementation as { websiteUrl ?: string } )
755+ . websiteUrl
756+ }
757+ target = "_blank"
758+ rel = "noopener noreferrer"
759+ 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"
760+ >
761+ { serverImplementation . name || "MCP Server" }
762+ </ a >
763+ ) : (
764+ < span className = "text-sm font-medium text-gray-800 dark:text-gray-200" >
765+ { serverImplementation . name || "MCP Server" }
766+ </ span >
767+ ) }
768+ </ div >
769+ { serverImplementation . version && (
770+ < div className = "text-xs text-gray-500 dark:text-gray-400" >
771+ Version: { serverImplementation . version }
772+ </ div >
773+ ) }
774+ </ div >
775+ ) }
776+
732777 { loggingSupported && connectionStatus === "connected" && (
733778 < div className = "space-y-2" >
734779 < label
0 commit comments