From 785b37883a574b8720681641e7a73bc11e13a485 Mon Sep 17 00:00:00 2001 From: Mark IJbema Date: Tue, 17 Mar 2026 10:46:10 +0100 Subject: [PATCH] fix(vscode): only show MCP tags used by at least 2 items --- .../src/components/marketplace/MarketplaceListView.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceListView.tsx b/packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceListView.tsx index cfb0d174692..ee1f07b0486 100644 --- a/packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceListView.tsx +++ b/packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceListView.tsx @@ -47,11 +47,15 @@ export const MarketplaceListView = (props: Props) => { } const allTags = createMemo(() => { - const set = new Set() + const counts = new Map() for (const item of props.items) { - for (const tag of tagsFor(item)) set.add(tag) + for (const tag of tagsFor(item)) counts.set(tag, (counts.get(tag) ?? 0) + 1) } - return Array.from(set).sort() + const min = props.type === "mcp" ? 2 : 1 + return Array.from(counts.entries()) + .filter(([, n]) => n >= min) + .map(([tag]) => tag) + .sort() }) const toggleTag = (tag: string) => {