-
Pre-submission Checklist
Question Category
Your QuestionI am implementing an MCP server and I want to confirm that I am using the Resources API as intended by the specification. The product domain used in this example is purely hypothetical and is only meant to illustrate the usage pattern. The number of contents returned is intentionally small, with a maximum of ten items, so response size is not a concern. In my server, a resource URI such as For example, reading My question is whether this response structure aligns with the intended MCP usage, where a single resource read can resolve into multiple resource contents with different URIs, effectively modeling a collection or index resource. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @vinsguru, yes, this is a valid and intentional pattern in MCP. The spec explicitly supports this through several design choices:
Your example pattern is exactly what this design enables: This can be useful for modeling collections, indexes, or composite resources where reading a parent URI naturally expands into its constituent items. I added a comment to the new 'everything demo' reference implementation that Cliff is working on here to consider adding an example of this too. (originally written by Claude and edited by me) |
Beta Was this translation helpful? Give feedback.
Hi @vinsguru, yes, this is a valid and intentional pattern in MCP.
The spec explicitly supports this through several design choices:
Your example pattern is exactly what this…