modelcontextprotocol / modelcontextprotocol/java-sdk
standardize tool metadata by adding annotation classes to sdk
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ả
Expected Behavior
It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk.
Current Behavior
Multiple, tool-specific annotations exist, the most prominent being spring's:
These annotations (and the one interface dependency) should be a part of the java mcp-sdk itself, rather than require spring dependencies (or other emerging implementations).
Context
b
It would be helpful to have Tool/ToolParam/ToolAnnotations/ToolResult annotations that are part of the java sdk, so that the MCP developer would not have to change annotations to use a different framework. Having Tool/ToolParam/ToolAnnotations/ToolResult annotations as part of the mcp itself rather than spring or any other specific framework would aid in that effort.
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 cách xem xét thư mục annotation của Spring AI được liên kết trong issue và so sánh các annotation Tool, ToolParam, ToolAnnotations và ToolResult của thư mục này với mcp-java-sdk hiện tại. Công việc được coi là hoàn tất khi SDK cung cấp các thành phần tương đương độc lập với framework, để các nhà phát triển MCP có thể sử dụng cùng các annotation mà không cần Spring hoặc một dependency triển khai khác.
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, spring
- Lĩnh vực
- api, backend-api-design
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100