modelcontextprotocol / modelcontextprotocol/modelcontextprotocol
EmbeddedResource returns a single content block, ReadResourceResult returns an array
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 9.3k
- 派生
- 1.8k
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 25
描述
Is your feature request related to a problem? Please describe.
EmbeddedResource delivers a content block and a uri, where the uri can be used to re-fetch later via resources/read. However, the result of the latter (a ReadResourceResult) delivers an array of content blocks.
Practical consequence is that EmbeddedResources can't embed the full content of multi-block resources.
Less practically, it's an inconsistency in the "EmbeddedResources are pre-fetched Resources, with a uri for re-fetching" high-level design.
Describe the solution you'd like
Modify EmbeddedResource to deliver an array of content blocks.
Describe alternatives you've considered
Leave it alone.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从协议规范中 EmbeddedResource 和 ReadResourceResult 的定义开始,然后比较它们各自如何表示内容块。检查规范项目中的任何相关 schema 示例或生成的类型。完成的标准是两种资源表示保持一致,并且可以嵌入多块资源而不丢失内容。
由索引模型根据 Issue 内容生成。
评估
- 领域
- api
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 38/100