Update MCP client to connect to servers with only prompts (#5290)

This commit is contained in:
Harold Mciver 2025-08-04 17:38:23 -04:00 committed by GitHub
parent 93f8fe3671
commit 99ba2f6424
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 27 deletions

View file

@ -212,9 +212,9 @@ describe('mcpCommand', () => {
);
expect(message).toContain('server2_tool1');
// Server 3 - Disconnected
// Server 3 - Disconnected but with cached tools, so shows as Ready
expect(message).toContain(
'🔴 \u001b[1mserver3\u001b[0m - Disconnected (1 tools cached)',
'🟢 \u001b[1mserver3\u001b[0m - Ready (1 tool)',
);
expect(message).toContain('server3_tool1');