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/hooks/atCommandProcessor.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/cli/src/ui/hooks') diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.test.ts b/packages/cli/src/ui/hooks/atCommandProcessor.test.ts index 5509d9ff..7403f788 100644 --- a/packages/cli/src/ui/hooks/atCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/atCommandProcessor.test.ts @@ -63,6 +63,12 @@ describe('handleAtCommand', () => { isPathWithinWorkspace: () => true, getDirectories: () => [testRootDir], }), + getMcpServers: () => ({}), + getMcpServerCommand: () => undefined, + getPromptRegistry: () => ({ + getPromptsByServer: () => [], + }), + getDebugMode: () => false, } as unknown as Config; const registry = new ToolRegistry(mockConfig); -- cgit v1.2.3