Commit graph

415 commits

Author SHA1 Message Date
Stephen Halter
7f25ae9d2a
Add ability for client to resume session (#1029) v0.4.1-preview.1 2025-11-25 14:31:10 -08:00
Jeff Handley
979befdd14
Bump version to 0.4.1-preview.1 (#1031) 2025-11-25 14:29:14 -08:00
Genevieve Warren
e2a802ebdc
Writing style edits (#1024) 2025-11-25 16:27:39 -05:00
Manuel Naujoks
820821fa0c
Tokens can be cached beyond the lifetime of the (http) transport. (#834) 2025-11-24 17:56:56 -08:00
Copilot
e6db415940
Fix race condition in StdioClientTransport on .NET Framework (#996)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-11-24 17:42:16 +02:00
Eirik Tsarpalis
a9427f9f12
Tweak the file-based MCP server sample (#1019) 2025-11-24 16:42:20 +02: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
Copilot
50370b76a3
Add Microsoft.CodeAnalysis.* to dependabot ignore list (#1009)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
2025-11-21 19:34:54 +02:00
Youssef Victor
c94cb895a7
Revert "Revert "Update to MTP"" (#990) 2025-11-21 15:28:42 +02:00
Copilot
a559bfb891
Use JsonElement.Parse for string-to-JsonElement deserialization (#1002)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
2025-11-21 11:00:11 +02:00
Jeff Handley
9395394c1b
Address additional feedback on Versioning doc (#999) 2025-11-20 21:59:28 -05:00
Stephen Toub
15139cc569
Add tools support to sampling (#976) 2025-11-20 09:52:23 -05: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
Copilot
83098e7cc0
Implement SEP-1330: Standards-compliant enum schemas for elicitation (#969)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-11-19 22:51:02 -05:00
Copilot
3f39ba7936
Skip flaky test on Mono where stderr callbacks are unsupported (#980)
* Initial plan

* Fix race condition in StdioClientSessionTransport stderr handling

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

* Simplify WaitForExit logic as suggested in code review

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

* Skip flaky test on Mono and revert incorrect fix

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-11-19 22:34:06 -05:00
Jeff Handley
fe1de46764
Introduce versioning, breaking changes, and support document (#986)
* Introduce versioning, breaking changes, and support document

* Use "backward-compatible" and "forward-compatible"

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestions from reviews

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>

* Fix nested ordered list

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
2025-11-19 22:33:31 -05:00
Copilot
2105f6883b
Fix documentation typos and incorrect type references (#993)
* Initial plan

* Fix documentation typos and incorrect type references

Co-authored-by: MackinnonBuck <10456961+MackinnonBuck@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MackinnonBuck <10456961+MackinnonBuck@users.noreply.github.com>
2025-11-19 22:31:28 -05:00
Eric StJohn
bf3dd5e6bc
Fix a couple issues in the client sample readme (#994) 2025-11-19 16:51:49 -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
Mackinnon Buck
d540dc1fb1
Make RequestId non-required (#984) 2025-11-18 16:03:31 -08:00
Eirik Tsarpalis
9e21d3e11d
Remove TODOs related to AllowOutOfOrderMetadataProperty workarounds. (#977) 2025-11-18 20:08:30 +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
dependabot[bot]
97cede3e04
Bump danielpalme/ReportGenerator-GitHub-Action from 5.4.18 to 5.5.0 (#972)
Bumps [danielpalme/ReportGenerator-GitHub-Action](https://github.com/danielpalme/reportgenerator-github-action) from 5.4.18 to 5.5.0.
- [Release notes](https://github.com/danielpalme/reportgenerator-github-action/releases)
- [Commits](https://github.com/danielpalme/reportgenerator-github-action/compare/5.4.18...5.5.0)

---
updated-dependencies:
- dependency-name: danielpalme/ReportGenerator-GitHub-Action
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-18 15:41:13 +02:00
dependabot[bot]
64ece67b53
Bump actions/checkout from 5.0.0 to 5.0.1 (#973)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v5.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-18 15:40:48 +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 Halter
b9c9f44e06
Fix tests in Dev Container (#965) 2025-11-17 11:48:18 -05:00
Copilot
00bb5b2678
Add Description property to Implementation type per MCP spec (#966)
* Initial plan

* Add Description property to Implementation type

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

* Add test to validate client Description from server perspective

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>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-11-17 10:42:40 -05:00
Copilot
4b241e7ddc
Align error handling documentation with SEP-1303 (#967)
* Initial plan

* Update documentation to clarify error handling per SEP-1303

- Updated McpErrorCode.InvalidParams documentation to clarify it's for protocol-level errors (malformed requests, unknown primitives)
- Updated CallToolResult documentation to distinguish between tool execution errors and protocol errors
- Updated McpProtocolException documentation to emphasize it's only for protocol-level errors
- Added test to verify input validation errors are returned as tool execution errors (IsError=true)
- Implementation already correctly handles input validation as tool execution errors per SEP-1303

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-11-17 10:01:30 -05:00
Peder Holdgaard Pedersen
54576033eb
Add file-based MCP server sample for .NET 10 (#3) (#931) 2025-11-12 12:59:14 -08:00
Eirik Tsarpalis
a609aa295e
Remove prerelease requirement from global.json (#961) 2025-11-12 19:29:29 +02:00
Stephen Toub
b993ae0e61
Update to .NET 10.x packages (#957) 2025-11-12 14:14:40 +01:00
Jeff Handley
d4ee78797b
Ignore unexpected properties when deserializing a ContentBlock (#956)
* Ignore unexpected properties when deserializing a ContentBlock

* Fix deserialization of Reference.Title and more bugs for unknown props

* Remove comments about skipping additional properties
2025-11-09 01:00:55 -08: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
b90f17bccb
Add public constructors to McpClient types for reusing cached definitions (#938)
* Initial plan

* Add public constructor to McpClientTool for reusing tool definitions

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

* Fix McpClientTool constructor per review feedback

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>

* Add public constructors for McpClientPrompt, McpClientResource, and McpClientResourceTemplate

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-11-06 13:59:17 -05:00
Peder Holdgaard Pedersen
baa7d6e320
Update ModelId in ChatOptions to new version (#926) 2025-11-06 10:58:01 -08:00
Stephen Toub
5fc50fb528
Implement SEP-986: Specify Format for Tool Names (#945)
We can add static analysis to provide compile-time diagnostics later, once the analyzers project is merged. For now, this adds run-time validation.
2025-11-06 08:45:02 -05:00
Mackinnon Buck
121929da36
Audit protocol types (#892) 2025-11-04 15:41:10 -08:00
Copilot
66c084c795
Add default value support for all primitive types in elicitation schemas (SEP-1034) (#924)
* Initial plan

* Add SEP-1034 support for default values in all primitive schema types

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Address PR feedback: convert if-else to switch and add default value mapping tests

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Remove default value extraction code and linker annotations per feedback

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Use literal true/false values instead of GetBoolean() call

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Reinstate tests and fix CreatePrimitiveSchema to extract defaults from AttributeProvider

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Remove manual default extraction and update test to use positional record

Removed the manual default value extraction code from BuildRequestSchema
and SetDefaultValue helper as this should be handled by AIJsonUtilities.
Updated FormWithDefaults to be a positional record with optional parameters.
Test is now skipped until AIJsonUtilities supports extracting defaults from
optional parameters.

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

* Use 'is not null' pattern for consistency with nullable checks

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
2025-10-31 08:01:55 +02:00
Eduardo Monteiro de Barros
017981f27d
fixed donet version from 10.0.100-rc.1.25451.107 to 10.0.100-rc.2 (#927)
* fixed donet version from 10.0.100-rc.1.25451.107 to 10.0.100-rc.2

* Apply suggestion from @eiriktsarpalis

* Apply suggestion from @eiriktsarpalis

* Apply suggestion from @eiriktsarpalis

---------

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2025-10-31 07:53:44 +02:00
dependabot[bot]
90a2d3489c
Bump actions/download-artifact from 5.0.0 to 6.0.0 (#919)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](634f93cb29...018cc2cf5b)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 13:59:36 +02:00
dependabot[bot]
45f3b50bbd
Bump actions/upload-artifact from 4.6.2 to 5.0.0 (#918)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 5.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](ea165f8d65...330a01c490)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 13:59:24 +02:00
dependabot[bot]
cac4e6ea1d
Bump danielpalme/ReportGenerator-GitHub-Action from 5.4.17 to 5.4.18 (#920)
Bumps [danielpalme/ReportGenerator-GitHub-Action](https://github.com/danielpalme/reportgenerator-github-action) from 5.4.17 to 5.4.18.
- [Release notes](https://github.com/danielpalme/reportgenerator-github-action/releases)
- [Commits](https://github.com/danielpalme/reportgenerator-github-action/compare/5.4.17...5.4.18)

---
updated-dependencies:
- dependency-name: danielpalme/ReportGenerator-GitHub-Action
  dependency-version: 5.4.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 13:58:56 +02:00
Eirik Tsarpalis
8beafedddb
Update to .NET SDK to 10.rc2 (#883)
* Update to .NET SDK to 10.rc2

* Tweak Makefile

* Update docfx
2025-10-24 19:25:17 +03: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
Jeff Handley
7e0c0f0860
Bump to 0.4.0-preview.4 (#904) 2025-10-20 13:08:33 -07:00
Jeff Handley
2da929914c
Update download-artifact path reference (#905) v0.4.0-preview.3 2025-10-20 12:57:38 -07:00