csharp-sdk/tests/ModelContextProtocol.Tests/Protocol
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
..
CancellationTests.cs Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
ContentBlockTests.cs Fix ResourceLinkBlock deserialization by adding missing "name" case (#645) 2025-07-23 19:52:45 +03:00
ElicitationDefaultValuesTests.cs Add default value support for all primitive types in elicitation schemas (SEP-1034) (#924) 2025-10-31 08:01:55 +02:00
ElicitationTests.cs Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
ElicitationTypedTests.cs Add default value support for all primitive types in elicitation schemas (SEP-1034) (#924) 2025-10-31 08:01:55 +02:00
IconTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
ImplementationTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
NotificationHandlerTests.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
PromptTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
ProtocolTypeTests.cs Clean up namespaces (#410) 2025-05-14 14:50:26 -04:00
RequestIdTests.cs Clean up namespaces (#410) 2025-05-14 14:50:26 -04:00
ResourceTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00
ToolTests.cs Add net10.0 assets and run some fixers (#875) 2025-10-15 15:27:43 -04:00