Skip to content

Commit c6ca8c6

Browse files
cliffhallclaude
andcommitted
feat(everything): themed icons on the resource collections
The collections from #3130, merged into this branch, now carry the same icon pairs as the other resources: RESOURCE_ICONS on the listed summer-specials collection and RESOURCE_TEMPLATE_ICONS on the by-category and item templates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 8993c7b commit c6ca8c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/everything/resources/collections.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
ResourceNotFoundError,
2424
ResourceTemplate,
2525
} from "@modelcontextprotocol/server";
26+
import { RESOURCE_ICONS, RESOURCE_TEMPLATE_ICONS } from "../server/icons.js";
2627

2728
/** One product in the example catalog. */
2829
export type CollectionItem = {
@@ -96,6 +97,7 @@ export const registerCollectionResources = (server: McpServer) => {
9697
SUMMER_SPECIALS_URI,
9798
{
9899
title: "Summer Specials Collection",
100+
icons: RESOURCE_ICONS,
99101
mimeType: MIME_TYPE,
100102
description:
101103
"A resource collection: one read returns every item in the catalog as a separate content, each under its own demo://resource/collection/item/{itemId} URI.",
@@ -112,6 +114,7 @@ export const registerCollectionResources = (server: McpServer) => {
112114
}),
113115
{
114116
title: "Collection by Category",
117+
icons: RESOURCE_TEMPLATE_ICONS,
115118
mimeType: MIME_TYPE,
116119
description: `A resource collection filtered by the {category} variable (${COLLECTION_CATEGORIES.join(", ")}): one read returns each item in that category as a separate content, under its own URI.`,
117120
},
@@ -134,6 +137,7 @@ export const registerCollectionResources = (server: McpServer) => {
134137
}),
135138
{
136139
title: "Collection Item",
140+
icons: RESOURCE_TEMPLATE_ICONS,
137141
mimeType: MIME_TYPE,
138142
description:
139143
"One item of the resource collections, selected by the {itemId} variable (1 to 5). The collections return their items under these URIs.",

0 commit comments

Comments
 (0)