tools/list is rejected: three outputSchemas declare a bare oneOf with no type
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
首先定位 rename_document、archive_document 和 restore_document 的 tools/list outputSchema 声明,然后检查 outputSchema 数组是如何组装的。确保存在 oneOf outputSchema 时 advertisement 仍然有效,并验证 tools/list 接受这些工具以及未来的 oneOf 条目。
由索引模型根据 Issue 内容生成。
描述
rename_document, archive_document and restore_document declare an outputSchema that is a bare oneOf with no type.
MCP types a tool's outputSchema as an object schema. A client that validates the advertisement rejects it — and rejects the whole tools/list response rather than the offending tool, so every tool goes unavailable, not the three that are malformed. Claude Code reports:
chopin: https://<host>/mcp (HTTP) - ! Connected · tools fetch failed
Invalid input (at tools.3.outputSchema.type)
The health line leads with Connected and buries the reason, so the failure reads as a healthy server.
Both branches of each oneOf are already object schemas. The constraint belongs to the array rather than to those three entries: any tool added later with a oneOf output takes the advertisement dark the same way.
- 主要语言
- TypeScript
- 星标
- 351
- 派生
- 20
- 平均合并
- 14 小时 38 分钟
- 30 天内合并 PR
- 32
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/chopin 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
githubnext/chopin#149 ·
-
githubnext/chopin#181 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 35/100
githubnext/chopin#165 ·
-
难度 5/5 一周以上 新手友好度 35/100
githubnext/chopin#164 ·
-
难度 5/5 一周以上 新手友好度 38/100
githubnext/chopin#163 ·
查看 githubnext/chopin 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 条评论 ·
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
refactor
难度 2/5 1-3 小时 新手友好度 84/100