Enhancement: paginate large MCP lists with stable cursors

オープン
#168 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cli, node.js, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。