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