modelcontextprotocol / modelcontextprotocol/java-sdk

API: Generalize client notification handlers for SDK client classes

オープン
#858 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

waiting for triage
主要言語
Java
スター
3.7k
フォーク
1.1k
平均マージ
1日 15時間
マージ済み PR(30日)
9

説明

Issue #831 requests the ability to add custom notifications for the SDK's McpAsync/Sync/StatelssServer classes.

This issue requests the team to enhance the API to allow for custom notification handlers on the McpAsync/Sync/StatelessClient classes. Currently there is no way...through composition or through inheritance...to add custom notification handlers. To create an update extension, both the server notification (sending) and client notification handling must be customizable.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、issue で言及されている McpAsyncClient、McpSyncClient、StatelessClient クラスと、issue #831 の関連するリクエストを確認します。コンポジションまたは継承によってカスタムのクライアント通知ハンドラーをサポートする方法を判断し、リンクされた更新拡張機能の要件を検討します。これらのクライアントクラスがカスタマイズ可能な通知処理を公開すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。