modelcontextprotocol / modelcontextprotocol/java-sdk
Add an ability to trace requests
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 3.7k
- フォーク
- 1.1k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 9
説明
Expected Behavior
User can specify a file to dump information about all requests being sent between MCP server and the client
Current Behavior
I don't think there is a way to do it currently.
Context
We created a LoggingServletTransportProvider which does that, but with the new changes that no longer compiles since there is no public constructor. Using the builder and then composing is also not possible because the methods are protected.
We could upstream the LoggingServletTransportProvider or something along these lines if it makes sense.
This is very useful for debugging potential issues with MCP servers especially when users turn on automatic accept.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされている Scala LoggingServletTransportProvider と、Java SDK の現在の builder および protected な transport メソッドを比較します。アクセスできないコンストラクターやメソッドに依存せずに、リクエストトレーシングでユーザーが選択した出力ファイルを公開する方法を判断します。ユーザーがファイルを設定し、MCP server と client の間で交換されたリクエストの情報を確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- observability
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100