Download tools/ui/tests/unit/mcp-servers-default.test.ts from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/ui/tests/unit/mcp-servers-default.test.ts
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/tools/ui/tests/unit/mcp-servers-default.test.ts
-
curl -L -o mcp-servers-default.test.ts https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/ui/tests/unit/mcp-servers-default.test.ts
838 Bytes
| import { SETTINGS_KEYS } from '$lib/constants/settings-keys'; | |
| import { describe, expect, it } from 'vitest'; | |
| /** | |
| * Default-value policy for the `MCP_SERVERS` setting. | |
| * | |
| * Earlier versions of the UI preloaded a hard-coded list of suggested | |
| * MCP servers into this setting on first install. That caused silent | |
| * third-party HTTP requests at app load (see issue #25509) and a popup | |
| * "recommendation" dialog (see issue #25274). New users must now opt | |
| * in explicitly when adding a server, so the default is an empty list. | |
| */ | |
| describe('MCP_SERVERS default value', () => { | |
| it('does not preload any servers in the MCP_SERVERS setting default', async () => { | |
| const { SETTING_CONFIG_DEFAULT } = await import('$lib/constants/settings-registry'); | |
| expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.MCP_SERVERS]).toBe('[]'); | |
| }, 15000); | |
| }); | |