From b845444fabf2f893e3014a7673005c2188271393 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Wed, 4 Dec 2024 09:56:04 -0800 Subject: [PATCH 1/3] update sdk to 1.0.3 --- client/package.json | 2 +- package-lock.json | 11 +++++------ server/package.json | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/client/package.json b/client/package.json index 91bc418..5ed07ee 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.3", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-select": "^2.1.2", diff --git a/package-lock.json b/package-lock.json index a6dee35..fb35e2c 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.3", "@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.3", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.0.3.tgz", + "integrity": "sha512-2as3cX/VJ0YBHGmdv3GFyTpoM8q2gqE98zh3Vf1NwnsSY0h3mvoO07MUzfygCKkWsFjcZm4otIiqD6Xh7kiSBQ==", "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.3", "cors": "^2.8.5", "eventsource": "^2.0.2", "express": "^4.21.0", diff --git a/server/package.json b/server/package.json index 41b0a61..d7864a4 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.3", "cors": "^2.8.5", "eventsource": "^2.0.2", "express": "^4.21.0", From f04b161411eb8071189bd49f77145511e8d83e45 Mon Sep 17 00:00:00 2001 From: = <1936278+evalstate@users.noreply.github.com> Date: Thu, 5 Dec 2024 08:11:35 +0000 Subject: [PATCH 2/3] Allow setting timeout via "timeout" URL parameter --- client/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 0ee234b..2c84377 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -59,6 +59,7 @@ const DEFAULT_REQUEST_TIMEOUT_MSEC = 10000; const params = new URLSearchParams(window.location.search); const PROXY_PORT = params.get("proxyPort") ?? "3000"; +const REQUEST_TIMEOUT = parseInt(params.get("timeout") ?? "") || DEFAULT_REQUEST_TIMEOUT_MSEC; const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`; const App = () => { @@ -243,7 +244,7 @@ const App = () => { const abortController = new AbortController(); const timeoutId = setTimeout(() => { abortController.abort("Request timed out"); - }, DEFAULT_REQUEST_TIMEOUT_MSEC); + }, REQUEST_TIMEOUT); let response; try { From 576ff0043a8f2c3e01430ea4e7aeb57e9e571266 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Thu, 5 Dec 2024 08:01:57 -0800 Subject: [PATCH 3/3] bump version to 0.3.0 --- client/package.json | 2 +- package-lock.json | 12 ++++++------ package.json | 6 +++--- server/package.json | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/package.json b/client/package.json index 5ed07ee..888495c 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-client", - "version": "0.2.7", + "version": "0.3.0", "description": "Client-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", diff --git a/package-lock.json b/package-lock.json index fb35e2c..26f07ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.2.7", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@modelcontextprotocol/inspector", - "version": "0.2.7", + "version": "0.3.0", "license": "MIT", "workspaces": [ "client", "server" ], "dependencies": { - "@modelcontextprotocol/inspector-client": "0.2.7", - "@modelcontextprotocol/inspector-server": "0.2.7", + "@modelcontextprotocol/inspector-client": "0.3.0", + "@modelcontextprotocol/inspector-server": "0.3.0", "concurrently": "^9.0.1", "spawn-rx": "^5.1.0", "ts-node": "^10.9.2" @@ -29,7 +29,7 @@ }, "client": { "name": "@modelcontextprotocol/inspector-client", - "version": "0.2.7", + "version": "0.3.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.0.3", @@ -6925,7 +6925,7 @@ }, "server": { "name": "@modelcontextprotocol/inspector-server", - "version": "0.2.7", + "version": "0.3.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.0.3", diff --git a/package.json b/package.json index a86624f..9061a7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.2.7", + "version": "0.3.0", "description": "Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -33,8 +33,8 @@ "publish-all": "npm publish --workspaces --access public && npm publish --access public" }, "dependencies": { - "@modelcontextprotocol/inspector-client": "0.2.7", - "@modelcontextprotocol/inspector-server": "0.2.7", + "@modelcontextprotocol/inspector-client": "0.3.0", + "@modelcontextprotocol/inspector-server": "0.3.0", "concurrently": "^9.0.1", "spawn-rx": "^5.1.0", "ts-node": "^10.9.2" diff --git a/server/package.json b/server/package.json index d7864a4..c79e7d2 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-server", - "version": "0.2.7", + "version": "0.3.0", "description": "Server-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)",