modelcontextprotocol / modelcontextprotocol/modelcontextprotocol

EmbeddedResource returns a single content block, ReadResourceResult returns an array

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

还没有人认领这个 Issue。

enhancement
主要语言
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.

贡献指南

打开贡献指南

从这里开始

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

调研方向

先从协议规范中 EmbeddedResource 和 ReadResourceResult 的定义开始,然后比较它们各自如何表示内容块。检查规范项目中的任何相关 schema 示例或生成的类型。完成的标准是两种资源表示保持一致,并且可以嵌入多块资源而不丢失内容。

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

评估

领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
38/100

把新 issue 发到你的邮箱

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