-
- {selectedResource
- ? selectedResource.name
- : selectedTemplate
- ? selectedTemplate.name
- : "Select a resource or template"}
-
+
+ {(selectedResource || selectedTemplate) && (
+
+ )}
+
+ {selectedResource
+ ? selectedResource.name
+ : selectedTemplate
+ ? selectedTemplate.name
+ : "Select a resource or template"}
+
+
{selectedResource && (
{resourceSubscriptionsSupported &&
diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx
index b369a967b..13a4f24f4 100644
--- a/client/src/components/Sidebar.tsx
+++ b/client/src/components/Sidebar.tsx
@@ -14,6 +14,7 @@ import {
RefreshCwOff,
Copy,
CheckCheck,
+ Server,
} from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
@@ -40,6 +41,7 @@ import {
import CustomHeaders from "./CustomHeaders";
import { CustomHeaders as CustomHeadersType } from "@/lib/types/customHeaders";
import { useToast } from "../lib/hooks/useToast";
+import IconDisplay, { WithIcons } from "./IconDisplay";
interface SidebarProps {
connectionStatus: ConnectionStatus;
@@ -71,6 +73,9 @@ interface SidebarProps {
setConfig: (config: InspectorConfig) => void;
connectionType: "direct" | "proxy";
setConnectionType: (type: "direct" | "proxy") => void;
+ serverImplementation?:
+ | (WithIcons & { name?: string; version?: string; websiteUrl?: string })
+ | null;
}
const Sidebar = ({
@@ -102,6 +107,7 @@ const Sidebar = ({
setConfig,
connectionType,
setConnectionType,
+ serverImplementation,
}: SidebarProps) => {
const [theme, setTheme] = useTheme();
const [showEnvVars, setShowEnvVars] = useState(false);
@@ -776,6 +782,45 @@ const Sidebar = ({
+ {connectionStatus === "connected" && serverImplementation && (
+
+
+ {(serverImplementation as WithIcons).icons &&
+ (serverImplementation as WithIcons).icons!.length > 0 ? (
+
+ ) : (
+
+ )}
+ {(serverImplementation as { websiteUrl?: string })
+ .websiteUrl ? (
+
+ {serverImplementation.name || "MCP Server"}
+
+ ) : (
+
+ {serverImplementation.name || "MCP Server"}
+
+ )}
+
+ {serverImplementation.version && (
+
+ Version: {serverImplementation.version}
+
+ )}
+
+ )}
+
{loggingSupported && connectionStatus === "connected" && (