Return merged cache hints from list_all_* client methods
Maintainer thường phản hồi trong vòng 2 ngày
@gocamille đang làm issue này rồi.
Từ ngày 29/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The Peer::list_all_* methods (tools, prompts, resources, resource templates, skills) follow the cursor across pages and return only the items. On 2026-07-28 each page carries ttlMs and cacheScope, and the merged list drops them, so a client that uses list_all_* cannot cache the result correctly.
Proposal: also expose a cache hint for the merged list.
ttlMs: the earliest expiry across pages. Each page's hint is relative to when that page arrived, so take the minimum ofrequestTime + ttlMsand convert it back to a TTL relative to the end of the walk.cacheScope:publiconly if every page ispublic, otherwiseprivate.- A page without hints (legacy peers, or a server that omits them) makes the merged hint absent.
Changing the return type of the existing methods would be a breaking change, so this would add new API next to them, for example a ListAll<T> { items, ttl_ms, cache_scope } returned by new methods, or a single generic helper.
Suggested by @tsarlandie-oai in https://github.com/modelcontextprotocol/rust-sdk/pull/1392#discussion_r4416288583.
- Ngôn ngữ chính
- Rust
- Star
- 4.1k
- Fork
- 694
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 39
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/rust-sdk
-
auth: refresh_token() requests offline_access that was never granted, so refreshes fail with invalid_scopeCó thể đã có người làm @jstar0 đã nhận 25 ngày trước. Đang mởbug P1 ready for work T-security T-transport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
modelcontextprotocol/rust-sdk#1330 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
OAuth discovery drops explicit default ports from advertised issuer identifiersCó thể đã có người làm @gocamille đã nhận 2 ngày trước. Đang mởbug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1420 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`register_client` drops `client_secret_expires_at` from the registration responseCó thể đã có người làm @gocamille đã nhận 3 ngày trước. Đang mởbug P2 ready for work T-security
modelcontextprotocol/rust-sdk#1416 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Typed client calls drop the parse error when a reply misses a required fieldCó thể đã có người làm @gocamille đã nhận 3 ngày trước. Đang mởenhancement P2 ready for work T-core T-service
modelcontextprotocol/rust-sdk#1415 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
auth: refresh_token() always sends `scope`, so refresh fails against Salesforce ("scope parameter not supported")Có thể đã có người làm @gocamille đã nhận 4 ngày trước. Đang mởbug P2 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1408 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của modelcontextprotocol/rust-sdk
Issue tương tự
-
area:docs documentation good first issue priority:medium
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
rtk-ai/rtk#4958 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
calagopus/panel#285 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: streamed Responses API flex_unavailable error maps to 500 InternalServerError instead of 429Đang mởllm translation
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100
BerriAI/litellm#49736 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
autoindex tests: denied loopback bind shows only PermissionDenied (255 failures), not the causeĐang mởfield-report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày