diff --git a/client/package.json b/client/package.json index 91bc418d..77b12b4d 100644 --- a/client/package.json +++ b/client/package.json @@ -21,7 +21,7 @@ "preview": "vite preview" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.0.1", + "@modelcontextprotocol/sdk": "^1.0.2", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-select": "^2.1.2", diff --git a/client/src/App.tsx b/client/src/App.tsx index 0ee234b5..7cc2cda0 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -3,8 +3,8 @@ import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; import { ClientNotification, ClientRequest, - CompatibilityCallToolResult, - CompatibilityCallToolResultSchema, + CallToolResult, + CallToolResultSchema, CreateMessageRequestSchema, CreateMessageResult, EmptyResultSchema, @@ -74,7 +74,7 @@ const App = () => { const [promptContent, setPromptContent] = useState(""); const [tools, setTools] = useState([]); const [toolResult, setToolResult] = - useState(null); + useState(null); const [errors, setErrors] = useState>({ resources: null, prompts: null, @@ -381,7 +381,7 @@ const App = () => { }, }, }, - CompatibilityCallToolResultSchema, + CallToolResultSchema, "tools", ); setToolResult(response); diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 1113ebc1..afadbbb9 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -13,7 +13,7 @@ import { AlertCircle, Send } from "lucide-react"; import { useState } from "react"; import ListPane from "./ListPane"; -import { CompatibilityCallToolResult } from "@modelcontextprotocol/sdk/types.js"; +import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; const ToolsTab = ({ tools, @@ -32,7 +32,7 @@ const ToolsTab = ({ callTool: (name: string, params: Record) => void; selectedTool: Tool | null; setSelectedTool: (tool: Tool) => void; - toolResult: CompatibilityCallToolResult | null; + toolResult: CallToolResult | null; nextCursor: ListToolsResult["nextCursor"]; error: string | null; }) => { @@ -93,15 +93,6 @@ const ToolsTab = ({ ))} ); - } else if ("toolResult" in toolResult) { - return ( - <> -

Tool Result (Legacy):

-
-            {JSON.stringify(toolResult.toolResult, null, 2)}
-          
- - ); } }; diff --git a/package-lock.json b/package-lock.json index a6dee356..245af34c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "version": "0.2.7", "license": "MIT", "dependencies": { - "@modelcontextprotocol/sdk": "^1.0.1", + "@modelcontextprotocol/sdk": "^1.0.2", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-select": "^2.1.2", @@ -1203,10 +1203,9 @@ "link": true }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.0.1.tgz", - "integrity": "sha512-slLdFaxQJ9AlRg+hw28iiTtGvShAOgOKXcD0F91nUcRYiOMuS9ZBYjcdNZRXW9G5JQ511GRTdUy1zQVZDpJ+4w==", - "license": "MIT", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.0.2.tgz", + "integrity": "sha512-QWjVDWkpQjCtbIYUD1t4KzcrYQVtKC9hGs5FHFjlH30oAjZJ/nSYqn8xTqT1ugtiI0txa+uHNrsEIFLew+CCSw==", "dependencies": { "content-type": "^1.0.5", "raw-body": "^3.0.0", @@ -6929,7 +6928,7 @@ "version": "0.2.7", "license": "MIT", "dependencies": { - "@modelcontextprotocol/sdk": "^1.0.1", + "@modelcontextprotocol/sdk": "^1.0.2", "cors": "^2.8.5", "eventsource": "^2.0.2", "express": "^4.21.0", diff --git a/server/package.json b/server/package.json index 41b0a611..6ce1671e 100644 --- a/server/package.json +++ b/server/package.json @@ -27,7 +27,7 @@ "typescript": "^5.6.2" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.0.1", + "@modelcontextprotocol/sdk": "^1.0.2", "cors": "^2.8.5", "eventsource": "^2.0.2", "express": "^4.21.0",