From 63193ec00730e6d6d4502ceb43935cdfa277d15c Mon Sep 17 00:00:00 2001 From: Felix Weinberger Date: Tue, 5 Aug 2025 13:31:40 +0100 Subject: [PATCH] Clean up CLI tests and add config parsing tests - Remove web client launch tests from CLI test suite - Add CLI-mode tests for SSE and streamable-http configs - Keep only tests that use --cli flag as intended --- cli/scripts/cli-tests.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/cli/scripts/cli-tests.js b/cli/scripts/cli-tests.js index 857b5108..299c7e3d 100755 --- a/cli/scripts/cli-tests.js +++ b/cli/scripts/cli-tests.js @@ -744,26 +744,28 @@ async function runTests() { "tools/list", ); - // Test 26: Config with SSE transport type (should pass transport to client) + // Test 26: Config with SSE transport type (CLI mode) await runBasicTest( - "config_sse_type", + "config_sse_type_cli", "--config", sseConfigPath, "--server", "test-sse", - "echo", - "test", + "--cli", + "--method", + "tools/list", ); - // Test 27: Config with streamable-http transport type + // Test 27: Config with streamable-http transport type (CLI mode) await runBasicTest( - "config_http_type", + "config_http_type_cli", "--config", httpConfigPath, "--server", "test-http", - "echo", - "test", + "--cli", + "--method", + "tools/list", ); // Test 28: Legacy config without type field (backward compatibility)