feat: Add McpServersSettings to Chat Settings "MCP" section

This commit is contained in:
Aleksander Grygier 2026-02-05 15:03:48 +01:00
parent 6c7c597066
commit 242bc082dd
2 changed files with 17 additions and 4 deletions

View File

@ -13,7 +13,8 @@
ChatSettingsFooter,
ChatSettingsImportExportTab,
ChatSettingsFields,
McpLogo
McpLogo,
McpServersSettings
} from '$lib/components/app';
import { ScrollArea } from '$lib/components/ui/scroll-area';
import { config, settingsStore } from '$lib/stores/settings.svelte';
@ -488,6 +489,19 @@
{#if currentSection.title === 'Import/Export'}
<ChatSettingsImportExportTab />
{:else if currentSection.title === 'MCP'}
<div class="space-y-6">
<ChatSettingsFields
fields={currentSection.fields}
{localConfig}
onConfigChange={handleConfigChange}
onThemeChange={handleThemeChange}
/>
<div class="border-t border-border/30 pt-6">
<McpServersSettings />
</div>
</div>
{:else}
<div class="space-y-6">
<ChatSettingsFields

View File

@ -28,9 +28,8 @@
<Dialog.Root {open} onOpenChange={handleClose}>
<Dialog.Content
class="z-999999 flex h-[100dvh] max-h-[100dvh] min-h-[100dvh] flex-col gap-0 rounded-none p-0
md:h-[64vh] md:max-h-[64vh] md:min-h-0 md:rounded-lg"
style="max-width: 48rem;"
class="z-999999 flex h-[100dvh] max-h-[100dvh] min-h-[100dvh] max-w-4xl! flex-col gap-0 rounded-none
p-0 md:h-[64vh] md:max-h-[64vh] md:min-h-0 md:rounded-lg"
>
<ChatSettings bind:this={chatSettingsRef} onSave={handleSave} />
</Dialog.Content>