Copilot
cd1052be81
Update Microsoft.Extensions.AI dependencies to 10.1.0 ( #1082 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-12-10 16:18:33 +02:00
Copilot
f9239b0fb7
Migrate from Anthropic.SDK to official Anthropic package ( #1083 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-12-10 08:58:41 -05:00
dependabot[bot]
5385c0de67
Bump the testing-frameworks group with 1 update ( #1044 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 15:45:22 -05:00
dependabot[bot]
ddd5b01d0d
Bump the serilog-testing group with 1 update ( #1046 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 15:44:39 -05:00
dependabot[bot]
6030a9198e
Bump the serilog-testing group with 1 update ( #1014 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-22 08:53:18 +02:00
dependabot[bot]
3468ff7c49
Bump the testing-frameworks group with 3 updates ( #1013 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-22 08:53:03 +02:00
Stephen Halter
707c083c65
Revert "Update to MTP ( #958 )" ( #1011 )
2025-11-21 14:53:16 -08:00
Youssef Victor
c94cb895a7
Revert "Revert "Update to MTP"" ( #990 )
2025-11-21 15:28:42 +02:00
Copilot
ad86b53347
Add production-ready incremental source generator for automatic Description attributes from XML comments ( #899 )
...
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-11-20 09:14:17 -05:00
dependabot[bot]
4b132dc7d1
Bump the testing-frameworks group with 3 updates ( #991 )
...
Bumps Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.1
Bumps xunit.runner.visualstudio from 3.1.4 to 3.1.5
Bumps xunit.v3 from 3.0.1 to 3.2.0
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
dependency-version: 18.0.1
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: testing-frameworks
- dependency-name: xunit.runner.visualstudio
dependency-version: 3.1.5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: testing-frameworks
- dependency-name: xunit.v3
dependency-version: 3.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: testing-frameworks
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-19 20:19:36 +02:00
dependabot[bot]
c87edcf8ee
Bump the serilog-testing group with 2 updates ( #992 )
...
Bumps Serilog.Extensions.Logging from 9.0.1 to 9.0.2
Bumps Serilog.Sinks.Console from 6.0.0 to 6.1.1
---
updated-dependencies:
- dependency-name: Serilog.Extensions.Logging
dependency-version: 9.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: serilog-testing
- dependency-name: Serilog.Sinks.Console
dependency-version: 6.1.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: serilog-testing
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-19 20:17:30 +02:00
Eirik Tsarpalis
bf0a65b3e3
Revert "Update to MTP ( #958 )" ( #989 )
...
This reverts commit 7080e3a621 .
2025-11-19 18:48:33 +02:00
dependabot[bot]
1bef31f66c
Bump the opentelemetry-testing group with 6 updates ( #974 )
...
Bumps OpenTelemetry from 1.12.0 to 1.14.0
Bumps OpenTelemetry.Exporter.InMemory from 1.12.0 to 1.14.0
Bumps OpenTelemetry.Exporter.OpenTelemetryProtocol from 1.13.1 to 1.14.0
Bumps OpenTelemetry.Extensions.Hosting from 1.13.1 to 1.14.0
Bumps OpenTelemetry.Instrumentation.AspNetCore from 1.12.0 to 1.14.0
Bumps OpenTelemetry.Instrumentation.Http from 1.12.0 to 1.14.0
---
updated-dependencies:
- dependency-name: OpenTelemetry
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Exporter.InMemory
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Exporter.OpenTelemetryProtocol
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Extensions.Hosting
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Instrumentation.AspNetCore
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Instrumentation.Http
dependency-version: 1.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-18 17:20:23 +02:00
Youssef Victor
7080e3a621
Update to MTP ( #958 )
...
* Update to MTP
* Drop GitHubActionsTestLogger, better test output, and update dependabot.yml
* Keep cobertura
* Fix Makefile
2025-11-18 15:06:09 +02:00
Stephen Toub
b993ae0e61
Update to .NET 10.x packages ( #957 )
2025-11-12 14:14:40 +01:00
Stephen Toub
98a0261585
Tweak how McpClientTool.InvokeAsync exposes some content ( #941 )
...
Rather than always serializing to a JsonElement, which IChatClients that consume the tool won't be able to reason about, convert the content into AIContents that they can reason about.
2025-11-06 21:47:19 -05:00
Copilot
47c6775377
Update Microsoft.Extensions.AI packages to version 9.10.1 ( #916 )
...
* Initial plan
* Update Microsoft.Extensions.AI packages to latest versions (9.10.1)
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-10-23 07:58:22 -04:00
dependabot[bot]
f8f8ce95ce
Bump the opentelemetry-testing group with 2 updates ( #901 )
...
Bumps OpenTelemetry.Exporter.OpenTelemetryProtocol from 1.12.0 to 1.13.1
Bumps OpenTelemetry.Extensions.Hosting from 1.12.0 to 1.13.1
---
updated-dependencies:
- dependency-name: OpenTelemetry.Exporter.OpenTelemetryProtocol
dependency-version: 1.13.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
- dependency-name: OpenTelemetry.Extensions.Hosting
dependency-version: 1.13.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry-testing
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-20 13:19:08 +03:00
Stephen Toub
bfc0980ef5
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
Eirik Tsarpalis
7628b3064f
Onboard repo to the .NET 10 sdk ( #822 )
...
* Onboard repo to the .NET 10 sdk
* Remove redundant property.
* Remove console logger
* Disabling failing tests in .NET 10.
2025-09-30 20:36:12 +03:00
Stephen Toub
6cb9e0e1fe
Bump M.E.AI version ( #817 )
2025-09-25 16:27:59 +03:00
Eirik Tsarpalis
ab6d3e1ac5
Update MEAI dependencies. ( #801 )
2025-09-19 17:36:12 +03:00
Eirik Tsarpalis
f2dc714cd5
Update packages and Infra ( #732 )
...
* Update packages and Infra
* Update Directory.Packages.props
* Update Directory.Packages.props
* Install mono on macos gh-actions machines
* Skip failing test
* Attempt to fix failing macos test.
2025-08-26 17:28:35 +03:00
Eirik Tsarpalis
3156818d66
Update MEAI version and add regression test for #601 . ( #628 )
2025-07-16 16:17:49 +03:00
Stephen Toub
1232456153
Update to M.E.AI 9.7.0 ( #602 )
2025-07-09 23:41:57 -04:00
Eirik Tsarpalis
aa75f6f37e
Enable netfx testing. ( #588 )
...
* Enable netfx testing.
* Skip impacted tests and re-enable netfx testing.
* Remove redundant comment.
* Remove unnecessary project configuration.
* Simplify test server copying.
2025-07-08 18:50:37 +03:00
Den Delimarsky 🌺
cdf88e7f5d
Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration) ( #377 )
2025-07-03 14:39:28 -07:00
rokenbuzz
fc293429f9
Removed space ( #563 )
...
PackageVersion for OpenTelemetry.Instrumentation.Http had trailing space causing error noticed in Visual Studio build
Co-authored-by: Buzz Weetman <rweetman@2touchpos.com>
2025-06-30 10:58:52 -04:00
Sven Boemer
28d65470f4
Update Microsoft.Extensions.AI version & expose JSON configuration on McpServerResourceCreateOptions ( #511 )
...
* Update Microsoft.Extensions.AI version
* Update Microsoft.Extensions.AI.OpenAI
* Fix failing tests; add JSON configuration options to McpServerResourceCreateOptions.
* Replace temporary code with `AIFunction.ReturnJsonSchema`
---------
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2025-06-13 13:50:14 +01:00
Eirik Tsarpalis
fa017c04c3
Add structured output/output schema support for server-side tools. ( #480 )
...
* Add structured output/output schema support for server-side tools.
* Address feedback.
* Add McpServerToolAttribute.UseStructuredContent
---------
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-06-06 00:20:12 -07:00
Stephen Halter
703b0fe50b
Add ModelContextProtocol.Core package ( #428 )
2025-06-02 15:16:45 -07:00
Stephen Toub
57458241b9
Update dependency versions ( #474 )
2025-05-31 06:07:40 -04:00
Andy Gocke
849809771d
Serilog AOT has been fixed as of 4.3.0 ( #434 )
...
See https://github.com/serilog/serilog/releases/tag/v4.3.0
2025-05-19 11:57:55 +03:00
Stephen Toub
2bbfab1789
Update to stable M.E.AI :) ( #421 )
2025-05-16 00:31:17 -04:00
Stephen Toub
ca3a8ab921
Update M.E.AI.Abstractions to 9.5.0-preview.1.25262.9 ( #412 )
2025-05-14 13:24:24 +03:00
Stephen Toub
61092e0266
Update to latest M.E.AI version ( #401 )
2025-05-10 07:53:04 -04:00
Stephen Toub
b743889987
Update System and M.E.AI dependencies ( #374 )
2025-05-01 11:25:17 -04:00
Stephen Halter
e3ff552824
Improve testing for StreamableHttpHandler and IdleTrackingBackgroundService ( #345 )
...
* Add idle session pruning tests
* Remove redundant CTS from StreamableHttpHandler
* StreamableHttpServerTransport.HandlePostRequest already creates the equivelant CTS
which DeleteRequest_CompletesSession_WhichCancelsLongRunningToolCalls verifies
* Fix accept header validation for GET
* Use InvalidOperationException for transport-not-connected errors in doc comments
* Fix flaky Cancellation_ThrowsCancellationException test
2025-04-24 10:49:02 -07:00
Liudmila Molkova
d6cc65aced
OpenTelemetry: context propagation and semconv update ( #262 )
2025-04-12 22:12:11 -04:00
Eirik Tsarpalis
39ab6cde0d
Separate ASP.NET Core tests into a distinct project and make the main test project netfx compatible. ( #254 )
...
* Separate ASP.NET Core tests into a distinct project and make the main test project netfx compatible.
* Fix merge conflicts.
* Update tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj
Co-authored-by: Stephen Halter <halter73@gmail.com>
* Revert "Fix merge conflicts."
This reverts commit 852169b96786bad2144795540fa164e20b4b197e.
* Fix merge conflicts
---------
Co-authored-by: Stephen Halter <halter73@gmail.com>
2025-04-09 19:16:53 +01:00
Stephen Toub
0c502c43af
Update M.E.AI to latest version ( #241 )
...
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2025-04-09 09:03:24 +01:00
Eirik Tsarpalis
ac0bc3a1f1
Bump xunit.v3 to 2.0.0 ( #231 )
2025-04-07 14:46:24 -04:00
Stephen Toub
c452dc8e26
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
2025-04-03 14:01:46 -04:00
Stephen Toub
4b38d3e71b
Add initial Activity / Metric support ( #183 )
2025-04-02 11:09:05 -04:00
Aaron Powell
5171ccc3c3
Samples for quickstart docs ( #104 )
...
* Server quickstart for docs
* WIP
* Client quickstart for docs
* Code review feedback
* Fixing anthropic SDK and improving the prompting
* Little cleanup
* Code review feedback
2025-03-26 22:30:19 -04:00
Stephen Halter
a9175f0917
Add gitattributes ( #98 )
2025-03-25 18:57:01 -07:00
Aaron Powell
1f8ebee742
Adding code coverage to tests in workflow ( #75 )
...
* Adding code coverage to tests in workflow
This is using the pattern from the Aspire Community Toolkit which will publish coverage results to the GitHub Actions summary, as well as a comment on the PR (if the job was run by someone with permissions to write comments).
Also added the GitHubActionsTestLogger so that it writes a nicer log out to the run.
Fixes #11
* Feedback from code review
* Slight change to structure
* Bad indentation
* Ensuring .NET SDK is installed
* Disabling fail-fast so that jobs aren't terminated if one fails
* Forgot to include coverlet.collector
* Update Directory.Packages.props
---------
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2025-03-25 15:34:55 +00:00
Stephen Halter
1b1c7fa8ca
Move the SseResponseStreamTransport out of sample ( #47 )
2025-03-21 13:47:29 -07:00
Jeff Handley
e1a5828036
Remove Nerdbank.GitVersioning and set version to 0.1.0-preview ( #52 )
2025-03-21 13:09:58 -07:00
Stephen Toub
27ba8b1b6a
Upgrade to xunit.v3 ( #8 )
...
* Upgrade to xunit.v3
* Use Assert.Skip where applicable.
---------
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2025-03-20 16:19:35 +02:00