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

Ouverte
#2,042 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
12/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
csharp
Domaine
api

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C#
Étoiles
4.7k
Forks
863
Merge moyen
15 h 29 min
PR mergées (30 j)
8

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de modelcontextprotocol/csharp-sdk

Toutes les issues de modelcontextprotocol/csharp-sdk

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.