modelcontextprotocol / modelcontextprotocol/java-sdk
Extract McpAsyncClient and McpSyncClient as an interface
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 1.1k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 9
Description
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.
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 searching the Java SDK for McpAsyncClient and McpSyncClient and reviewing existing GitHub issues for overlapping requests. Determine the client behavior that must be exposed consistently for SDK and third-party implementations; done means both clients have a stable interface design that supports customization without source changes and preserves their relevant functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100