modelcontextprotocol / modelcontextprotocol/java-sdk
Add group to tools
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 3.7k
- フォーク
- 1.1k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 9
説明
Hello, I would like to add a group request endpoint, and mark which group it belongs to when registering tools. When using the SSE endpoint, describe the group in the path or parameters. When the client pulls the tool list, it returns the tools of the specified group (if no group is specified, all are returned).
I expect to solve the problem:
1 When a server has many tools, I don't want to use multiple endpoints to group these tools, which is simpler when used in a framework like Spring.
2 Configure different groups to express different agents by obtaining different tool lists.
Note: Alternatively, add a group by interface to handle the group names passed by the SSE endpoint. This interface receives the group name and tools list context, and returns the tools list corresponding to the group name.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存のSSEエンドポイント、ツール登録フロー、ツール一覧レスポンスを追跡します。エンドポイントの変更とグループ化インターフェースのどちらを選ぶか決める前に、リクエストパラメーターと登録済みツールが現在どのように処理されているかを確認します。サーバーがグループ単位でツールを登録し、SSE経由でグループを要求でき、グループが指定されていない場合はそのグループまたはすべてのツールを受け取れるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api, backend-api-design
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100