From 260375819de88ace59fdd8e8d184a538dc698cf3 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Fri, 2 Jan 2026 19:37:41 +0100 Subject: [PATCH] feat: Display and manage servers in ChatForm actions --- .../ChatFormActionFileAttachments.svelte | 31 ++- .../ChatFormActions/ChatFormActions.svelte | 193 +++++++++++++++++- 2 files changed, 206 insertions(+), 18 deletions(-) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionFileAttachments.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionFileAttachments.svelte index 127130fb84..45de946428 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionFileAttachments.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionFileAttachments.svelte @@ -1,17 +1,20 @@
- +
+ (showMcpDialog = true)} + {onFileUpload} + /> + + {#if hasMcpServers} + + + + + + +
+ {#each mcpServers as server (server.id)} + {@const healthState = mcpGetHealthCheckState(server.id)} + {@const hasError = healthState.status === 'error'} +
+
+ {#if getFaviconUrl(server)} + { + (e.currentTarget as HTMLImageElement).style.display = 'none'; + }} + /> + {/if} + {getServerDisplayName(server)} + {#if hasError} + Error + {/if} +
+ toggleServer(server.id, checked)} + disabled={hasError} + /> +
+ {/each} +
+ + (showMcpDialog = true)} + > + + Manage MCP Servers + +
+
+ {/if} +
{/if}
+ + (showMcpDialog = open)} +/>