modelcontextprotocol / modelcontextprotocol/java-sdk

Extract McpAsyncClient and McpSyncClient as an interface

Open
#680 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement v2
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.