Skip to content

Commit bea1093

Browse files
committed
Final cleanup
1 parent ba90839 commit bea1093

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/mcp/types.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ class PaginatedRequest(
9393
"""Base class for paginated requests,
9494
matching the schema's PaginatedRequest interface."""
9595

96+
params: PaginatedRequestParams | None = None
97+
9698

9799
class Notification(BaseModel, Generic[NotificationParamsT, MethodT]):
98100
"""Base class for JSON-RPC notifications."""
@@ -369,7 +371,6 @@ class ListResourcesRequest(PaginatedRequest[Literal["resources/list"]]):
369371
"""Sent from the client to request a list of resources the server has."""
370372

371373
method: Literal["resources/list"]
372-
params: PaginatedRequestParams | None = None
373374

374375

375376
class Annotations(BaseModel):
@@ -433,7 +434,6 @@ class ListResourceTemplatesRequest(
433434
"""Sent from the client to request a list of resource templates the server has."""
434435

435436
method: Literal["resources/templates/list"]
436-
params: PaginatedRequestParams | None = None
437437

438438

439439
class ListResourceTemplatesResult(PaginatedResult):
@@ -579,7 +579,6 @@ class ListPromptsRequest(PaginatedRequest[Literal["prompts/list"]]):
579579
"""Sent from the client to request a list of prompts and prompt templates."""
580580

581581
method: Literal["prompts/list"]
582-
params: PaginatedRequestParams | None = None
583582

584583

585584
class PromptArgument(BaseModel):
@@ -710,7 +709,6 @@ class ListToolsRequest(PaginatedRequest[Literal["tools/list"]]):
710709
"""Sent from the client to request a list of tools the server has."""
711710

712711
method: Literal["tools/list"]
713-
params: PaginatedRequestParams | None = None
714712

715713

716714
class ToolAnnotations(BaseModel):
@@ -744,7 +742,7 @@ class ToolAnnotations(BaseModel):
744742

745743
idempotentHint: bool | None = None
746744
"""
747-
If true, calling the tool repeatedly with the same arguments
745+
If true, calling the tool repeatedly with the same arguments
748746
will have no additional effect on the its environment.
749747
(This property is meaningful only when `readOnlyHint == false`)
750748
Default: false

0 commit comments

Comments
 (0)