-32042 without elicitations drops JSON-RPC error data
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 67/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- swift
调研方向
首先在 Swift SDK 中找到 MCPError.init(from:) 和现有的 -32021 解码规则。检查解码器如何根据错误的 data 字段区分错误,然后为包含和不包含 elicitations 数组的 -32042 添加或更新有针对性的解码器测试。数组存在时仍为 urlElicitationRequired,而数组缺失或不是数组时,原始数据仍作为 serverError 保留,即为完成。
由索引模型根据 Issue 内容生成。
描述
MCPError.init(from:) currently maps every -32042 error to urlElicitationRequired. When data.elicitations is absent or is not an array, the decoder creates an empty list and loses other data, including data.challenges.
The 1.0 decoder can follow its existing -32021 rule: decode a -32042 without an elicitations array as serverError(code:message:data:), keeping the original data. A -32042 with an array should still decode as urlElicitationRequired.
This is the remaining data-preservation part of #229. It does not add payment-protocol support or a new MCPError case.
- 主要语言
- Swift
- 星标
- 1.6k
- 派生
- 278
- 平均合并
- 11 小时 15 分钟
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/swift-sdk 的其他 Issue
-
StdioTransport traps ("Negative value is not representable") when stdio is a socket, e.g. spawned by Node clients可能已有人在做 @branben 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
modelcontextprotocol/swift-sdk#327 · 1 条评论 ·
维护者通常 1 天内回复
-
Value decoding changes data-URL-looking JSON strings into Value.data可能已有人在做 @bitbemol 于 89 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
modelcontextprotocol/swift-sdk#277 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 78/100
modelcontextprotocol/swift-sdk#274 ·
维护者通常 1 天内回复
-
`HTTPClientTransport` fails to build on Windows: `#if !os(Linux)` guards no longer match the `EventSource` platform condition可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
modelcontextprotocol/swift-sdk#261 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
modelcontextprotocol/swift-sdk#376 · 1 条评论 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/swift-sdk 的全部 Issue
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#59692 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
vibe-cafe/vibe-usage-app#125 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 76/100
touyou/CheckItOut#39 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
touyou/IntentTodo#232 ·
维护者通常 1 天内回复