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/csharp-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0-preview.4
Choose a base ref
...
head repository: modelcontextprotocol/csharp-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.0-preview.5
Choose a head ref
  • 20 commits
  • 99 files changed
  • 11 contributors

Commits on Mar 31, 2025

  1. Fix AspNetCore README (#170)

    * Use Cache-Control: no-store
    
    * Fix AspNetCore README
    
    * remove and sort
    halter73 authored Mar 31, 2025
    Configuration menu
    Copy the full SHA
    ce89fa0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    065e3c6 View commit details
    Browse the repository at this point in the history
  3. Put MapMcp in Microsoft.AspNetCore.Builder namespace (#171)

    * Still dispose McpSession when MessageProcessingTask throws non-OCE exceptions
    
    * Put MapMcp in icrosoft.AspNetCore.Builder namespace
    halter73 authored Mar 31, 2025
    Configuration menu
    Copy the full SHA
    57a526e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    96fa96c View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2025

  1. Fixing WithPromptsFromAssembly (#174)

    * Fixing WithPromptsFromAssembly
    
    Was looking for tools
    
    * Fixing test
    aaronpowell authored Apr 1, 2025
    Configuration menu
    Copy the full SHA
    b9bb871 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19eed91 View commit details
    Browse the repository at this point in the history
  3. Configure hosted stdio servers to log to stderr (#173)

    * Configure hosted stdio servers to log to stderr
    
    * Fix newline
    
    * Use CreateApplicationBuilder where possible
    
    * Address PR feedback
    halter73 authored Apr 1, 2025
    Configuration menu
    Copy the full SHA
    8dc1f5d View commit details
    Browse the repository at this point in the history
  4. Fix pagination handling in McpServer (#177)

    - We were adding tools/prompts from the collections on every request. If multiple requests came in with different cursors, we'd re-add the same tools each time.
    - We were defeating the purpose of pagination by doing all of the aggregation in the server. If a custom handler returns a paginated result, we should instead propagate that back to the client, who can choose to get more results when needed.
    stephentoub authored Apr 1, 2025
    Configuration menu
    Copy the full SHA
    b12d728 View commit details
    Browse the repository at this point in the history
  5. Extend progress notification support (#163)

    * Extend progress notification support
    
    * Address feedback and fix test
    
    ---------
    
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    Tyler-R-Kendrick and stephentoub authored Apr 1, 2025
    Configuration menu
    Copy the full SHA
    25bcb44 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2025

  1. Make supposedly unreachable code less reachable (#178)

    * Move WriteJsonRpcMessageToBuffer to method
    
    * Fix indentation in McpClient
    
    * Make supposedly unreachable code less reachable
    
    * Guard against multiple RunAsync calls
    
    * Move RunAsync inside of Try in MapMcp
    halter73 authored Apr 2, 2025
    Configuration menu
    Copy the full SHA
    674cb15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b38d3e View commit details
    Browse the repository at this point in the history
  3. Allow JsonSerializerOptions parameters for user-defined and inputs an…

    …d hardcode everything else to the source generator. (#182)
    
    * Allow user-defined JsonSerializerOptions for user-defined and inputs and hardcode everything else to the source generator.
    
    * Add validation for user-defined JsonSerializerOptions.
    
    * Remove out of date comment.
    
    * Address feedback and add tests
    eiriktsarpalis authored Apr 2, 2025
    Configuration menu
    Copy the full SHA
    f1af251 View commit details
    Browse the repository at this point in the history
  4. Write "event: message" to SSE response (#192)

    * Write "event: message" to SSE response
    * Rename McpJsonRpcEndpoint to McpEndpoint
    * Remove unused McpServerConfig.Arguments property
    halter73 authored Apr 2, 2025
    Configuration menu
    Copy the full SHA
    9b4db35 View commit details
    Browse the repository at this point in the history
  5. Changed the name of the ActivitySource and Metric to clarify that the…

    … semantic conventions have not been ratified yet. (#194)
    
    * Changed the name of the ActivitySource and Metric to clarify that the semantic conventions have not been ratified yet.
    
    * Update src/ModelContextProtocol/Diagnostics.cs
    
    ---------
    
    Co-authored-by: Sam Spencer <samsp@microsoft.com>
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    3 people authored Apr 2, 2025
    Configuration menu
    Copy the full SHA
    9302466 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4ecb6bc View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2025

  1. Configuration menu
    Copy the full SHA
    a04cf6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c145a5 View commit details
    Browse the repository at this point in the history
  3. Reduce dependencies to 8.x versions of packages (#195)

    * Reduce dependencies to 8.x versions of packages
    
    When building for netstandard2.0 or net8.0, the ModelContextProtocol library now only depends on 8.x versions of nuget packages, rather than using the newer 9.x versions. The exception to this are packages that don't have 8.x versions.
    
    This also introduces a net9.0 tfm. When building for net9.0, it'll use 9.x versions of packages.
    
    The PR temporarily removes the Microsoft.Extensions.AI.nupkg reference (the Microsoft.Extensions.AI.Abstractions reference is still very much there). The latest Microsoft.Extensions.AI package on nuget has a System.Text.Json 9.x reference, but the next build to be published drops that down to 8.x as well. Once that build is published, the dependency will be added back, and temporary polyfills (in particular TemporaryAIFunctionFactory) will be deleted.
    
    * Fix StdioClientSessionTransport shutdown
    
    StreamClientSessionTransport's ReadMessageAsync method does await CleanupAsync in its finally. CleanupAsync awaits _readTask. _readTask _is_ ReadMessageAsync. So it's waiting for itself to complete, which will then always timeout. We may want to refactor how this works more in the future, but for now, make sure it doesn't wait for itself.
    
    * Fix dangling requests when server unexpectedly shuts down
    
    If the client makes a request to the server and while waiting for the response the server shuts down, the client hangs. Make sure that when the client's message loops ends due to the server's output it's reading from ends, any pending requests are notified.
    
    * Add net9.0 testing
    
    * Avoid docker port conflicts from test suites running concurrently
    stephentoub authored Apr 3, 2025
    Configuration menu
    Copy the full SHA
    c452dc8 View commit details
    Browse the repository at this point in the history
  4. Mark samples as AOT compatible (#184)

    * Revert changes to remove APIs
    
    * Apply suggestions from code review
    
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    
    ---------
    
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    agocke and stephentoub authored Apr 3, 2025
    Configuration menu
    Copy the full SHA
    f652b1a View commit details
    Browse the repository at this point in the history
  5. [UnitTests] Add more UTs (#139)

    * + Tests for McpClientExtensions code
    
    * + code coverage for ClientOptions/Capabilities code
    
    ---------
    
    Co-authored-by: Esteban Solano <estebanso@microsoft.com>
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    3 people authored Apr 3, 2025
    Configuration menu
    Copy the full SHA
    c70dde3 View commit details
    Browse the repository at this point in the history
Loading