[4.0] Complete Two-Generic Pattern, Sealed Commands, and Native AOT Closure

Aperta
#3,992 10 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@KarishmaGhiya ci sta già lavorando.

Dal 19/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

engineering item needs-team-attention server-Azure.Mcp tools-Core

Release Tracker: microsoft/mcp-pr#691 (Theme 3.3)
Initiative: microsoft/mcp#3107 (Maintenance, Support & Platform Health)
Priority: P1 (Committed for 4.0)

Objective

Complete architectural standardization across all Azure MCP toolsets so every command adheres to current C# conventions, two-generic option binding, and full Native AOT compatibility.

Scope

  • Ensure all command classes use primary constructors, are declared sealed, and inherit from the two-generic SubscriptionCommand<TOptions, TResult> (or equivalent two-generic base).
  • Remove remaining legacy OptionDefinitions static classes and RegisterOptions/BindOptions overrides in favor of flat POCO option classes with [Option] attributes.
  • Migrate remaining enum-like string options to typed enums (microsoft/mcp#3131).
  • Complete System.Text.Json source-generation closure across all toolsets by registering all response and option models in JsonSerializerContext.
  • Maintain zero build, trimmer, or AOT warnings under TreatWarningsAsErrors=true.

Related Issues

  • Typed enum option migration: microsoft/mcp#3131

4.0 Exit Criteria

  • Zero legacy RegisterOptions/BindOptions or OptionDefinitions usages remaining in active toolsets.
  • Native AOT build (./eng/scripts/Build-Local.ps1 -IncludeNative -ReleaseBuild) succeeds with zero trimmer or AOT warnings.
  • Formatting, build, and spelling checks (Invoke-Cspell.ps1) pass cleanly across the solution.
Lingua principale
C#
Stelle
3.9k
Fork
689
Merge medio
2g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mcp

Tutte le issue di microsoft/mcp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.