Enhancement: paginate large MCP lists with stable cursors

Đang mở
#168 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cli, node.js, typescript

Hướng nghiên cứu

Start from the mentoring notes: locate existing bound-list and response-shaping utilities and the high-cardinality MCP search/query/list tools (verify names in-tree). Add requested limit, items, optional total, opaque stable next_cursor, and invalid/stale cursor errors while keeping current defaults. Document schemas; done when pages walk without duplicates/gaps, ordering is deterministic, cursor invalidation after graph changes is tested, and responses stay within the MCP token ceiling with a feat(mcp): DCO commit.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

Context

Large repos can produce many symbol matches, callers, or vulnerability rows. Bounding prevents huge payloads, but agents need an explicit continuation mechanism for the next deterministic page.

What to do

Add cursor-based pagination to a small set of high-cardinality tools (verify names in-tree), e.g. search/query/list surfaces:

  • requested limit, returned items, total where available
  • next_cursor when more results exist
  • stable cursors for the same graph corpus + query + filters + ordering
  • clear error or restart instruction for invalid/stale cursors

Preserve defaults for existing clients. Document schemas.

Acceptance

  • Default responses remain bounded
  • Clients can walk all pages without duplicates/gaps
  • Ordering is deterministic
  • Cursor invalidation after graph changes is tested
  • Stays within MCP token ceiling; DCO sign-off

Mentoring notes

Reuse existing bound-list / response-shaping utilities. Keep cursor encoding opaque. feat(mcp): commit style.

Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.