Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Allow to specify `JsonSerializerOptions` and `AIJsonSchemaCreateOptions` when adding capabilities to MCP server

Đang mở
#795 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@eiriktsarpalis đang làm issue này rồi.

Từ ngày 19/9/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement needs confirmation

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

Ngôn ngữ chính
C#
Star
4.5k
Fork
814
Merge trung bình
9 ngày 19 giờ
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/csharp-sdk

Tất cả issue của modelcontextprotocol/csharp-sdk

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.