Migrate Cosmos DB to pagination
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 3.9k
- Fork
- 689
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 143
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.
- Có Dockerfile hoặc tệp Docker Compose
- 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 microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languageCó thể đã có người làm @Shizoqua đã nhận hôm nay. Đang mởAzure.Mcp.Server needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] deploy architecture diagram generate never shows Docker settings for container appsCó thể đã có người làm @Shizoqua đã nhận hôm nay. Đang mởAzure.Mcp.Server needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsCó thể đã có người làm @Ahmed-Manai đã nhận 10 ngày trước. Đang mởserver-Azure.Mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdCó thể đã có người làm @msalaman đã nhận 29 ngày trước. Đang mởcustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/mcp#4087 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateCó thể làm lại được @anishsinghhh3-bit đã nhận 32 ngày trước và không có pull request nào đang mở. Đang mởcopilot documentation server-Azure.Mcp tools-ResilienceManagement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
microsoft/mcp#4008 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của microsoft/mcp
Issue tương tự
-
bug documentation queries
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ClickHouse/clickhouse-cs#815 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlCó thể đã có người làm @alexeyfala đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
danipen/TextMateSharp#145 · 2 bình luận ·
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Klyroo/klyroo-dashboard#12 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onCó thể đã có người làm @yadavraj2001 đã nhận hôm nay. Đang mởdocumentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
juandresrodca/AdminForge#73 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày