Skip to content

Commit 0d8e8fc

Browse files
committed
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"`
1 parent 15b58c8 commit 0d8e8fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/lib/hooks/useConnection.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,11 @@ export function useConnection({
581581
setMcpClient(client);
582582
setConnectionStatus("connected");
583583
} catch (e) {
584-
if (lastRequest === "logging/setLevel" && e instanceof McpError && e.code === ErrorCode.MethodNotFound) {
584+
if (
585+
lastRequest === "logging/setLevel" &&
586+
e instanceof McpError &&
587+
e.code === ErrorCode.MethodNotFound
588+
) {
585589
toast({
586590
title: "Error",
587591
description: `Server declares logging capability but doesn't implement method: "${lastRequest}"`,

0 commit comments

Comments
 (0)