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
{{ message }}
Repository navigation
[v2] Simple pagination README client fails before fetching the second tools page #3978
I ran the README example against the bundled stdio server with mcp 2.3.0. It printed First page: 5 tools and exited with AttributeError: 'ListToolsResult' object has no attribute 'nextCursor'.
The example needs to read next_cursor and pass it to ClientSession.list_tools(params=PaginatedRequestParams(cursor=cursor)). I reran the corrected example. It printed cursor 5, five tools on the second page, ten resources, and seven prompts, and exited successfully.
Codex helped diagnose the issue, wrote the local correction, and drafted this report. I ran both versions and checked the output.
What did you expect?
Running the example against the bundled stdio server should print five tools on the first page, cursor 5, five tools on the second page, ten resources, and seven prompts.
Thanks for the reproducible report. If you aren't planning to submit your local correction yourself, I'd be happy to update the pagination example and verify the complete stdio example against the current SDK, including fetching the second tools page. Would you welcome a small PR?
Thanks for offering! I’d like to submit the fix myself if a maintainer assigns me the issue. I ran the corrected README example against the bundled stdio server on mcp 2.3.0 and confirmed it fetched the second page of five tools.
Activity
zmjj-kk commentedon Dec 5, 2026
Thanks for the reproducible report. If you aren't planning to submit your local correction yourself, I'd be happy to update the pagination example and verify the complete stdio example against the current SDK, including fetching the second tools page. Would you welcome a small PR?
saggl commentedon Dec 5, 2026
Thanks for offering! I’d like to submit the fix myself if a maintainer assigns me the issue. I ran the corrected README example against the bundled stdio server on mcp 2.3.0 and confirmed it fetched the second page of five tools.
Codex helped draft this reply.