Return merged cache hints from list_all_* client methods
维护者通常 3 天内回复
@gocamille 已经在做这个了。
开始于 2026年10月29日。
评估
这个 Issue 还没有评估数据。
描述
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.
- 主要语言
- Rust
- 星标
- 4.1k
- 派生
- 680
- 平均合并
- 3 天 23 小时
- 30 天内合并 PR
- 34
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/rust-sdk 的其他 Issue
-
auth: refresh_token() requests offline_access that was never granted, so refreshes fail with invalid_scope可能已有人在做 @jstar0 于 21 天前认领。 未关闭bug P1 ready for work T-security T-transport
难度 2/5 1-3 小时 新手友好度 65/100
modelcontextprotocol/rust-sdk#1330 ·
维护者通常 3 天内回复
-
auth: refresh_token() always sends `scope`, so refresh fails against Salesforce ("scope parameter not supported")可能已有人在做 @gocamille 于 1 天前认领。 未关闭bug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1408 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
Enterprise-managed auth: ID-JAG `resource` claim should be optional可能已有人在做 @gocamille 于 2 天前认领。 未关闭bug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1404 · 2 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
Auto discovery timeout rejects a late probe response during legacy initialization可能已有人在做 @gocamille 于 2 天前认领。 未关闭bug P1 ready for work T-service
modelcontextprotocol/rust-sdk#1400 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
URL mode elicitation requires elicitationId, which the 2026-07-28 schema removed可能已有人在做 @gocamille 于 3 天前认领。 未关闭bug P1 ready for work T-model
modelcontextprotocol/rust-sdk#1399 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
查看 modelcontextprotocol/rust-sdk 的全部 Issue
相似的 Issue
-
bug priority: low ui
难度 2/5 1-3 小时 新手友好度 65/100
storytold/photocraft#10370 · 1 条评论 ·
维护者通常 1 天内回复
-
area:doc bug in progress needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
bherbruck/solvecraft#9634 · 2 条评论 · 1 个 reaction ·
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiB未关闭
难度 1/5 1 小时以内 新手友好度 85/100
trifectatechfoundation/zlib-rs#570 · 1 条评论 ·
-
bug discord-triage
难度 2/5 1-3 小时 新手友好度 84/100
LanternOps/breeze#10755 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
aranya-project/aranya#803 ·