http-header-validation grades -32020 as SHOULD for standard headers; 2026-07-28 Server Validation makes it MUST
维护者通常 7 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- testing
调研方向
从 createRejectionChecks 开始,其中标准 header 的用例传入了 errorCodeSeverity: 'WARNING',而自定义 header 的用例已经使用 FAILURE。将标准 header 的评分改为 FAILURE,删除现已未使用的 errorCodeSeverity 选项,并检查 Server Validation 场景中预期的错误码 -32020。当一个以 400 和 -32600 拒绝请求的服务器会导致该场景失败,而不是带着警告通过时,即为完成。
由索引模型根据 Issue 内容生成。
描述
2026-07-28 Streamable HTTP §Server Validation: "servers MUST return HTTP status 400 Bad Request and MUST include a JSON-RPC error response using ... -32020". The second MUST was a SHOULD before modelcontextprotocol/modelcontextprotocol#2863. createRejectionChecks still passes errorCodeSeverity: 'WARNING' for the standard-header cases (the custom-header ones already use FAILURE), so a server rejecting with 400 and -32600 passes the scenario 9/9 with 5 warnings. The scenario description itself already says MUST. Proposed: FAILURE for both, and drop the now-unused option. Happy to send the PR.
AI disclosure per AI_POLICY.md: the investigation, code and tests were done primarily with Claude Code. The numbers above are from local runs.
- 主要语言
- TypeScript
- 星标
- 131
- 派生
- 111
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/conformance 的其他 Issue
-
`test_logging_tool` response omits resultType on the 2026-07-28 wire可能已有人在做 @lnuxe 于 1 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 62/100
modelcontextprotocol/conformance#562 ·
维护者通常 7 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
modelcontextprotocol/conformance#531 · 1 条评论 ·
维护者通常 7 天内回复
-
server-stateless: 500 ms whole-request deadline in no-log-without-loglevel reports slow servers as failures可能已有人在做 @birbprophet 于 20 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/conformance#530 ·
维护者通常 7 天内回复
-
http-custom-header-server-validation: no case sends an empty x-mcp-header value可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/conformance#519 · 1 条评论 ·
维护者通常 7 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/conformance#315 · 1 条评论 ·
维护者通常 7 天内回复
查看 modelcontextprotocol/conformance 的全部 Issue
相似的 Issue
-
area:plugins enhancement platform:vscode
难度 2/5 1-3 小时 新手友好度 88/100
anthropics/claude-code#103166 ·
维护者通常 1 天内回复
-
check:failed streams:add
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
jitsi/jitsi-meet#18021 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
spec: discovery input example can contain multiple aliases for one parameter, with no canonical one未关闭
难度 1/5 1 小时以内 新手友好度 95/100
x402-foundation/x402#3841 ·
维护者通常 1 天内回复