modelcontextprotocol / modelcontextprotocol/java-sdk
Extract McpAsyncClient and McpSyncClient as an interface
還沒有人認領這個 Issue。
- 主要語言
- Java
- 星號
- 3.7k
- 分支
- 1.1k
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 9
描述
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
McpAsyncClient and McpSyncClient a interfaces
Current Behavior
classes
Context
We are implementing a relatively complex client to support long-running tool calls and machine restarts. However, the current client implementation makes it difficult to customize without modifying the source code.
We hope to introduce an interface that, while providing the relevant functionality, also provides consistent behavior from the Java SDK to second- and third-party clients.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先在 Java SDK 中搜尋 McpAsyncClient 和 McpSyncClient,並檢視現有的 GitHub issue,尋找重疊的請求。確定對 SDK 和第三方實作必須一致公開的用戶端行為;完成表示兩個用戶端都具備穩定的介面設計,支援在不修改原始碼的情況下進行自訂,並保留其相關功能。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- api, backend-api-design
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100