Team Ai
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 21d agoView on Hugging Face
0likes1.2kdownloads
mcp-servers-default.test.ts20 linesDownload Raw Back to unit
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