[BUG] Claude Code MCP client doesn't follow tools/list pagination cursors
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
---
Title: Claude Code MCP client doesn't follow tools/list pagination cursors
Description:
When an MCP server returns paginated tools/list responses with a nextCursor field, Claude Code only fetches the first page and ignores the cursor.
Reproduction:
- Configure an MCP server with >100 tools
- Server returns {"result": {"nextCursor": "100", "tools": [...100 tools...]}}
- Claude Code only sees the first 100 tools, doesn't request page 2
Expected behavior:
Claude Code should follow the nextCursor and make subsequent requests until all tools are fetched.
Workaround:
MCP server authors can increase their page size (e.g., SetToolsPageSize(200)) to return all tools in one response.
Environment:
- Claude Code CLI (February 2026)
- Custom MCP server using mcp-common (Go)
---
What Should Happen?
Claude Code should follow the nextCursor and make subsequent requests until all tools are fetched.
Error Messages/Logs
Steps to Reproduce
Reproduction:
- Configure an MCP server with >100 tools
- Server returns {"result": {"nextCursor": "100", "tools": [...100 tools...]}}
- Claude Code only sees the first 100 tools, doesn't request page 2
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
- Claude Code CLI (February 2026)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗