You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Resource Collection example to Everything server #3130
Is your feature request related to a problem? Please describe. @olaservosuggested that we add an example of resource collections. It was prompted by this discussion on the topic.
Describe the solution you'd like @olaservo has posted a gist that demonstrates the pattern where a single resources/read request
Her example returns multiple ResourceContents with different URIs - useful for modeling collections, indexes, or composite resources.
Resources like the following:
demo://collection/summer-specials: Returns all items as separate resources
demo://collection/by-category/{category}: Returns items filtered by category
demo://collection/item/{id}: Returns a single item (for individual access)
Describe alternatives you've considered
None really. This is a well thought out example, and I think we should add it when the newly refactored Everything server PR is merged.
I've successfully added the resource collection example to the Everything server based on the gist provided by @olaservo.
What was done:
Fetched the example code from the gist
Created a new file src/everything/resources/collections.ts with the collection resources implementation
Updated src/everything/resources/index.ts to register the new collection resources
Built the project successfully
Committed and pushed changes
Summary
The new resource collection example demonstrates the pattern where a single resources/read request returns multiple ResourceContents with different URIs. This is useful for modeling collections, indexes, or composite resources.
Resources added:
demo://collection/summer-specials - Returns all items as separate resources
demo://collection/by-category/{category} - Returns items filtered by category (accessories, footwear, skincare)
demo://collection/item/{id} - Returns a single item for individual access
The implementation includes:
A main collection resource returning all items
Three category-filtered collections (accessories, footwear, skincare)
Five individual item resources (Summer Hat, Beach Towel, Sunglasses, Flip Flops, Sunscreen SPF50)
Each collection returns multiple resources with their own URIs, demonstrating how collections can expose nested items as independently addressable resources.
Severity 2: A resource-collection example, one read returning several contents, demonstrates an MCP Resources feature and is not yet in the everything server.
Urgency 2: wanted eventually
Bonuses: +1 assigned
Board: Servers V2 (#43), Status Incoming, awaiting maintainer review (no milestone yet). Part of the backlog triage in #4875.
Activity
Add resource collections for batch access
feat(mcp-server-ts): add resource-collection snippet
feat(everything): add resource collection example
olaservo commentedon Jan 11, 2026
@claude could you fetch the example from the gist linked in this issue and create a PR based on that code?
claude commentedon Jan 11, 2026
Claude finished @olaservo's task in 2m 58s —— View job •
claude/issue-3130-20260111-1423• Create PR ➔Task Complete
I've successfully added the resource collection example to the Everything server based on the gist provided by @olaservo.
What was done:
src/everything/resources/collections.tswith the collection resources implementationsrc/everything/resources/index.tsto register the new collection resourcesSummary
The new resource collection example demonstrates the pattern where a single
resources/readrequest returns multipleResourceContentswith different URIs. This is useful for modeling collections, indexes, or composite resources.Resources added:
demo://collection/summer-specials- Returns all items as separate resourcesdemo://collection/by-category/{category}- Returns items filtered by category (accessories, footwear, skincare)demo://collection/item/{id}- Returns a single item for individual accessThe implementation includes:
Each collection returns multiple resources with their own URIs, demonstrating how collections can expose nested items as independently addressable resources.
feat(everything): add resource collection example
feat(everything): add resource collection example
cliffhall commentedon Oct 19, 2026
Triage: Priority Low (total 5)
Board: Servers V2 (#43), Status
Incoming, awaiting maintainer review (no milestone yet). Part of the backlog triage in #4875.