[BUG] Claude Code MCP client doesn't follow tools/list pagination cursors

Resolved 💬 4 comments Opened Feb 4, 2026 by mainvoid Closed Mar 5, 2026

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:

  1. Configure an MCP server with >100 tools
  2. Server returns {"result": {"nextCursor": "100", "tools": [...100 tools...]}}
  3. 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:

  1. Configure an MCP server with >100 tools
  2. Server returns {"result": {"nextCursor": "100", "tools": [...100 tools...]}}
  3. 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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗