File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { useState } from "react" ;
2
-
3
2
import { Play , ChevronDown , ChevronRight } from "lucide-react" ;
4
3
import { Button } from "@/components/ui/button" ;
5
4
import { Input } from "@/components/ui/input" ;
@@ -13,6 +12,7 @@ import {
13
12
import { StdErrNotification } from "@/lib/notificationTypes" ;
14
13
15
14
import useTheme from "../lib/useTheme" ;
15
+ import { version } from "../../../package.json" ;
16
16
17
17
interface SidebarProps {
18
18
connectionStatus : "disconnected" | "connected" | "error" ;
@@ -52,7 +52,9 @@ const Sidebar = ({
52
52
< div className = "w-80 bg-card border-r border-border flex flex-col h-full" >
53
53
< div className = "flex items-center justify-between p-4 border-b border-gray-200" >
54
54
< 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 >
56
58
</ div >
57
59
</ div >
58
60
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const ToolsTab = ({
83
83
/>
84
84
) }
85
85
{ item . type === "resource" && (
86
- < pre className = "bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64" >
86
+ < pre className = "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words p-4 rounded text-sm overflow-auto max-h-64" >
87
87
{ JSON . stringify ( item . resource , null , 2 ) }
88
88
</ pre >
89
89
) }
Original file line number Diff line number Diff line change 23
23
"strict" : true ,
24
24
"noUnusedLocals" : true ,
25
25
"noUnusedParameters" : true ,
26
- "noFallthroughCasesInSwitch" : true
26
+ "noFallthroughCasesInSwitch" : true ,
27
+ "resolveJsonModule" : true
27
28
},
28
29
"include" : [" src" ]
29
30
}
You can’t perform that action at this time.
0 commit comments