modelcontextprotocol / modelcontextprotocol/servers

Add Resource Collection example to Everything server

Open
#3,130 2 comments 0 reactions 2 assignees View on GitHub

@olaservo is already working on this.

Since Dec 16, 2025.

enhancement
Dominant language
TypeScript
Stars
90.5k
Forks
11.7k
Avg merge
2d 2h
Merged PRs (30d)
5

Description

Is your feature request related to a problem? Please describe.
@olaservo suggested 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.