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

Bug in the MCP Apps documentation.

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, python
领域
documentation

调研方向

有问题的行是 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 内容生成。

描述

documentation v2
Initial Checks
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)
Image
After the changes (using params)
Image
Python & MCP Python SDK
Python 3.14
MCP 2.3.0
主要语言
Python
星标
24.5k
派生
4k
平均合并
1 天 4 小时
30 天内合并 PR
33

环境准备

从这里开始

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

modelcontextprotocol/python-sdk 的其他 Issue

查看 modelcontextprotocol/python-sdk 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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