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

Offen
#2,042 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
12/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp
Bereich
api

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
4.7k
Forks
863
Ø Merge
15 Std. 29 Min.
Gemergte PRs (30 T.)
8

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modelcontextprotocol/csharp-sdk

Alle Issues in modelcontextprotocol/csharp-sdk

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.