1
- import { Alert , AlertDescription , AlertTitle } from "@/components/ui/alert" ;
1
+ import { Alert , AlertDescription } from "@/components/ui/alert" ;
2
2
import { Button } from "@/components/ui/button" ;
3
3
import { Checkbox } from "@/components/ui/checkbox" ;
4
4
import { Input } from "@/components/ui/input" ;
@@ -13,7 +13,7 @@ import {
13
13
ListToolsResult ,
14
14
Tool ,
15
15
} from "@modelcontextprotocol/sdk/types.js" ;
16
- import { AlertCircle , Send } from "lucide-react" ;
16
+ import { Send } from "lucide-react" ;
17
17
import { useEffect , useState } from "react" ;
18
18
import ListPane from "./ListPane" ;
19
19
import JsonView from "./JsonView" ;
@@ -27,7 +27,6 @@ const ToolsTab = ({
27
27
setSelectedTool,
28
28
toolResult,
29
29
nextCursor,
30
- error,
31
30
} : {
32
31
tools : Tool [ ] ;
33
32
listTools : ( ) => void ;
@@ -147,13 +146,7 @@ const ToolsTab = ({
147
146
</ h3 >
148
147
</ div >
149
148
< div className = "p-4" >
150
- { error ? (
151
- < Alert variant = "destructive" >
152
- < AlertCircle className = "h-4 w-4" />
153
- < AlertTitle > Error</ AlertTitle >
154
- < AlertDescription > { error } </ AlertDescription >
155
- </ Alert >
156
- ) : selectedTool ? (
149
+ { selectedTool ? (
157
150
< div className = "space-y-4" >
158
151
< p className = "text-sm text-gray-600" >
159
152
{ selectedTool . description }
0 commit comments