Skip to content

Commit e700bc7

Browse files
authored
Merge pull request #87 from modelcontextprotocol/ashwin/versiondisplay
display inspector version in UI
2 parents bea86af + 6f62066 commit e700bc7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

client/src/components/Sidebar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from "react";
2-
32
import { Play, ChevronDown, ChevronRight } from "lucide-react";
43
import { Button } from "@/components/ui/button";
54
import { Input } from "@/components/ui/input";
@@ -13,6 +12,7 @@ import {
1312
import { StdErrNotification } from "@/lib/notificationTypes";
1413

1514
import useTheme from "../lib/useTheme";
15+
import { version } from "../../../package.json";
1616

1717
interface SidebarProps {
1818
connectionStatus: "disconnected" | "connected" | "error";
@@ -52,7 +52,9 @@ const Sidebar = ({
5252
<div className="w-80 bg-card border-r border-border flex flex-col h-full">
5353
<div className="flex items-center justify-between p-4 border-b border-gray-200">
5454
<div className="flex items-center">
55-
<h1 className="ml-2 text-lg font-semibold">MCP Inspector</h1>
55+
<h1 className="ml-2 text-lg font-semibold">
56+
MCP Inspector v{version}
57+
</h1>
5658
</div>
5759
</div>
5860

client/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"strict": true,
2424
"noUnusedLocals": true,
2525
"noUnusedParameters": true,
26-
"noFallthroughCasesInSwitch": true
26+
"noFallthroughCasesInSwitch": true,
27+
"resolveJsonModule": true
2728
},
2829
"include": ["src"]
2930
}

0 commit comments

Comments
 (0)