@@ -69,8 +69,7 @@ class Meta(BaseModel):
69
69
70
70
meta : Meta | None = Field (alias = "_meta" , default = None )
71
71
"""
72
- This parameter name is reserved by MCP to allow clients and servers to attach
73
- additional metadata to their notifications.
72
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
74
73
"""
75
74
76
75
@@ -105,13 +104,11 @@ class Notification(BaseModel, Generic[NotificationParamsT, MethodT]):
105
104
class Result (BaseModel ):
106
105
"""Base class for JSON-RPC results."""
107
106
108
- model_config = ConfigDict (extra = "allow" )
109
-
110
107
meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
111
108
"""
112
- This result property is reserved by the protocol to allow clients and servers to
113
- attach additional metadata to their responses.
109
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
114
110
"""
111
+ model_config = ConfigDict (extra = "allow" )
115
112
116
113
117
114
class PaginatedResult (Result ):
@@ -394,6 +391,10 @@ class Resource(BaseModel):
394
391
This can be used by Hosts to display file sizes and estimate context window usage.
395
392
"""
396
393
annotations : Annotations | None = None
394
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
395
+ """
396
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
397
+ """
397
398
model_config = ConfigDict (extra = "allow" )
398
399
399
400
@@ -415,6 +416,10 @@ class ResourceTemplate(BaseModel):
415
416
included if all resources matching this template have the same type.
416
417
"""
417
418
annotations : Annotations | None = None
419
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
420
+ """
421
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
422
+ """
418
423
model_config = ConfigDict (extra = "allow" )
419
424
420
425
@@ -461,6 +466,10 @@ class ResourceContents(BaseModel):
461
466
"""The URI of this resource."""
462
467
mimeType : str | None = None
463
468
"""The MIME type of this resource, if known."""
469
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
470
+ """
471
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
472
+ """
464
473
model_config = ConfigDict (extra = "allow" )
465
474
466
475
@@ -588,6 +597,10 @@ class Prompt(BaseModel):
588
597
"""An optional description of what this prompt provides."""
589
598
arguments : list [PromptArgument ] | None = None
590
599
"""A list of arguments to use for templating the prompt."""
600
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
601
+ """
602
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
603
+ """
591
604
model_config = ConfigDict (extra = "allow" )
592
605
593
606
@@ -621,6 +634,10 @@ class TextContent(BaseModel):
621
634
text : str
622
635
"""The text content of the message."""
623
636
annotations : Annotations | None = None
637
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
638
+ """
639
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
640
+ """
624
641
model_config = ConfigDict (extra = "allow" )
625
642
626
643
@@ -636,6 +653,10 @@ class ImageContent(BaseModel):
636
653
image types.
637
654
"""
638
655
annotations : Annotations | None = None
656
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
657
+ """
658
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
659
+ """
639
660
model_config = ConfigDict (extra = "allow" )
640
661
641
662
@@ -651,6 +672,10 @@ class AudioContent(BaseModel):
651
672
audio types.
652
673
"""
653
674
annotations : Annotations | None = None
675
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
676
+ """
677
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
678
+ """
654
679
model_config = ConfigDict (extra = "allow" )
655
680
656
681
@@ -673,6 +698,10 @@ class EmbeddedResource(BaseModel):
673
698
type : Literal ["resource" ]
674
699
resource : TextResourceContents | BlobResourceContents
675
700
annotations : Annotations | None = None
701
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
702
+ """
703
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
704
+ """
676
705
model_config = ConfigDict (extra = "allow" )
677
706
678
707
@@ -772,6 +801,10 @@ class Tool(BaseModel):
772
801
"""A JSON Schema object defining the expected parameters for the tool."""
773
802
annotations : ToolAnnotations | None = None
774
803
"""Optional additional tool information."""
804
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
805
+ """
806
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
807
+ """
775
808
model_config = ConfigDict (extra = "allow" )
776
809
777
810
@@ -1064,6 +1097,10 @@ class Root(BaseModel):
1064
1097
identifier for the root, which may be useful for display purposes or for
1065
1098
referencing the root in other parts of the application.
1066
1099
"""
1100
+ meta : dict [str , Any ] | None = Field (alias = "_meta" , default = None )
1101
+ """
1102
+ Reserved by MCP for protocol-level metadata; implementations must not make assumptions about its contents.
1103
+ """
1067
1104
model_config = ConfigDict (extra = "allow" )
1068
1105
1069
1106
0 commit comments