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

未关闭
#2,042 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
api

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C#
星标
4.7k
派生
863
平均合并
15 小时 29 分钟
30 天内合并 PR
8

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

modelcontextprotocol/csharp-sdk 的其他 Issue

查看 modelcontextprotocol/csharp-sdk 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。