Felipe97/llama-cpp-compiled
01.2k
1import { SETTINGS_KEYS } from '$lib/constants';2import { describe, expect, it } from 'vitest';3 4/**5 * Default-value policy for the `MCP_SERVERS` setting.6 *7 * Earlier versions of the UI preloaded a hard-coded list of suggested8 * MCP servers into this setting on first install. That caused silent9 * third-party HTTP requests at app load (see issue #25509) and a popup10 * "recommendation" dialog (see issue #25274). New users must now opt11 * in explicitly when adding a server, so the default is an empty list.12 */13describe('MCP_SERVERS default value', () => {14 it('does not preload any servers in the MCP_SERVERS setting default', async () => {15 const { SETTING_CONFIG_DEFAULT } = await import('$lib/constants');16 17 expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.MCP_SERVERS]).toBe('[]');18 }, 15000);19});20 