csharp-sdk/tests/ModelContextProtocol.Tests
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
..
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: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
Protocol Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04:00
Server Fix: Synthesize handlers for empty tool/prompt/resource collections (#865) 2025-10-16 09:57:50 -04: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