[2026-07-28] Schema modernization & error code standardization
還沒有人認領這個 Issue。
評估
研究方向
從子議題 #356–#359 及其 SEP 連結開始。對於錯誤碼相關工作,檢查 src/Schema/JsonRpc/Error.php 以及 issue 中描述的通訊協定版本 fallback;對於 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