summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/commands/mcpCommand.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/commands/mcpCommand.ts')
-rw-r--r--packages/cli/src/ui/commands/mcpCommand.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/cli/src/ui/commands/mcpCommand.ts b/packages/cli/src/ui/commands/mcpCommand.ts
index 11c71f1a..686102be 100644
--- a/packages/cli/src/ui/commands/mcpCommand.ts
+++ b/packages/cli/src/ui/commands/mcpCommand.ts
@@ -417,6 +417,9 @@ const authCommand: SlashCommand = {
await geminiClient.setTools();
}
+ // Reload the slash commands to reflect the changes.
+ context.ui.reloadCommands();
+
return {
type: 'message',
messageType: 'info',
@@ -507,6 +510,9 @@ const refreshCommand: SlashCommand = {
await geminiClient.setTools();
}
+ // Reload the slash commands to reflect the changes.
+ context.ui.reloadCommands();
+
return getMcpStatus(context, false, false, false);
},
};