diff options
Diffstat (limited to 'packages/cli/src/config/config.test.ts')
| -rw-r--r-- | packages/cli/src/config/config.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/cli/src/config/config.test.ts b/packages/cli/src/config/config.test.ts index c08266d2..ca5c9fdf 100644 --- a/packages/cli/src/config/config.test.ts +++ b/packages/cli/src/config/config.test.ts @@ -479,7 +479,7 @@ describe('mergeExcludeTools', () => { }); }); -describe('loadCliConfig with allowed_mcp_server_names', () => { +describe('loadCliConfig with allowed-mcp-server-names', () => { const originalArgv = process.argv; const originalEnv = { ...process.env }; @@ -513,7 +513,7 @@ describe('loadCliConfig with allowed_mcp_server_names', () => { process.argv = [ 'node', 'script.js', - '--allowed_mcp_server_names', + '--allowed-mcp-server-names', 'server1', ]; const config = await loadCliConfig(baseSettings, [], 'test-session'); @@ -526,7 +526,7 @@ describe('loadCliConfig with allowed_mcp_server_names', () => { process.argv = [ 'node', 'script.js', - '--allowed_mcp_server_names', + '--allowed-mcp-server-names', 'server1,server3', ]; const config = await loadCliConfig(baseSettings, [], 'test-session'); @@ -540,7 +540,7 @@ describe('loadCliConfig with allowed_mcp_server_names', () => { process.argv = [ 'node', 'script.js', - '--allowed_mcp_server_names', + '--allowed-mcp-server-names', 'server1,server4', ]; const config = await loadCliConfig(baseSettings, [], 'test-session'); @@ -550,7 +550,7 @@ describe('loadCliConfig with allowed_mcp_server_names', () => { }); it('should allow all MCP servers if the flag is an empty string', async () => { - process.argv = ['node', 'script.js', '--allowed_mcp_server_names', '']; + process.argv = ['node', 'script.js', '--allowed-mcp-server-names', '']; const config = await loadCliConfig(baseSettings, [], 'test-session'); expect(config.getMcpServers()).toEqual(baseSettings.mcpServers); }); |
