modelcontextprotocol / modelcontextprotocol/java-sdk

Support extensions SEP-2133

Offen
#785 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area/client area/server enhancement P1
Vorherrschende Sprache
Java
Sterne
3.7k
Forks
1.1k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
9

Beschreibung

SEP-2133 Extensions was recently approved through the SEP process.

This has resulted in a new 'extension' fields in ClientCapabilities and ServerCapabilities.

Note that the capabilities extension fields are not in the 11-25-2025 schema and are distinct from the 'experimental' field...which is in the 11/25/2025 and the current Java SDK.

Expected Behavior

Support the extension fields in ClientCapabilities and ServerCapabilities so that extensions can be made connect interoperable with similar extensions in other language sdks (e.g. python and typescript).

Current Behavior

Explained above.

Context

I am in the process of implementing an extension to support grouping of primitives I already have a similar extension in python and for typescript. To make python clients that support the extension to connect to java servers that support the groups extension it's necessary that the new capabilities extension field be supported by the Java SDK.

In the immediate term I'm working around this by using the existing 'experimental' capabilities field. But interoperability with other sdks won't work.

If a pr implementing this feature is desired, I would be willing and able to create one. Please LMK on this issue or in direct conversation if you would like me to contribute this.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die Java-SDK-Repräsentationen und Serialisierungspfade für ClientCapabilities und ServerCapabilities zu finden. Vergleiche sie mit dem im Issue verlinkten SEP-2133-Schema und den referenzierten Python- und TypeScript-Implementierungen. Die Aufgabe ist erledigt, wenn beide Capability-Objekte interoperable Erweiterungsfelder unterstützen, ohne sie mit experimentellen Feldern zu verwechseln.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.