Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions 69 schema/draft/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions 51 schema/draft/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link
Contributor Author

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?

};
[key: string]: unknown;
};
Expand Down Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The 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 };
}

/**
Expand Down Expand Up @@ -508,6 +514,11 @@ export interface ResourceTemplate {
* Optional annotations for the client.
*/
annotations?: Annotations;

/**
* Reserved field for additional metadata.
*/
_meta?: { [key: string]: unknown };
}

/**
Expand All @@ -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 {
Expand Down Expand Up @@ -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 };
}

/**
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -825,6 +851,11 @@ export interface Tool {
* Optional additional tool information.
*/
annotations?: ToolAnnotations;

/**
* Reserved field for additional metadata.
*/
_meta?: { [key: string]: unknown };
}

/* Logging */
Expand Down Expand Up @@ -994,6 +1025,11 @@ export interface TextContent {
* Optional annotations for the client.
*/
annotations?: Annotations;

/**
* Reserved field for additional metadata.
*/
_meta?: { [key: string]: unknown };
}

/**
Expand All @@ -1018,6 +1054,11 @@ export interface ImageContent {
* Optional annotations for the client.
*/
annotations?: Annotations;

/**
* Reserved field for additional metadata.
*/
_meta?: { [key: string]: unknown };
}

/**
Expand All @@ -1042,6 +1083,11 @@ export interface AudioContent {
* Optional annotations for the client.
*/
annotations?: Annotations;

/**
* Reserved field for additional metadata.
*/
_meta?: { [key: string]: unknown };
}

/**
Expand Down Expand Up @@ -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 };
}

/**
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.