Support caller-controlled aggregation budgets across client list APIs
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- csharp
- Bereich
- api, backend-api-design
Rechercherichtung
Start by reviewing the auto-paginating client list helpers for tools, prompts, resources, resource templates, and Skills, plus the related pagination decisions in #1056 and #1993. Define a consistent opt-in budget and outcome for reaching it while preserving existing defaults, cancellation, opaque cursor behavior, and page-level caching. Done means tests cover finite and non-terminating pagination, page and entry limits, cancellation, and incomplete results.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Evaluate optional, consistent maximum-page and maximum-entry budgets for the auto-paginating client list APIs for tools, prompts, resources, resource templates, and Skills.
Single-page overloads already let applications control pagination themselves. This issue concerns convenience and robustness, not missing protocol pagination support.
Motivation
The convenience methods collect pages until the server ends pagination. A faulty or untrusted server can cause non-terminating requests or unbounded accumulated results; a legitimate server can also return more data than a caller wants to retain. Cancellation can bound elapsed time, but does not directly express page or entry budgets.
The historical empty-cursor reports in #1072 and #988 were closed by design: an empty string is a valid opaque cursor, and a server must omit or return null for nextCursor to finish. Optional caller budgets should protect callers without changing that interpretation.
Proposed scope
- Evaluate a common opt-in page/entry budget design across the SDK's aggregating list helpers, preserving existing defaults, request options, and cancellation behavior.
- Define budget counting at page boundaries, including empty pages with continuation cursors and pages larger than the remaining entry budget.
- Define an explicit failure or clearly incomplete outcome when a budget is reached. Never silently present a truncated list as complete.
- Consider repeated/non-terminating cursor behavior without parsing opaque cursors or treating an empty string as null.
- Cover finite pagination, existing unbounded defaults, page and entry limits, cancellation, and non-terminating server responses in tests.
Boundaries
Keep entry-validation and rejected-entry reporting as a separate design topic. Coordinate their counting and incomplete-result semantics, but do not make this issue depend on a new validation API.
Keep page-level caching semantics intact; this does not require an invented aggregate TTL or an SDK-owned cache.
Related work
- Companion: #1997, strict/diagnostic entry validation. Keep the budget and validation policies independent while coordinating counting and incomplete outcomes.
- Tarek's follow-up comment on #1993.
- #1072 and #988 provide the historical non-terminating pagination context; they should remain closed.
- #1056 records the decision to expose explicit page control rather than duplicate the list helpers with
Enumerate*AsyncAPIs. - #1993 removes Skills-only aggregation limits in favor of evaluating a consistent SDK-wide approach.
[!NOTE]
This issue was drafted with GitHub Copilot.
- Vorherrschende Sprache
- C#
- Sterne
- 4.6k
- Forks
- 849
- Ø Merge
- 1 T. 16 Std.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus modelcontextprotocol/csharp-sdk
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
modelcontextprotocol/csharp-sdk#2031 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Static resources whose URIs differ only in the fragment or user info collapse into oneEvtl. vergeben @halter73 hat das vor 9 Tagen übernommen. OffenP2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
modelcontextprotocol/csharp-sdk#1970 · 4 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
POST /mcp with a missing or unparseable Content-Type returns HTTP 500 instead of a 4xxEvtl. vergeben @halter73 hat das vor 9 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
modelcontextprotocol/csharp-sdk#1966 · 5 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Reserved URI-template expansion throws for supplementary Unicode charactersEvtl. vergeben @tarekgh hat das vor 2 Tagen übernommen. OffenP3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
modelcontextprotocol/csharp-sdk#1913 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
ClaimsPrincipal parameter injection sample requestEvtl. vergeben @utsavjain2809 hat das vor 48 Tagen übernommen. Offenhelp wanted P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
modelcontextprotocol/csharp-sdk#1899 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in modelcontextprotocol/csharp-sdk
Ähnliche Issues
-
account bug effort:S P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
nightscout/nocturne#3745 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
grate-devs/grate#969 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
jsboige/CoursIA#27768 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
martin-stromberg/FinanceManager#562 ·
Maintainer antworten meist innerhalb von 1 Tag