From 0d8e8fce4bbcb4aa815a0dc6929f7e58dfd9839c Mon Sep 17 00:00:00 2001 From: cliffhall Date: Tue, 12 Aug 2025 15:26:15 -0400 Subject: [PATCH] This fixes #610 * In useConnection.ts - During initialization, if there is an error immediately following the client sending 'logging/setLevel', pops up a toast with the message `Server declares logging capability but doesn't implement method "logging/setLevel"` --- client/src/lib/hooks/useConnection.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/lib/hooks/useConnection.ts b/client/src/lib/hooks/useConnection.ts index 9b03f748..12d8ff3e 100644 --- a/client/src/lib/hooks/useConnection.ts +++ b/client/src/lib/hooks/useConnection.ts @@ -581,7 +581,11 @@ export function useConnection({ setMcpClient(client); setConnectionStatus("connected"); } catch (e) { - if (lastRequest === "logging/setLevel" && e instanceof McpError && e.code === ErrorCode.MethodNotFound) { + if ( + lastRequest === "logging/setLevel" && + e instanceof McpError && + e.code === ErrorCode.MethodNotFound + ) { toast({ title: "Error", description: `Server declares logging capability but doesn't implement method: "${lastRequest}"`,