[v2] Simple pagination README client fails before fetching the second tools page
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 86/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- documentation
Research direction
Open examples/servers/simple-pagination/README.md at the linked example and compare its pagination code with the reported working correction. Start by checking the result’s cursor field and the parameters passed to list_tools. Update the example so it runs against the bundled stdio server and prints the expected two tool pages, resources, and prompts.
Written by the indexing model from the issue text.
Description
What happened?
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.
Code to reproduce
https://github.com/modelcontextprotocol/python-sdk/blob/77001c96f9507be0f4d009b83210a384a5e08bda/examples/servers/simple-pagination/README.md#example
SDK version
mcp 2.3.0, Python 3.14.4. Also reproduced on main at 77001c96.
Area
Documentation
- Dominant language
- Python
- Stars
- 25k
- Forks
- 4.2k
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from modelcontextprotocol/python-sdk
-
Client serves cached tools after its context exits with an exceptionPossibly taken @jonxsong claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
modelcontextprotocol/python-sdk#3968 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
modelcontextprotocol/python-sdk#3957 ·
Maintainers usually reply within 1 day
-
v2
Difficulty 1/5 Under an hour Newbie friendliness 91/100
modelcontextprotocol/python-sdk#3934 · 2 comments ·
Maintainers usually reply within 1 day
-
bug v1
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
modelcontextprotocol/python-sdk#3929 · 2 comments ·
Maintainers usually reply within 1 day
-
DCR `RegistrationHandler` accepts `{"redirect_uris": null}` and returns `201 Created` for `authorization_code` clientsMay be free again A pull request for this issue was closed without being merged. Openbug v1 v2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
modelcontextprotocol/python-sdk#3885 · 3 comments ·
Maintainers usually reply within 1 day
All issues in modelcontextprotocol/python-sdk
Similar issues
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug data-types native-format
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ClickHouse/clickhouse-connect#1320 ·
Maintainers usually reply within 1 day
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day