Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

everything-server: subscriptions/listen responds with newline-delimited JSON, not SSE

未关闭 适合新手
#531 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
api

调研方向

从 examples/servers/typescript/everything-server.ts 开始,检查 subscriptions/listen 处理程序的响应标头和帧写入。将其 acknowledgment 和 notification 输出与 issue 中描述的 Streamable HTTP SSE 要求进行比较。当该处理程序生成带有正确分帧事件的 text/event-stream 响应,且符合规范的客户端能够读取这些事件时,即表示完成。

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

描述

  • The subscriptions/listen handler in examples/servers/typescript/everything-server.ts sets Content-Type: application/json and writes JSON.stringify(frame) + '\n' for the acknowledgment and each notification.
  • The Streamable HTTP transport (2026-07-28) says the listen response is an SSE stream, so spec-conforming clients can't read it.
  • Suggested fix: Content-Type: text/event-stream, and write each frame as data: {...}\n\n.
主要语言
TypeScript
星标
127
派生
107
平均合并
2 天 22 小时
30 天内合并 PR
5

环境准备

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

从这里开始

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

modelcontextprotocol/conformance 的其他 Issue

查看 modelcontextprotocol/conformance 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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