|
1 |
| -import { Client } from "mcp-typescript/client/index.js"; |
2 |
| -import { SSEClientTransport } from "mcp-typescript/client/sse.js"; |
| 1 | +import { Button } from "@/components/ui/button"; |
| 2 | +import { Input } from "@/components/ui/input"; |
3 | 3 | import {
|
4 |
| - ListResourcesResultSchema, |
| 4 | + Select, |
| 5 | + SelectContent, |
| 6 | + SelectItem, |
| 7 | + SelectTrigger, |
| 8 | + SelectValue, |
| 9 | +} from "@/components/ui/select"; |
| 10 | +import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; |
| 11 | +import { Client } from "@modelcontextprotocol/sdk/client/index.js"; |
| 12 | +import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; |
| 13 | +import { |
| 14 | + CallToolResultSchema, |
| 15 | + ClientRequest, |
| 16 | + EmptyResultSchema, |
5 | 17 | GetPromptResultSchema,
|
| 18 | + ListPromptsResultSchema, |
| 19 | + ListResourcesResultSchema, |
6 | 20 | ListToolsResultSchema,
|
| 21 | + ProgressNotificationSchema, |
7 | 22 | ReadResourceResultSchema,
|
8 |
| - CallToolResultSchema, |
9 |
| - ListPromptsResultSchema, |
10 | 23 | Resource,
|
11 |
| - Tool, |
12 |
| - ClientRequest, |
13 |
| - ProgressNotificationSchema, |
14 | 24 | ServerNotification,
|
15 |
| - EmptyResultSchema, |
16 |
| -} from "mcp-typescript/types.js"; |
17 |
| -import { useState, useRef, useEffect } from "react"; |
| 25 | + Tool, |
| 26 | +} from "@modelcontextprotocol/sdk/types.js"; |
18 | 27 | import {
|
19 |
| - Send, |
20 |
| - Terminal, |
21 |
| - Files, |
22 | 28 | Bell,
|
23 |
| - MessageSquare, |
| 29 | + Files, |
24 | 30 | Hammer,
|
| 31 | + MessageSquare, |
25 | 32 | Play,
|
| 33 | + Send, |
| 34 | + Terminal, |
26 | 35 | } from "lucide-react";
|
27 |
| -import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; |
28 |
| -import { Input } from "@/components/ui/input"; |
29 |
| -import { Button } from "@/components/ui/button"; |
30 |
| -import { |
31 |
| - Select, |
32 |
| - SelectContent, |
33 |
| - SelectItem, |
34 |
| - SelectTrigger, |
35 |
| - SelectValue, |
36 |
| -} from "@/components/ui/select"; |
| 36 | +import { useEffect, useRef, useState } from "react"; |
37 | 37 |
|
| 38 | +import { AnyZodObject } from "zod"; |
| 39 | +import "./App.css"; |
38 | 40 | import ConsoleTab from "./components/ConsoleTab";
|
39 |
| -import Sidebar from "./components/Sidebar"; |
| 41 | +import HistoryAndNotifications from "./components/History"; |
| 42 | +import PingTab from "./components/PingTab"; |
| 43 | +import PromptsTab, { Prompt } from "./components/PromptsTab"; |
40 | 44 | import RequestsTab from "./components/RequestsTabs";
|
41 | 45 | import ResourcesTab from "./components/ResourcesTab";
|
42 |
| -import PromptsTab, { Prompt } from "./components/PromptsTab"; |
| 46 | +import Sidebar from "./components/Sidebar"; |
43 | 47 | import ToolsTab from "./components/ToolsTab";
|
44 |
| -import { AnyZodObject } from "zod"; |
45 |
| -import HistoryAndNotifications from "./components/History"; |
46 |
| -import "./App.css"; |
47 |
| -import PingTab from "./components/PingTab"; |
48 | 48 |
|
49 | 49 | const App = () => {
|
50 | 50 | const [connectionStatus, setConnectionStatus] = useState<
|
|
0 commit comments