Migrate Cosmos DB to pagination
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
调研方向
Read tools/Azure.Mcp.Tools.Cosmos/src/Commands/ItemQueryCommand.cs, tools/Azure.Mcp.Tools.Cosmos/src/Services/CosmosService.cs, and docs/tool-pagination.md; inspect the reverted implementation in commit b3e1b2854 and verify its AOT dependency prerequisite against the current dependencies. Then trace the framework's cursor and nextCursor contract and the existing recorded tests. Done means bounded pages, validated cursors, preserved authorization and query validation, passing pagination and serialization tests, verified AOT compatibility, and updated command docs.
由索引模型根据 Issue 内容生成。
描述
Paginate Cosmos DB container queries
Context
ItemQueryCommand calls CosmosService.QueryItems, which reads the query iterator until completion with MaxItemCount = -1. Large result sets can make a single tool call expensive. An earlier pagination implementation was reverted in commit b3e1b2854 because its AOT library needed updating.
Work
- Investigate the prior implementation and resolve or verify the AOT dependency prerequisite before adopting it; do not assume it works with the current dependency set.
- Use the framework's
cursorandnextCursorcontract to expose a Cosmos query continuation. Preserve the existing result shape unless a deliberate compatibility decision says otherwise. - Bind the cursor to account, database, container, effective query, subscription, authentication method, tenant, and other fixed query inputs.
- Decide how existing all-results behavior changes and document the page-size and continuation semantics.
Acceptance criteria
- One request returns a bounded page rather than draining the iterator; first, continued, empty-with-continuation, and terminal pages are covered.
- Reject invalid cursors and changed fixed arguments before dispatch. Preserve query validation and authorization.
- Cover option binding and source-generated serialization in unit tests and follow every page in recorded tests; verify AOT compatibility and update command docs.
References
tools/Azure.Mcp.Tools.Cosmos/src/Commands/ItemQueryCommand.cstools/Azure.Mcp.Tools.Cosmos/src/Services/CosmosService.csdocs/tool-pagination.md
- 主要语言
- C#
- 星标
- 3.9k
- 派生
- 689
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 143
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/mcp 的其他 Issue
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --language可能已有人在做 @Shizoqua 今天认领。 未关闭Azure.Mcp.Server needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
[BUG] deploy architecture diagram generate never shows Docker settings for container apps可能已有人在做 @Shizoqua 今天认领。 未关闭Azure.Mcp.Server needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available tools可能已有人在做 @Ahmed-Manai 于 10 天前认领。 未关闭server-Azure.Mcp
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no threshold可能已有人在做 @msalaman 于 29 天前认领。 未关闭customer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/mcp#4087 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK update可能重新可做 @anishsinghhh3-bit 于 32 天前认领,目前没有进行中的 PR。 未关闭copilot documentation server-Azure.Mcp tools-ResilienceManagement
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 2 天内回复
相似的 Issue
-
bug documentation queries
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/clickhouse-cs#815 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xml可能已有人在做 @alexeyfala 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
danipen/TextMateSharp#145 · 2 条评论 ·
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
Klyroo/klyroo-dashboard#12 ·
维护者通常 1 天内回复
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on可能已有人在做 @yadavraj2001 今天认领。 未关闭documentation good first issue
难度 1/5 1-3 小时 新手友好度 82/100
juandresrodca/AdminForge#73 · 1 条评论 ·
维护者通常 1 天内回复