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)} +/>