modelcontextprotocol / modelcontextprotocol/java-sdk

API: Generalize client notification handlers for SDK client classes

未关闭
#858 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

waiting for triage
主要语言
Java
星标
3.7k
派生
1.1k
平均合并
1 天 15 小时
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查 issue 中提到的 McpAsyncClient、McpSyncClient 和 StatelessClient 类,以及 issue #831 中相关的请求。确定如何通过组合或继承支持自定义客户端通知处理程序,并考虑所链接更新扩展的要求;当这些客户端类公开可自定义的通知处理时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。