From b24c5887c45edde8690b4d73d8961e63eee13a34 Mon Sep 17 00:00:00 2001 From: Ramón Medrano Llamas <45878745+rmedranollamas@users.noreply.github.com> Date: Tue, 19 Aug 2025 21:03:19 +0200 Subject: feat: restart MCP servers on /mcp refresh (#5479) Co-authored-by: Brian Ray <62354532+emeryray2002@users.noreply.github.com> Co-authored-by: N. Taylor Mullen --- packages/cli/src/ui/commands/mcpCommand.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/cli/src/ui/commands/mcpCommand.ts') diff --git a/packages/cli/src/ui/commands/mcpCommand.ts b/packages/cli/src/ui/commands/mcpCommand.ts index 686102be..9e321937 100644 --- a/packages/cli/src/ui/commands/mcpCommand.ts +++ b/packages/cli/src/ui/commands/mcpCommand.ts @@ -471,7 +471,7 @@ const listCommand: SlashCommand = { const refreshCommand: SlashCommand = { name: 'refresh', - description: 'Refresh the list of MCP servers and tools', + description: 'Restarts MCP servers.', kind: CommandKind.BUILT_IN, action: async ( context: CommandContext, @@ -497,12 +497,12 @@ const refreshCommand: SlashCommand = { context.ui.addItem( { type: 'info', - text: 'Refreshing MCP servers and tools...', + text: 'Restarting MCP servers...', }, Date.now(), ); - await toolRegistry.discoverMcpTools(); + await toolRegistry.restartMcpServers(); // Update the client with the new tools const geminiClient = config.getGeminiClient(); -- cgit v1.2.3