Skip to content

Conversation

@olaservo
Copy link
Member

This adds a resource collection example demonstrating the pattern where a single resources/read request returns multiple ResourceContents with different URIs. This is useful for modeling collections, indexes, or composite resources.

The example includes:

  • A summer specials collection that returns all items
  • Category-filtered collections for accessories, footwear, and skincare
  • Individual item resources for direct access

Based on the gist provided by @olaservo:
https://gist.github.com/olaservo/585b1ad042723a824b6a0e0e02ae60a8

Fixes #3130

Generated with Claude Code) | Branch | [View job run](https://github.com/modelcontextprotocol/servers/actions/runs/20896646917

This adds a resource collection example demonstrating the pattern where
a single resources/read request returns multiple ResourceContents with
different URIs. This is useful for modeling collections, indexes, or
composite resources.

The example includes:
- A summer specials collection that returns all items
- Category-filtered collections for accessories, footwear, and skincare
- Individual item resources for direct access

Based on the gist provided by @olaservo:
https://gist.github.com/olaservo/585b1ad042723a824b6a0e0e02ae60a8

Fixes #3130

Co-authored-by: Ola Hungerford <[email protected]>
@olaservo
Copy link
Member Author

Keeping this in draft for now since claude generated this based on my gist and it still needs to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Resource Collection example to Everything server

2 participants