csharp-sdk/tests/ModelContextProtocol.Tests/Protocol
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Copilot 8f2e21d734
Fix: Synthesize handlers for empty tool/prompt/resource collections (#865)
* Initial plan

* Allow handlers for empty tool/prompt/resource collections

Changed condition from `IsEmpty: false` to `not null` check in McpServerImpl.cs for resources (line 298), prompts (line 459), and tools (line 547). This allows handlers to be synthesized even when collections are empty, enabling dynamic addition of items after initialization.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-10-16 09:57:50 -04: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
ElicitationTests.cs Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
ElicitationTypedTests.cs Propagate tool call exceptions through filters (#844) 2025-10-14 19:10:55 -07: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