modelcontextprotocol / modelcontextprotocol/csharp-sdk
Allow to specify `JsonSerializerOptions` and `AIJsonSchemaCreateOptions` when adding capabilities to MCP server
@eiriktsarpalis ci sta già lavorando.
Dal 19/9/2025.
- Lingua principale
- C#
- Stelle
- 4.5k
- Fork
- 814
- Merge medio
- 9g 19h
- PR unite (30g)
- 4
Descrizione
Is your feature request related to a problem? Please describe.
Customizing json schema generation is currently not possible via AIJsonSchemaCreateOptions when adding capabilities e.g. via IMcpServerBuilder.WithResources(), IMcpServerBuilder.WithTools() etc.
WithPrompts and WithTools methods allow to specify JsonSerializerOptions while this cannot be done for WithResources.
Describe the solution you'd like
Add optional AIJsonSchemaCreateOptions argument to WithResources, WithTools , and WithPrompts method to allow schema customization.
Add optional JsonSerializerOptions argument to each WithResources method to allow setting serializer options.
Describe alternatives you've considered
none
Additional context
n/a
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.