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/swift-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.8.2
Choose a base ref
...
head repository: modelcontextprotocol/swift-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.9.0
Choose a head ref
  • 7 commits
  • 18 files changed
  • 1 contributor

Commits on May 7, 2025

  1. Improve NetworkTransport and add test coverage (#108)

    * Improve NetworkTransport and add test coverage
    
    * Remove the weakTransport check since actors have special memory management rules
    
    * Use Task.sleep(for:) consistently
    
    * Always start connection in connect
    
    * Run NetworkTransportTests serially
    mattt authored May 7, 2025
    Configuration menu
    Copy the full SHA
    87f33d0 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2025

  1. Prevent double continuation resumption in client (#113)

    * Prevent double continuation resumption in client
    
    Consolidate request removal and continuation resumption logic to ensure each request's continuation is resumed exactly once, preventing "SWIFT TASK CONTINUATION MISUSE" errors during network failures.
    
    * Fix race condition test
    mattt authored May 26, 2025
    Configuration menu
    Copy the full SHA
    fec680a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ddde66d View commit details
    Browse the repository at this point in the history
  3. Add support for sampling (#119)

    * Add UnitInterval type
    
    * Add test coverage for UnitInterval
    
    * Add support for sampling
    
    * Add integration tests for sampling
    mattt authored May 26, 2025
    Configuration menu
    Copy the full SHA
    fac4df6 View commit details
    Browse the repository at this point in the history
  4. Improve ergonomics of prompt and sampling message initialization (#120)

    * Improve ergonomics of prompt and sampling message initialization
    
    * Deprecate previous / existing Message initializers
    mattt authored May 26, 2025
    Configuration menu
    Copy the full SHA
    3b505ee View commit details
    Browse the repository at this point in the history
  5. Update Client.connect(transport:) to automatically send `initialize…

    …` request (#100)
    
    * Update Client to automatically call initialize in connect
    
    * Make Client.connect(transport:) return value discardable
    
    * Fix example usage in README
    
    * Update example code in transports to remove initialize call
    
    * Deprecate initialize method
    
    * Update tests
    
    * Update README
    
    * Fix sampling tests
    
    * Fix race condition tests
    mattt authored May 26, 2025
    Configuration menu
    Copy the full SHA
    a59b50b View commit details
    Browse the repository at this point in the history
  6. Bump version to 0.9.0

    mattt committed May 26, 2025
    Configuration menu
    Copy the full SHA
    9742933 View commit details
    Browse the repository at this point in the history
Loading