Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions client/src/lib/hooks/useConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@ export function useConnection({
variant: "destructive",
});
}
toast({
title: "Connection error",
description: `Connection failed: "${e}"`,
variant: "destructive",
});
Copy link
Member

@cliffhall cliffhall Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that conditional toast above this is fired, there will be a second toast popped about a connection error. It should be an if/else.

Suggested change
});
} else {
toast({
title: "Connection error",
description: `Connection failed: "${e}"`,
variant: "destructive",
});
}

console.error(e);
setConnectionStatus("error");
}
Expand Down
4 changes: 3 additions & 1 deletion server/src/mcpProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default function mcpProxy({
id: message.id,
error: {
code: -32001,
message: error.message,
message: error.cause
? `${error.message} (cause: ${error.cause})`
: error.message,
data: error,
},
};
Expand Down