Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/user/src/lib/components/chat/McpServerSetup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
{/snippet}

{#snippet mainContent()}
<div class="w-full px-4 py-2">
<div class="bg-background sticky top-0 z-10 w-full px-4 py-2">
<div class="mb-2 flex items-center justify-between gap-4">
<h4 class="text-lg font-semibold">Add Connector</h4>
<button
Expand Down
19 changes: 19 additions & 0 deletions ui/user/src/lib/components/mcp/DeploymentsView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
CircleAlert,
CircleFadingArrowUp,
Ellipsis,
FileBox,
GitCompare,
LoaderCircle,
MessageCircle,
Expand Down Expand Up @@ -589,6 +590,24 @@
{/if}
</button>

{#if d.catalogEntryID}
{@const catalogEntryUrl = d.powerUserWorkspaceID
? `/admin/mcp-servers/w/${d.powerUserWorkspaceID}/c/${d.catalogEntryID}`
: `/admin/mcp-servers/c/${d.catalogEntryID}`}
<button
onclick={(e) => {
e.stopPropagation();
const isCtrlClick = e.ctrlKey || e.metaKey;
setSearchParamsToLocalStorage(page.url.pathname, page.url.search);
openUrl(catalogEntryUrl, isCtrlClick);
}}
class="menu-button text-left"
>
<FileBox class="size-4" />
View Catalog Entry
</button>
{/if}

{#if !readonly}
<button
class="menu-button-destructive"
Expand Down