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
Describe the bug
The PaginatedRequest model has the cursor parameter in the wrong place: request.cursor instead of request.params.cursor as defined by the pagination spec.
Since the methods updated in #718 pass the cursor parameter down to the PaginatedRequest model, they are also affected by this bug.
To Reproduce
frommcpimporttypeslist_tools_request=types.ListToolsRequest(
method="tools/list",
cursor="123",
)
client_request=types.ClientRequest(list_tools_request)
# Dump to JSONclient_request_json=client_request.model_dump_json()
print(client_request_json)
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The
PaginatedRequest
model has thecursor
parameter in the wrong place:request.cursor
instead ofrequest.params.cursor
as defined by the pagination spec.Since the methods updated in #718 pass the
cursor
parameter down to thePaginatedRequest
model, they are also affected by this bug.To Reproduce
Expected behavior
A request that conforms to the pagination spec:
The text was updated successfully, but these errors were encountered: