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: modelcontextprotocol/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: 0.12.x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 23 files changed
  • 4 contributors

Commits on Sep 4, 2025

  1. Release version 0.12.0

    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov committed Sep 4, 2025
    Configuration menu
    Copy the full SHA
    a184a62 View commit details
    Browse the repository at this point in the history
  2. Next development version

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

Commits on Sep 8, 2025

  1. fix: Skip structured output validation for error tool results

    This ensures that when a tool handler returns an error result, the structured
    output schema validation is skipped, preventing validation failures on error
    responses that don't conform to the expected output schema.
    
    - Add validation bypass when CallToolResult.isError() is true in async/stateless servers
    - Fix async tool handler chaining to properly use then() instead of block()
    - Add comprehensive tests for structured output with in-handler errors
    - Improve error handling to use proper JSON-RPC error codes for unknown tools
    - Add findRootCause utility method for better error diagnostics
    - Increase test timeouts for stability in StdioMcp client tests. These tests use npx
      to download and run the MCP "everything" server locally. The first
      test execution will download the everything server scripts and cache them locally,
      which can take more than 15 seconds. Subsequent test runs will use the cached version
      and execute faster.
    
    Resolves #538
    Related to #422
    
    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov committed Sep 8, 2025
    Configuration menu
    Copy the full SHA
    210a813 View commit details
    Browse the repository at this point in the history
  2. fix: Add null check for response ID to prevent memory leaks

    - Check if response.id() is not null before processing in MCP session classes
    - Log error when MCP response lacks session ID to warn about potential memory leaks
    - Improve error handling in McpStreamableServerSession with proper error codes
    
    The missing null check could lead to memory leaks as pending requests
    would never be completed when responses lack session IDs. This fix ensures
    proper handling of such cases with appropriate error logging.
    
    Resolves #506
    
    Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
    quaff authored and tzolov committed Sep 8, 2025
    Configuration menu
    Copy the full SHA
    e94a93a View commit details
    Browse the repository at this point in the history
  3. Release version 0.12.1

    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov committed Sep 8, 2025
    Configuration menu
    Copy the full SHA
    e4c1931 View commit details
    Browse the repository at this point in the history
  4. Next development version

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

Commits on Sep 12, 2025

  1. LifecycleInitializer recovers from init failures (#549)

    Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
    Kehrlann authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    71f318e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2025

  1. fix: Add JsonInclude annotation to notification records for proper se…

    …rialization (#552)
    
    Add @JsonInclude(JsonInclude.Include.NON_ABSENT) to ResourcesUpdatedNotification
      and to LoggingMessageNotification
    
    This ensures that absent (null/Optional.empty()) fields are excluded from JSON
    serialization, preventing potential serialization issues with these MCP notification types.
    
    Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
    tzolov committed Sep 14, 2025
    Configuration menu
    Copy the full SHA
    6cdf1b1 View commit details
    Browse the repository at this point in the history
Loading