Skip to content

Commit bd4af8f

Browse files
author
colinmcneil
committed
Remove notification asking users to restart Gordon
1 parent ef2958d commit bd4af8f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/extension/ui/src/context/MCPClientContext.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,18 @@ export function MCPClientProvider({ children, client }: MCPClientProviderProps)
6161
);
6262

6363
if (newlyConnectedClient) {
64-
client.desktopUI.toast.success('Client Connected: ' + newlyConnectedClient.client.name + '. Restart it to load the Catalog.');
64+
if (newlyConnectedClient.client.name === 'Gordon') {
65+
client.desktopUI.toast.success('Gordon is connected to the Catalog.');
66+
} else {
67+
client.desktopUI.toast.success('Client Connected: ' + newlyConnectedClient.client.name + '. Restart it to load the Catalog.');
68+
}
6569
}
6670
if (newlyDisconnectedClient) {
67-
client.desktopUI.toast.error('Client Disconnected: ' + newlyDisconnectedClient.client.name + '. Restart it to remove the Catalog.');
71+
if (newlyDisconnectedClient.client.name === 'Gordon') {
72+
client.desktopUI.toast.error('Gordon is disconnected from the Catalog.');
73+
} else {
74+
client.desktopUI.toast.error('Client Disconnected: ' + newlyDisconnectedClient.client.name + '. Restart it to remove the Catalog.');
75+
}
6876
}
6977
}
7078

0 commit comments

Comments
 (0)