[2026-07-28] Schema modernization & error code standardization
还没有人认领这个 Issue。
评估
调研方向
从子议题 #356–#359 及其 SEP 链接开始。对于错误代码相关工作,检查 src/Schema/JsonRpc/Error.php 以及 issue 中描述的协议版本回退;对于 schema 相关工作,从 SchemaValidator 和所列出的 JSON Schema 词汇、outputSchema、structuredContent、SSRF 及 DoS 要求开始。完成意味着所有列出的子议题都已按照合并后的 SEP 要求完成。
由索引模型根据 Issue 内容生成。
描述
Tracking issue for the MCP Spec 2026-07-28 release — Schema & errors milestone.
SEPs covered
| SEP | Title | Spec PR |
|---|---|---|
| SEP-2106 | Tools inputSchema/outputSchema conform to JSON Schema 2020-12 |
#2106 |
| SEP-2164 | Standardize resource-not-found error code to -32602 |
#2164 |
Sub-issues
SEP-2106 (JSON Schema 2020-12):
- #356 — Vocabulary support (oneOf/anyOf/allOf/if-then-else/
$ref) - #357 — Allow non-object
outputSchemaandstructuredContent - #358 — Harden
SchemaValidatoragainst external$refSSRF and composition DoS
SEP-2164:
- #359 — Switch resource-not-found error code to
-32602with protocol-version-aware fallback
Notes
- Both SEPs are merged.
- SEP-2106 is the largest code-level lift this cycle for the schema layer: full JSON Schema 2020-12 vocabulary (composition, conditionals,
$ref), plus non-objectoutputSchema/structuredContent. Also requires hardening against external$refSSRF and composition DoS. - SEP-2164 is mechanically a one-constant flip in
src/Schema/JsonRpc/Error.phpwith a protocol-version-aware fallback.
- 主要语言
- PHP
- 星标
- 1.6k
- 派生
- 173
- 平均合并
- 2 天 49 分钟
- 30 天内合并 PR
- 23
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/php-sdk 的其他 Issue
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStan 未关闭Server
难度 1/5 1 小时以内 新手友好度 78/100
modelcontextprotocol/php-sdk#468 · 2 条评论 ·
-
needs confirmation needs maintainer action Server
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/php-sdk#398 · 1 个 reaction ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/php-sdk#370 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 55/100
modelcontextprotocol/php-sdk#510 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
modelcontextprotocol/php-sdk#504 ·
查看 modelcontextprotocol/php-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
getgrav/grav-plugin-api#45 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
RSS-Bridge/rss-bridge#5098 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
phingofficial/phing#2025 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
silverstripe/developer-docs#911 ·
-
难度 2/5 1-3 小时 新手友好度 74/100