Skip to content

Commit 1bcc4c4

Browse files
committed
added missing variables
1 parent ec8d9a2 commit 1bcc4c4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/mcp/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class Annotations(BaseModel):
430430
class Resource(BaseMetadata):
431431
"""A known resource that the server is capable of reading."""
432432

433-
Annotated[str, UrlConstraints(host_required=False)]
433+
uri: Annotated[str, UrlConstraints(host_required=False)]
434434
"""The URI of this resource."""
435435
description: str | None = None
436436
"""A description of what this resource represents."""
@@ -501,7 +501,7 @@ class ListResourceTemplatesResult(PaginatedResult):
501501
class ReadResourceRequestParams(RequestParams):
502502
"""Parameters for reading a resource."""
503503

504-
Annotated[str, UrlConstraints(host_required=False)]
504+
uri: Annotated[str, UrlConstraints(host_required=False)]
505505
"""
506506
The URI of the resource to read. The URI can use any protocol; it is up to the
507507
server how to interpret it.
@@ -519,7 +519,7 @@ class ReadResourceRequest(Request[ReadResourceRequestParams, Literal["resources/
519519
class ResourceContents(BaseModel):
520520
"""The contents of a specific resource or sub-resource."""
521521

522-
Annotated[str, UrlConstraints(host_required=False)]
522+
uri: Annotated[str, UrlConstraints(host_required=False)]
523523
"""The URI of this resource."""
524524
mimeType: str | None = None
525525
"""The MIME type of this resource, if known."""
@@ -569,7 +569,7 @@ class ResourceListChangedNotification(
569569
class SubscribeRequestParams(RequestParams):
570570
"""Parameters for subscribing to a resource."""
571571

572-
Annotated[str, UrlConstraints(host_required=False)]
572+
uri: Annotated[str, UrlConstraints(host_required=False)]
573573
"""
574574
The URI of the resource to subscribe to. The URI can use any protocol; it is up to
575575
the server how to interpret it.
@@ -590,7 +590,7 @@ class SubscribeRequest(Request[SubscribeRequestParams, Literal["resources/subscr
590590
class UnsubscribeRequestParams(RequestParams):
591591
"""Parameters for unsubscribing from a resource."""
592592

593-
Annotated[str, UrlConstraints(host_required=False)]
593+
uri: Annotated[str, UrlConstraints(host_required=False)]
594594
"""The URI of the resource to unsubscribe from."""
595595
model_config = ConfigDict(extra="allow")
596596

@@ -608,7 +608,7 @@ class UnsubscribeRequest(Request[UnsubscribeRequestParams, Literal["resources/un
608608
class ResourceUpdatedNotificationParams(NotificationParams):
609609
"""Parameters for resource update notifications."""
610610

611-
Annotated[str, UrlConstraints(host_required=False)]
611+
uri: Annotated[str, UrlConstraints(host_required=False)]
612612
"""
613613
The URI of the resource that has been updated. This might be a sub-resource of the
614614
one that the client actually subscribed to.
@@ -1084,7 +1084,7 @@ class ResourceTemplateReference(BaseModel):
10841084
"""A reference to a resource or resource template definition."""
10851085

10861086
type: Literal["ref/resource"]
1087-
Annotated[str, UrlConstraints(host_required=False)]
1087+
uri: Annotated[str, UrlConstraints(host_required=False)]
10881088
"""The URI or URI template of the resource."""
10891089
model_config = ConfigDict(extra="allow")
10901090

0 commit comments

Comments
 (0)