feat: Adds _meta to additional interface types.#710
Merged
dsp-ant merged 2 commits intomodelcontextprotocol:mainmodelcontextprotocol/modelcontextprotocol:mainfrom Jun 13, 2025
mbleigh:meta-on-resourcesmbleigh/modelcontextprotocol:meta-on-resourcesCopy head branch name to clipboard
Merged
feat: Adds _meta to additional interface types.#710dsp-ant merged 2 commits intomodelcontextprotocol:mainmodelcontextprotocol/modelcontextprotocol:mainfrom mbleigh:meta-on-resourcesmbleigh/modelcontextprotocol:meta-on-resourcesCopy head branch name to clipboard
dsp-ant merged 2 commits intomodelcontextprotocol:mainmodelcontextprotocol/modelcontextprotocol:mainfrom
mbleigh:meta-on-resourcesmbleigh/modelcontextprotocol:meta-on-resourcesCopy head branch name to clipboard
Conversation
mbleigh
commented
Jun 11, 2025
| * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. | ||
| */ | ||
| progressToken?: ProgressToken; | ||
| [key: string]: unknown; |
Contributor
Author
There was a problem hiding this comment.
It seems like this was likely a mistake/omission -- presumably request metadata is intended to allow additional keys and not just progressToken, right?
dsp-ant
approved these changes
Jun 13, 2025
Member
dsp-ant
left a comment
There was a problem hiding this comment.
Thank you. I'll accept as is but will add a PR to change the wording of the description to ensure people understand _meta is always reserved by the protocol.
| size?: number; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. |
Member
There was a problem hiding this comment.
Notable that this is "reserved by MCP for additional metadata", as the other fields.
This was referenced Jun 13, 2025
9 tasks
9 tasks
16 tasks
6 tasks
This was referenced Jun 27, 2025
Closed
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
_metaon additional resource types throughout the specification, specifically those that appear as arrays in list results or multi-part content.Motivation and Context
See discussion for motivation.
How Has This Been Tested?
Since this change merely adds additional optional inert metadata, it should be a safe non-breaking change for all existing clients and servers.
Breaking Changes
NONE
Types of changes
Checklist