2 import { mcpStore } from '$lib/stores/mcp.svelte';
3 import type { MCPServerSettingsEntry } from '$lib/types';
4 import type { Snippet } from 'svelte';
7 server: MCPServerSettingsEntry | undefined;
15 let { description, server, serverLabel, subtitle, title, titleExtra }: Props = $props();
17 let faviconUrl = $derived(server ? mcpStore.getServerFavicon(server.id) : null);
20 <div class="min-w-0 flex-1">
21 <div class="mb-0.5 flex items-center gap-1.5 text-xs text-muted-foreground">
26 class="h-3 w-3 shrink-0 rounded-sm"
28 (e.currentTarget as HTMLImageElement).style.display = 'none';
33 <span>{serverLabel}</span>
36 <div class="flex items-center gap-2">
37 <span class="font-medium">
42 {@render titleExtra()}
47 <p class="mt-0.5 truncate text-sm text-muted-foreground">