Skip to content

Follow pagination cursors when vMCP queries backends #5746

Description

@JAORMX

Part of #5743 (Workstream B: 2025-11-25 compliance).

Gap

vMCP queries backends with single tools/list / resources/list / prompts/list calls and never follows nextCursor (pkg/vmcp/client/client.go, queryTools/queryResources/queryPrompts). Backends that paginate get silently truncated after page 1 — missing tools with no error.

This got more urgent with the go-sdk migration: go-sdk-based servers paginate tools/list at 1000 by default, so truncation now happens against our own servers too.

Proposed work

  • Loop on nextCursor in all three query paths until exhausted (with a sane upper bound to protect against misbehaving backends).
  • Add a test with a paginating fake backend.

Priority: High — correctness bug.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions