From 6f62066d34e6c27014eb579d2b2172546abd2c17 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Wed, 27 Nov 2024 10:51:19 -0500 Subject: [PATCH 1/2] display inspector version in UI --- client/src/components/Sidebar.tsx | 6 ++++-- client/tsconfig.app.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index 9e9428e..266f98e 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -1,5 +1,4 @@ import { useState } from "react"; - import { Play, ChevronDown, ChevronRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -13,6 +12,7 @@ import { import { StdErrNotification } from "@/lib/notificationTypes"; import useTheme from "../lib/useTheme"; +import { version } from "../../../package.json"; interface SidebarProps { connectionStatus: "disconnected" | "connected" | "error"; @@ -52,7 +52,9 @@ const Sidebar = ({
-

MCP Inspector

+

+ MCP Inspector v{version} +

diff --git a/client/tsconfig.app.json b/client/tsconfig.app.json index 01320d9..980c215 100644 --- a/client/tsconfig.app.json +++ b/client/tsconfig.app.json @@ -23,7 +23,8 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true }, "include": ["src"] } From 68a6130b174dc23e2ca2b82d105ef0839e33c552 Mon Sep 17 00:00:00 2001 From: evalstate <1936278+evalstate@users.noreply.github.com> Date: Wed, 27 Nov 2024 17:56:22 +0000 Subject: [PATCH 2/2] fix dark mode styling and add word wrap for resource viewer. --- client/src/components/ToolsTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 255ab67..7b85ccc 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -83,7 +83,7 @@ const ToolsTab = ({ /> )} {item.type === "resource" && ( -
+                
                   {JSON.stringify(item.resource, null, 2)}
                 
)}