Skip to content

Commit 6add6c4

Browse files
committed
spec: Adds _meta to additional interface types.
1 parent 118f620 commit 6add6c4

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed

schema/draft/schema.json

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface Request {
3030
* 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.
3131
*/
3232
progressToken?: ProgressToken;
33+
[key: string]: unknown;
3334
};
3435
[key: string]: unknown;
3536
};
@@ -472,6 +473,11 @@ export interface Resource {
472473
* This can be used by Hosts to display file sizes and estimate context window usage.
473474
*/
474475
size?: number;
476+
477+
/**
478+
* Reserved field for additional metadata.
479+
*/
480+
_meta?: { [key: string]: unknown };
475481
}
476482

477483
/**
@@ -508,6 +514,11 @@ export interface ResourceTemplate {
508514
* Optional annotations for the client.
509515
*/
510516
annotations?: Annotations;
517+
518+
/**
519+
* Reserved field for additional metadata.
520+
*/
521+
_meta?: { [key: string]: unknown };
511522
}
512523

513524
/**
@@ -524,6 +535,11 @@ export interface ResourceContents {
524535
* The MIME type of this resource, if known.
525536
*/
526537
mimeType?: string;
538+
539+
/**
540+
* Reserved field for additional metadata.
541+
*/
542+
_meta?: { [key: string]: unknown };
527543
}
528544

529545
export interface TextResourceContents extends ResourceContents {
@@ -601,6 +617,11 @@ export interface Prompt {
601617
* A list of arguments to use for templating the prompt.
602618
*/
603619
arguments?: PromptArgument[];
620+
621+
/**
622+
* Reserved field for additional metadata.
623+
*/
624+
_meta?: { [key: string]: unknown };
604625
}
605626

606627
/**
@@ -660,6 +681,11 @@ export interface EmbeddedResource {
660681
* Optional annotations for the client.
661682
*/
662683
annotations?: Annotations;
684+
685+
/**
686+
* Reserved field for additional metadata.
687+
*/
688+
_meta?: { [key: string]: unknown };
663689
}
664690
/**
665691
* 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 {
825851
* Optional additional tool information.
826852
*/
827853
annotations?: ToolAnnotations;
854+
855+
/**
856+
* Reserved field for additional metadata.
857+
*/
858+
_meta?: { [key: string]: unknown };
828859
}
829860

830861
/* Logging */
@@ -994,6 +1025,11 @@ export interface TextContent {
9941025
* Optional annotations for the client.
9951026
*/
9961027
annotations?: Annotations;
1028+
1029+
/**
1030+
* Reserved field for additional metadata.
1031+
*/
1032+
_meta?: { [key: string]: unknown };
9971033
}
9981034

9991035
/**
@@ -1018,6 +1054,11 @@ export interface ImageContent {
10181054
* Optional annotations for the client.
10191055
*/
10201056
annotations?: Annotations;
1057+
1058+
/**
1059+
* Reserved field for additional metadata.
1060+
*/
1061+
_meta?: { [key: string]: unknown };
10211062
}
10221063

10231064
/**
@@ -1042,6 +1083,11 @@ export interface AudioContent {
10421083
* Optional annotations for the client.
10431084
*/
10441085
annotations?: Annotations;
1086+
1087+
/**
1088+
* Reserved field for additional metadata.
1089+
*/
1090+
_meta?: { [key: string]: unknown };
10451091
}
10461092

10471093
/**
@@ -1243,6 +1289,11 @@ export interface Root {
12431289
* referencing the root in other parts of the application.
12441290
*/
12451291
name?: string;
1292+
1293+
/**
1294+
* Reserved field for additional metadata.
1295+
*/
1296+
_meta?: { [key: string]: unknown };
12461297
}
12471298

12481299
/**

0 commit comments

Comments
 (0)