Migrate Cosmos DB to pagination
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C#
- Estrellas
- 3.9k
- Forks
- 689
- Merge medio
- 2 d 11 h
- PR fusionados (30 d)
- 143
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languagePosiblemente ocupada @Shizoqua la tomó hoy. AbiertoAzure.Mcp.Server needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
[BUG] deploy architecture diagram generate never shows Docker settings for container appsPosiblemente ocupada @Shizoqua la tomó hoy. AbiertoAzure.Mcp.Server needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsPosiblemente ocupada @Ahmed-Manai la tomó hace 10 días. Abiertoserver-Azure.Mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdPosiblemente ocupada @msalaman la tomó hace 29 días. Abiertocustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/mcp#4087 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateQuizá libre de nuevo @anishsinghhh3-bit la tomó hace 32 días y no hay ningún pull request abierto. Abiertocopilot documentation server-Azure.Mcp tools-ResilienceManagement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
microsoft/mcp#4008 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/mcp
Issues similares
-
bug documentation queries
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/clickhouse-cs#815 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlPosiblemente ocupada @alexeyfala la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
danipen/TextMateSharp#145 · 2 comentarios ·
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Klyroo/klyroo-dashboard#12 ·
Los mantenedores suelen responder en 1 día
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onPosiblemente ocupada @yadavraj2001 la tomó hoy. Abiertodocumentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
juandresrodca/AdminForge#73 · 1 comentario ·
Los mantenedores suelen responder en 1 día