Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codeboyzhou/mcp-java-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: modelcontextprotocol/java-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 17 commits
  • 53 files changed
  • 14 contributors

Commits on Mar 5, 2026

  1. Fix elicitation and resource subscription tests that deadlock on a si…

    …ngle CPU (modelcontextprotocol#854)
    
    Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
    chemicL authored Mar 5, 2026
    Configuration menu
    Copy the full SHA
    6e4ce1c View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2026

  1. HttpClientStreamHttpTransport: add authorization error handler (model…

    …contextprotocol#861)
    
    HttpClientStreamHttpTransport: add authorization error handler
    
    - Closes modelcontextprotocol#240
    
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Kehrlann authored Mar 13, 2026
    Configuration menu
    Copy the full SHA
    abcd19c View commit details
    Browse the repository at this point in the history
  2. fix: prepare POMs for Maven Central release readiness (modelcontextpr…

    …otocol#863)
    
    - Fix malformed SCM developerConnection URL (slash → colon) across all modules
    - Add mcp-json-jackson3 to mcp-bom dependency management
    - Update license URL to HTTPS
    - Fix POM's scm definitions
    
    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    
    
    
    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    
    ---------
    
    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov authored Mar 13, 2026
    Configuration menu
    Copy the full SHA
    c4b5857 View commit details
    Browse the repository at this point in the history
  3. Next development version

    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    cbb235f View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2026

  1. Merge commit from fork

    Kehrlann authored Mar 27, 2026
    Configuration menu
    Copy the full SHA
    685b189 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2026

  1. Configuration menu
    Copy the full SHA
    3a78182 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2026

  1. docs: add conformance summary to README

    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    matteoroxis authored and Kehrlann committed Apr 2, 2026
    Configuration menu
    Copy the full SHA
    b6eb672 View commit details
    Browse the repository at this point in the history
  2. conformance: update to mcp-security 0.1.5, pass scope-step-up

    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Kehrlann committed Apr 2, 2026
    Configuration menu
    Copy the full SHA
    22e7bd4 View commit details
    Browse the repository at this point in the history
  3. docs: document best practice for handling argument errors in MCP tools (

    modelcontextprotocol#891)
    
    Resolves modelcontextprotocol#356
    
    Clarify the two-tier error model:
    - Recoverable tool errors: use CallToolResult with isError(true)
    - Protocol-level errors: throw McpError / let exceptions propagate as JSON-RPC errors
    
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    radeshgovind-2005 authored Apr 2, 2026
    Configuration menu
    Copy the full SHA
    cd2c21c View commit details
    Browse the repository at this point in the history
  4. Deprecate Builder.customizeRequest() in favor of httpRequestCustomize…

    …r() (modelcontextprotocol#791)
    
    Deprecate Builder.customizeRequest() in HttpClientSseClientTransport and HttpClientStreamableHttpTransport
    
    customizeRequest() executes its consumer once at build time, freezing
    headers into the shared requestBuilder. This silently breaks OAuth
    token refresh scenarios where the Authorization header needs to be
    updated after the transport is built.
    
    Add @deprecated and update Javadoc to clarify the build-time-only
    semantics and guide users toward httpRequestCustomizer() or
    asyncHttpRequestCustomizer() which run on every request.
    
    Closes modelcontextprotocol#788
    
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    gyeo009 authored Apr 2, 2026
    Configuration menu
    Copy the full SHA
    301dbe4 View commit details
    Browse the repository at this point in the history
  5. Server transports: remove deprecated methods from builder

    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Kehrlann committed Apr 2, 2026
    Configuration menu
    Copy the full SHA
    8c7774a View commit details
    Browse the repository at this point in the history
  6. HttpClientStreamableHttpTransport: handle HTTP 405

    - Forward-port of modelcontextprotocol#900
    
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Kehrlann committed Apr 2, 2026
    Configuration menu
    Copy the full SHA
    5e77762 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2026

  1. Fix UTF-8 encoding for non-ASCII tool names in HTTP client transports

    Both HttpClientSseClientTransport and HttpClientStreamableHttpTransport
    set Content-Type to 'application/json' without specifying the charset.
    While Java's BodyPublishers.ofString() uses UTF-8 by default, the
    missing charset in the header can cause the server to interpret the
    request body using a different encoding (e.g., ISO-8859-1), corrupting
    non-ASCII characters such as Chinese tool names.
    
    Explicitly set Content-Type to 'application/json; charset=utf-8' in
    POST requests on both client transports.
    
    Fixes modelcontextprotocol#260
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    Co-authored-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    3 people committed Apr 8, 2026
    Configuration menu
    Copy the full SHA
    8fd9903 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2026

  1. feat: add support for meta parameter in client paginated list queries (

    …modelcontextprotocol#906)
    
    * feat: add support for meta parameter in client paginated list queries#
    
    - resources/list
    - resources/templates/list
    - prompts/list
    - tools/list
    
    paginated list operations extended in this review:
    - listResources(String cursor, Map<String, Object> meta)
    - listResourceTemplates(String cursor, Map<String, Object> meta)
    - listPrompts(String cursor, Map<String, Object> meta)
    
    Closes modelcontextprotocol#907
    
    Co-authored-by: SHEETAL MOHITE <mohishee@amazon.com>
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    smohite04 and SHEETAL MOHITE authored Apr 9, 2026
    Configuration menu
    Copy the full SHA
    eaa0c69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcdc0d4 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2026

  1. fix: Remove JsonSchema and use a Map for inputSchema to support json …

    …schemas dialect (modelcontextprotocol#749)
    
    * feat: remove JsonSchema an use a Map for inputSchema
    
    - Fixes modelcontextprotocol#886
    
    Co-authored-by: Daniel Garnier-Moiroux <git@garnier.wf>
    bilaloumehdi and Kehrlann authored Apr 10, 2026
    Configuration menu
    Copy the full SHA
    9520323 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2026

  1. feat!: add tool input arguments validation (modelcontextprotocol#873)

    added tool input arguments validation causes tool execution error. Breaking change, because validation is activated by default
    
    closes modelcontextprotocol#697
    
    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    ashakirin authored Apr 13, 2026
    Configuration menu
    Copy the full SHA
    d182338 View commit details
    Browse the repository at this point in the history
Loading