Skip to content

Commit 0716ada

Browse files
committed
Remove unused RequestsTab
1 parent 733d2a6 commit 0716ada

File tree

2 files changed

+11
-45
lines changed

2 files changed

+11
-45
lines changed

client/src/App.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
22
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
33
import {
4-
CompatibilityCallToolResultSchema,
4+
ClientNotification,
55
ClientRequest,
6+
CompatibilityCallToolResult,
7+
CompatibilityCallToolResultSchema,
68
CreateMessageRequestSchema,
79
CreateMessageResult,
810
EmptyResultSchema,
@@ -19,8 +21,6 @@ import {
1921
Root,
2022
ServerNotification,
2123
Tool,
22-
CompatibilityCallToolResult,
23-
ClientNotification,
2424
} from "@modelcontextprotocol/sdk/types.js";
2525
import { useEffect, useRef, useState } from "react";
2626
// Add dark mode class based on system preference
@@ -40,16 +40,16 @@ import {
4040
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
4141
import {
4242
Bell,
43+
ChevronDown,
44+
ChevronRight,
4345
Files,
46+
FolderTree,
4447
Hammer,
4548
Hash,
4649
MessageSquare,
4750
Play,
4851
Send,
4952
Terminal,
50-
FolderTree,
51-
ChevronDown,
52-
ChevronRight,
5353
} from "lucide-react";
5454

5555
import { ZodType } from "zod";
@@ -58,7 +58,6 @@ import ConsoleTab from "./components/ConsoleTab";
5858
import HistoryAndNotifications from "./components/History";
5959
import PingTab from "./components/PingTab";
6060
import PromptsTab, { Prompt } from "./components/PromptsTab";
61-
import RequestsTab from "./components/RequestsTabs";
6261
import ResourcesTab from "./components/ResourcesTab";
6362
import RootsTab from "./components/RootsTab";
6463
import SamplingTab, { PendingRequest } from "./components/SamplingTab";
@@ -184,7 +183,7 @@ const App = () => {
184183
if (!mcpClient) {
185184
throw new Error("MCP client not connected");
186185
}
187-
186+
188187
try {
189188
const response = await mcpClient.request(request, schema);
190189
pushHistory(request, response);
@@ -222,7 +221,7 @@ const App = () => {
222221
setResources(resources.concat(response.resources ?? []));
223222
setNextResourceCursor(response.nextCursor);
224223
};
225-
224+
226225
const listResourceTemplates = async () => {
227226
const response = await makeRequest(
228227
{
@@ -239,7 +238,7 @@ const App = () => {
239238
);
240239
setNextResourceTemplateCursor(response.nextCursor);
241240
};
242-
241+
243242
const readResource = async (uri: string) => {
244243
const response = await makeRequest(
245244
{
@@ -264,7 +263,7 @@ const App = () => {
264263
setPrompts(response.prompts);
265264
setNextPromptCursor(response.nextCursor);
266265
};
267-
266+
268267
const getPrompt = async (name: string, args: Record<string, string> = {}) => {
269268
const response = await makeRequest(
270269
{
@@ -289,7 +288,7 @@ const App = () => {
289288
setTools(response.tools);
290289
setNextToolCursor(response.nextCursor);
291290
};
292-
291+
293292
const callTool = async (name: string, params: Record<string, unknown>) => {
294293
const response = await makeRequest(
295294
{

client/src/components/RequestsTabs.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)