csharp-sdk/tests/ModelContextProtocol.Tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
Client Implement SEP-973: Icons and metadata support for Implementations, Resources, Tools, and Prompts (#802) 2025-10-08 12:23:01 -07:00
Configuration Fix regression matching templated McpServerResources (#897) 2025-10-20 11:13:37 -07:00
Protocol Add default value support for all primitive types in elicitation schemas (SEP-1034) (#924) 2025-10-31 08:01:55 +02:00
Server Fix regression matching templated McpServerResources (#897) 2025-10-20 11:13:37 -07:00
Transport Fix stdio client transport CLI argument escaping. (#811) 2025-09-25 14:46:39 +03:00
AIContentExtensionsTests.cs Add CallToolResult.ToChatMessage extension method (#575) 2025-07-01 07:09:49 -04:00
ClientIntegrationTestFixture.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
ClientIntegrationTests.cs Propagate tool call exceptions through filters (#844) 2025-10-14 19:10:55 -07:00
ClientServerTestBase.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
DiagnosticTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
DockerEverythingServerTests.cs Decouple Handlers and Collections from protocol types (#765) 2025-09-24 09:42:03 -05:00
EverythingSseServerFixture.cs Enable netfx testing. (#588) 2025-07-08 18:50:37 +03:00
GlobalUsings.cs Enable netfx testing. (#588) 2025-07-08 18:50:37 +03:00
McpEndpointExtensionsTests.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
McpJsonUtilitiesTests.cs Fix NotSupportedException when returning IEnumerable<ContentBlock> (#675) 2025-08-05 14:36:11 -07:00
ModelContextProtocol.Tests.csproj Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
PlatformDetection.cs Fix stdio client transport CLI argument escaping. (#811) 2025-09-25 14:46:39 +03:00
StdioServerIntegrationTests.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
TestAttributes.cs Add initial Activity / Metric support (#183) 2025-04-02 11:09:05 -04:00