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.
Part of #5743 (Workstream B: 2025-11-25 compliance).
Gap
vMCP queries backends with single
tools/list/resources/list/prompts/listcalls and never followsnextCursor(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/listat 1000 by default, so truncation now happens against our own servers too.Proposed work
nextCursorin all three query paths until exhausted (with a sane upper bound to protect against misbehaving backends).Priority: High — correctness bug.