@@ -44,8 +44,8 @@ export const RequestSchema = z.object({
44
44
const BaseNotificationParamsSchema = z
45
45
. object ( {
46
46
/**
47
- * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications .
48
- */
47
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents .
48
+ */
49
49
_meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
50
50
} )
51
51
. passthrough ( ) ;
@@ -58,8 +58,8 @@ export const NotificationSchema = z.object({
58
58
export const ResultSchema = z
59
59
. object ( {
60
60
/**
61
- * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses .
62
- */
61
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents .
62
+ */
63
63
_meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
64
64
} )
65
65
. passthrough ( ) ;
@@ -463,6 +463,11 @@ export const ResourceSchema = z
463
463
* The MIME type of this resource, if known.
464
464
*/
465
465
mimeType : z . optional ( z . string ( ) ) ,
466
+
467
+ /**
468
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
469
+ */
470
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
466
471
} )
467
472
. passthrough ( ) ;
468
473
@@ -494,6 +499,11 @@ export const ResourceTemplateSchema = z
494
499
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
495
500
*/
496
501
mimeType : z . optional ( z . string ( ) ) ,
502
+
503
+ /**
504
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
505
+ */
506
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
497
507
} )
498
508
. passthrough ( ) ;
499
509
@@ -677,6 +687,11 @@ export const TextContentSchema = z
677
687
* The text content of the message.
678
688
*/
679
689
text : z . string ( ) ,
690
+
691
+ /**
692
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
693
+ */
694
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
680
695
} )
681
696
. passthrough ( ) ;
682
697
@@ -694,6 +709,11 @@ export const ImageContentSchema = z
694
709
* The MIME type of the image. Different providers may support different image types.
695
710
*/
696
711
mimeType : z . string ( ) ,
712
+
713
+ /**
714
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
715
+ */
716
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
697
717
} )
698
718
. passthrough ( ) ;
699
719
@@ -711,6 +731,11 @@ export const AudioContentSchema = z
711
731
* The MIME type of the audio. Different providers may support different audio types.
712
732
*/
713
733
mimeType : z . string ( ) ,
734
+
735
+ /**
736
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
737
+ */
738
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
714
739
} )
715
740
. passthrough ( ) ;
716
741
@@ -847,12 +872,17 @@ export const ToolSchema = z
847
872
properties : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
848
873
required : z . optional ( z . array ( z . string ( ) ) ) ,
849
874
} )
850
- . passthrough ( )
875
+ . passthrough ( )
851
876
) ,
852
877
/**
853
878
* Optional additional tool information.
854
879
*/
855
880
annotations : z . optional ( ToolAnnotationsSchema ) ,
881
+
882
+ /**
883
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
884
+ */
885
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
856
886
} )
857
887
. passthrough ( ) ;
858
888
@@ -1182,6 +1212,11 @@ export const RootSchema = z
1182
1212
* An optional name for the root.
1183
1213
*/
1184
1214
name : z . optional ( z . string ( ) ) ,
1215
+
1216
+ /**
1217
+ * Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
1218
+ */
1219
+ _meta : z . optional ( z . object ( { } ) . passthrough ( ) ) ,
1185
1220
} )
1186
1221
. passthrough ( ) ;
1187
1222
0 commit comments