-
Notifications
You must be signed in to change notification settings - Fork 547
Comparing changes
Open a pull request
base repository: modelcontextprotocol/csharp-sdk
base: v0.1.0-preview.4
head repository: modelcontextprotocol/csharp-sdk
compare: v0.1.0-preview.5
- 20 commits
- 99 files changed
- 11 contributors
Commits on Mar 31, 2025
-
* Use Cache-Control: no-store * Fix AspNetCore README * remove and sort
Configuration menu - View commit details
-
Copy full SHA for ce89fa0 - Browse repository at this point
Copy the full SHA ce89fa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 065e3c6 - Browse repository at this point
Copy the full SHA 065e3c6View commit details -
Put MapMcp in Microsoft.AspNetCore.Builder namespace (#171)
* Still dispose McpSession when MessageProcessingTask throws non-OCE exceptions * Put MapMcp in icrosoft.AspNetCore.Builder namespace
Configuration menu - View commit details
-
Copy full SHA for 57a526e - Browse repository at this point
Copy the full SHA 57a526eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96fa96c - Browse repository at this point
Copy the full SHA 96fa96cView commit details
Commits on Apr 1, 2025
-
Fixing WithPromptsFromAssembly (#174)
* Fixing WithPromptsFromAssembly Was looking for tools * Fixing test
Configuration menu - View commit details
-
Copy full SHA for b9bb871 - Browse repository at this point
Copy the full SHA b9bb871View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19eed91 - Browse repository at this point
Copy the full SHA 19eed91View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8dc1f5d - Browse repository at this point
Copy the full SHA 8dc1f5dView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b12d728 - Browse repository at this point
Copy the full SHA b12d728View commit details -
Extend progress notification support (#163)
* Extend progress notification support * Address feedback and fix test --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 25bcb44 - Browse repository at this point
Copy the full SHA 25bcb44View commit details
Commits on Apr 2, 2025
-
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
Configuration menu - View commit details
-
Copy full SHA for 674cb15 - Browse repository at this point
Copy the full SHA 674cb15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b38d3e - Browse repository at this point
Copy the full SHA 4b38d3eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f1af251 - Browse repository at this point
Copy the full SHA f1af251View commit details -
Write "event: message" to SSE response (#192)
* Write "event: message" to SSE response * Rename McpJsonRpcEndpoint to McpEndpoint * Remove unused McpServerConfig.Arguments property
Configuration menu - View commit details
-
Copy full SHA for 9b4db35 - Browse repository at this point
Copy the full SHA 9b4db35View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 9302466 - Browse repository at this point
Copy the full SHA 9302466View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ecb6bc - Browse repository at this point
Copy the full SHA 4ecb6bcView commit details
Commits on Apr 3, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a04cf6a - Browse repository at this point
Copy the full SHA a04cf6aView commit details -
Hardcode the source generator in one remaining location and simplify …
…McpJsonUtilities. (#204)
Configuration menu - View commit details
-
Copy full SHA for 1c145a5 - Browse repository at this point
Copy the full SHA 1c145a5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c452dc8 - Browse repository at this point
Copy the full SHA c452dc8View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for f652b1a - Browse repository at this point
Copy the full SHA f652b1aView commit details -
[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>
Configuration menu - View commit details
-
Copy full SHA for c70dde3 - Browse repository at this point
Copy the full SHA c70dde3View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.1.0-preview.4...v0.1.0-preview.5