Add your first MCP serverConnect a remote MCP server by URL.
{:else}
{#each servers as server (server.id)}
{#if isServerPending(server.id, server.enabled)}
{:else}
{
const wasEnabled = conversationsStore.isMcpServerEnabledForChat(server.id);
await conversationsStore.toggleMcpServerForChat(server.id);
if (!wasEnabled) {
// Promote the connection so tools/prompts/resources become
// available right away instead of waiting for the next chat-init.
await mcpStore.runHealthCheck(server, true);
toolsStore.enableAllToolsForServer(server.id);
}
}}
onUpdate={(updates) => mcpStore.updateServer(server.id, updates)}
onDelete={() => mcpStore.removeServer(server.id)}
/>
{/if}
{/each}
{#if !isAddingServer}
Add another MCP serverConnect a remote MCP server by URL.
{/if}