Request to prioritize UTF-8 wire output and optional JSON responses for Streamable HTTP

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
api

Hướng nghiên cứu

This is a request for maintainers to review two existing changes, #1964 (UTF-8 wire output for SSE data) and #1714 (opt-in single JSON responses for Streamable HTTP), not a task to implement. The payload names no files or tests, so a newcomer would need to read those two linked threads and their code first. Done means a maintainer replies with review blockers or a release milestone, and the two changes may be split into separate timelines.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Could the maintainers prioritize reviewing #1964 and #1714 for an upcoming C# SDK release? They address two separate needs for servers using Streamable HTTP.

Priority 1: Keep non-ASCII text readable on the wire (#1964). A tool can return the synthetic value {"message":"示例中文"}, yet the SSE data: payload still writes the Chinese characters as \uXXXX. Both representations decode to the same JSON value, but consumers that forward raw tool output to a model or display it as text see the escapes. Direct UTF-8 output would also remove the need for servers to rewrite their SSE responses.

Priority 2: Offer an opt-in single JSON response (#1714). A tool that only produces a final result can return that JSON-RPC response directly as application/json. SSE remains useful for progress and other intermediate events. An opt-in mode would let servers choose without changing the default for existing clients.

If the two changes need different release timelines, it would help to ship the wire-encoding fix independently. Could you share any remaining review blockers or the expected release milestone?

Thanks for maintaining the SDK.

Ngôn ngữ chính
C#
Star
4.7k
Fork
863
Merge trung bình
15 giờ 29 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Mở trong Codespaces

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.

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.