modelcontextprotocol / modelcontextprotocol/php-sdk
[2026-07-28] Schema modernization & error code standardization
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 1.6k
- Forks
- 173
- Ø Merge
- 2 T. 49 Min.
- Gemergte PRs (30 T.)
- 23
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den Unteraufgaben #356–#359 und ihren SEP-Links. Für die Arbeit an den Fehlercodes sieh dir src/Schema/JsonRpc/Error.php und den im Issue beschriebenen Fallback für die Protokollversion an; für die Schema-Arbeit beginne mit den Anforderungen an SchemaValidator und die aufgeführten JSON-Schema-Vokabulare, outputSchema, structuredContent, SSRF und DoS. Als erledigt gilt die Arbeit, wenn alle aufgeführten Unteraufgaben gemäß den zusammengeführten SEP-Anforderungen abgeschlossen sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- api, backend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100