modelcontextprotocol / modelcontextprotocol/java-sdk
Support extensions SEP-2133
還沒有人認領這個 Issue。
- 主要語言
- Java
- 星號
- 3.7k
- 分支
- 1.1k
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 9
描述
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.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先定位 ClientCapabilities 和 ServerCapabilities 的 Java SDK 表示形式及序列化路徑。將它們與 issue 中連結的 SEP-2133 schema 以及所參照的 Python 和 TypeScript 實作進行比較。當兩個 capability 物件都支援可互通的擴充欄位,且不會將其與實驗性欄位混淆時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- api
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100