-
Notifications
You must be signed in to change notification settings - Fork 9.3k
feat(everything): add resource collection example #3202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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 <olaservo@users.noreply.github.com>
|
Keeping this in draft for now since claude generated this based on my gist and it still needs to be tested. |
Looking good so far. Great idea. I didn't know we could produce PRs with this thing. Maybe we should do more of this with some bug fixes. |
|
@claude can you please update the docs and Readme for this server so that they include information on this new example? |
Documentation updates completedI've successfully updated the documentation for the everything server to include information about the new resource collection example. Changes Made
SummaryI've updated both the README and the features documentation to describe the new resource collection example. The updates include: In features.md:
In README.md:
Note on PushingI've created the commit locally, but I encountered a permissions issue when trying to push to the remote branch. The GitHub Actions bot doesn't have push permissions to this repository. You'll need to manually push the commit or grant the necessary permissions. The commit is ready and includes:
|
|
@olaservo Looks like you may need to merge Claude's changes. Ready to test locally whenever you feel this one's ready for review. |
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:
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