Skip to content
Discussion options

You must be logged in to vote

Hi @vinsguru, yes, this is a valid and intentional pattern in MCP.

The spec explicitly supports this through several design choices:

  1. ReadResourceResult.contents is an array - The schema deliberately returns an array of ResourceContents, not a single item.
  2. The spec acknowledges "sub-resources" - The ResourceContents type is documented as representing "the contents of a specific resource or sub-resource" (see the https://modelcontextprotocol.io/specification/2025-11-25/schema).
  3. Subscription semantics confirm this - The ResourceUpdatedNotification explicitly states the URI "might be a sub-resource of the one that the client actually subscribed to."

Your example pattern is exactly what this…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vinsguru
Comment options

Answer selected by vinsguru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants