-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Adds _meta to additional interface types. #710
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ export interface Request { | |
| * 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; | ||
| }; | ||
| [key: string]: unknown; | ||
| }; | ||
|
|
@@ -472,6 +473,11 @@ export interface Resource { | |
| * This can be used by Hosts to display file sizes and estimate context window usage. | ||
| */ | ||
| size?: number; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Notable that this is "reserved by MCP for additional metadata", as the other fields. |
||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -508,6 +514,11 @@ export interface ResourceTemplate { | |
| * Optional annotations for the client. | ||
| */ | ||
| annotations?: Annotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -524,6 +535,11 @@ export interface ResourceContents { | |
| * The MIME type of this resource, if known. | ||
| */ | ||
| mimeType?: string; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| export interface TextResourceContents extends ResourceContents { | ||
|
|
@@ -601,6 +617,11 @@ export interface Prompt { | |
| * A list of arguments to use for templating the prompt. | ||
| */ | ||
| arguments?: PromptArgument[]; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -660,6 +681,11 @@ export interface EmbeddedResource { | |
| * Optional annotations for the client. | ||
| */ | ||
| annotations?: Annotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
| /** | ||
| * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. | ||
|
|
@@ -825,6 +851,11 @@ export interface Tool { | |
| * Optional additional tool information. | ||
| */ | ||
| annotations?: ToolAnnotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /* Logging */ | ||
|
|
@@ -994,6 +1025,11 @@ export interface TextContent { | |
| * Optional annotations for the client. | ||
| */ | ||
| annotations?: Annotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -1018,6 +1054,11 @@ export interface ImageContent { | |
| * Optional annotations for the client. | ||
| */ | ||
| annotations?: Annotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -1042,6 +1083,11 @@ export interface AudioContent { | |
| * Optional annotations for the client. | ||
| */ | ||
| annotations?: Annotations; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -1243,6 +1289,11 @@ export interface Root { | |
| * referencing the root in other parts of the application. | ||
| */ | ||
| name?: string; | ||
|
|
||
| /** | ||
| * Reserved field for additional metadata. | ||
| */ | ||
| _meta?: { [key: string]: unknown }; | ||
| } | ||
|
|
||
| /** | ||
|
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this was likely a mistake/omission -- presumably request metadata is intended to allow additional keys and not just
progressToken, right?