modelcontextprotocol / modelcontextprotocol/java-sdk
API: Generalize client notification handlers for SDK client classes
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 1.1k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 9
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the McpAsyncClient, McpSyncClient, and StatelessClient classes mentioned in the issue, along with the related request in issue #831. Determine how custom client notification handlers can be supported through composition or inheritance, and consider the requirements of the linked update extension; done means those client classes expose customizable notification handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100