modelcontextprotocol / modelcontextprotocol/java-sdk
standardize tool metadata by adding annotation classes to sdk
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 3.7k
- フォーク
- 1.1k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 9
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue にリンクされている Spring AI のアノテーションディレクトリを確認し、そこにある Tool、ToolParam、ToolAnnotations、ToolResult アノテーションを現在の mcp-java-sdk と比較します。SDK がフレームワークに依存しない同等のものを提供し、MCP 開発者が Spring やその他の実装依存関係なしに同じアノテーションを使用できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, spring
- 領域
- api, backend-api-design
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100