You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve type docstrings and remove internal type exports
Improve docstring formatting across MCP types for better consistency
and readability. Remove internal TypeVars (MethodT, RequestParamsT,
NotificationParamsT) and the Cursor alias from public exports as they
are implementation details not intended for external use.
Breaking changes documented in migration.md.
See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -639,20 +653,22 @@ class ResourceTemplate(BaseMetadata):
639
653
"""A template description for resources available on the server."""
640
654
641
655
uri_template: str
642
-
"""
643
-
A URI template (according to RFC 6570) that can be used to construct resource
644
-
URIs.
645
-
"""
656
+
"""A URI template (according to RFC 6570) that can be used to construct resource URIs."""
657
+
646
658
description: str|None=None
647
659
"""A human-readable description of what this template is for."""
660
+
648
661
mime_type: str|None=None
662
+
"""The MIME type for all resources that match this template.
663
+
664
+
This should only be included if all resources matching this template have the same type.
649
665
"""
650
-
The MIME type for all resources that match this template. This should only be
651
-
included if all resources matching this template have the same type.
652
-
"""
666
+
653
667
icons: list[Icon] |None=None
654
668
"""An optional list of icons for this resource template."""
See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
0 commit comments