Bug in the MCP Apps documentation.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, python
调研方向
有问题的行是 MCP Apps 文档中 “Clock with a face” 示例内联 script 里的 const text = event.data?.result?.content?.[0]?.text;。报告者称,stories 服务器文件和 docs_src 副本中也需要同样的修改。先在文档示例和 docs_src 示例中找到这一行,然后检查 stories 服务器文件中是否有相同的键。当示例在 MCP 客户端中运行时能显示时钟文本,并且使用 params 而不是 result,即为完成。
由索引模型根据 Issue 内容生成。
描述
Initial Checks
- I confirm that I'm using the newest release of my line (the latest 2.x, or the latest 1.x if I'm still on v1)
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Release line
2.x (current stable)
Description
The Clock with a face example from the documentation has a small error in one of the keys of the HTML script that causes the example to not work.
The following line:
const text = event.data?.result?.content?.[0]?.text;
Should be replaced by:
const text = event.data?.params?.content?.[0]?.text;
If I'm understanding correctly, In JSON-RPC 2.0, a notification's payload lives under params.
I have tested it with MCPJam and the change works. I have a branch ready so I'm more than happy to open a PR. (I changed the stories server file and the docs_src as well)
Current behaviour (using result)
After the changes (using params)
Python & MCP Python SDK
Python 3.14
MCP 2.3.0
- 主要语言
- Python
- 星标
- 24.5k
- 派生
- 4k
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 33
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/python-sdk 的其他 Issue
-
Audio(data=b"") raises "Either path or data can be provided", while Image(data=b"") works可能已有人在做 @KaiyiQuan 于 1 天前认领。 未关闭bug v1 v2
难度 1/5 1 小时以内 新手友好度 85/100
modelcontextprotocol/python-sdk#3656 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 66/100
modelcontextprotocol/python-sdk#3655 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 86/100
modelcontextprotocol/python-sdk#3654 ·
维护者通常 1 天内回复
-
CORSMiddleware on /register and /token forwards any non-preflight OPTIONS request straight to the body-reading handler可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug v1 v2
难度 2/5 1-3 小时 新手友好度 84/100
modelcontextprotocol/python-sdk#3652 · 3 条评论 ·
维护者通常 1 天内回复
-
MCPServer completion handler returning more than 100 values fails on 2026-07-28 sessions and violates the 100-item limit on 2025-11-25 sessions可能已有人在做 @musi22 于 1 天前认领。 未关闭bug spec-2026-07-28 v2
难度 2/5 1-3 小时 新手友好度 88/100
modelcontextprotocol/python-sdk#3649 · 2 条评论 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/python-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
[BUG] Multi-day events show "Ended" while still in progress可能已有人在做 @tarunagnihotri534 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
data-umbrella/du-event-board#231 · 2 条评论 ·
-
avl_automation: the generated control surface block isn't valid XML (typo in avl_out_parse.py)可能已有人在做 @brksol 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
PX4/PX4-gazebo-models#164 ·