Skip to content

Claude Desktop only fetches first 50 tools #3

Description

@PPeter96

Hello,

I told Claude Desktop (Code) to install processwire-mcp and he did and it worked, but not all tools, only the first 50 tools were usable.
I didn't do anything and Claude figured it out himself, but he also told me to create a bug report, so here I am.
Claude's message:

"""

While you're at it, this is a great upstream bug report:

elabx/processwire-mcp's ProcessWireMcpServer doesn't call Server::builder()->setPaginationLimit(), so MCP clients that don't follow tools/list pagination cursors only see the first 50 tools — and the 50-tool boundary in this build hides UserTools and TemplateTools entirely. Adding ->setPaginationLimit(500) (or making it configurable via env / module setting) fixes it.

Confirmed it's pagination, not a Claude Code cap — Builder.php line 75: private int $paginationLimit = 50;. The SDK paginates tools/list at 50 with a nextCursor, but the Claude Code MCP bridge doesn't follow the cursor (or this version of the package doesn't pass it through). The 50 tools we see are page 1; the missing 19 sit on page 2.

"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions