{#if servers.length === 0 && !isAddingServer}
No MCP Servers configured yet. Add one to enable agentic features.
{/if}
{#if servers.length > 0}
{#each servers as server (server.id)}
{#if !initialLoadComplete}
{:else}
{
const wasEnabled = conversationsStore.isMcpServerEnabledForChat(server.id);
await conversationsStore.toggleMcpServerForChat(server.id);
if (!wasEnabled) {
toolsStore.enableAllToolsForServer(server.id);
}
}}
onUpdate={(updates) => mcpStore.updateServer(server.id, updates)}
onDelete={() => mcpStore.removeServer(server.id)}
/>
{/if}
{/each}
{/if}