From 9c690e004b53a920ea28409df6acb237b03846b6 Mon Sep 17 00:00:00 2001 From: Veljko Tornjanski Date: Wed, 5 Mar 2025 18:17:39 +0100 Subject: [PATCH 1/2] Update useConnection.ts --- client/src/lib/hooks/useConnection.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/lib/hooks/useConnection.ts b/client/src/lib/hooks/useConnection.ts index e093a46..75b5467 100644 --- a/client/src/lib/hooks/useConnection.ts +++ b/client/src/lib/hooks/useConnection.ts @@ -26,7 +26,9 @@ import { Notification, StdErrNotificationSchema } from "../notificationTypes"; import { auth } from "@modelcontextprotocol/sdk/client/auth.js"; import { authProvider } from "../auth"; -const DEFAULT_REQUEST_TIMEOUT_MSEC = 10000; +const params = new URLSearchParams(window.location.search); +const DEFAULT_REQUEST_TIMEOUT_MSEC = + parseInt(params.get("timeout") ?? "") || 10000; interface UseConnectionOptions { transportType: "stdio" | "sse"; From ca18faa7c3f4a11a3c48429a27e33608ee43a5b1 Mon Sep 17 00:00:00 2001 From: cliffhall Date: Fri, 7 Mar 2025 13:05:45 -0500 Subject: [PATCH 2/2] Removing the all the hype from the ping button. Discussion at: https://github.com/orgs/modelcontextprotocol/discussions/186 --- client/src/components/PingTab.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/components/PingTab.tsx b/client/src/components/PingTab.tsx index e963a26..287356c 100644 --- a/client/src/components/PingTab.tsx +++ b/client/src/components/PingTab.tsx @@ -7,11 +7,9 @@ const PingTab = ({ onPingClick }: { onPingClick: () => void }) => {