modelcontextprotocol / modelcontextprotocol/java-sdk
Support extensions SEP-2133
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 3.7k
- Fork
- 1.1k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 9
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng việc xác định các biểu diễn trong Java SDK và các đường dẫn tuần tự hóa cho ClientCapabilities và ServerCapabilities. So sánh chúng với schema SEP-2133 được liên kết trong issue và các triển khai Python và TypeScript được tham chiếu. Công việc được coi là hoàn tất khi cả hai đối tượng capability hỗ trợ các trường mở rộng có khả năng tương tác mà không nhầm lẫn chúng với các trường thử nghiệm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100