csharp-sdk/tests/ModelContextProtocol.Tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Toub d21d933876
Move notification handler registrations to capabilities (#207)
* Move notification handler registrations to capabilities

Currently request handlers are set on the capability objects, but notification handlers are set after construction via an AddNotificationHandler method on the IMcpEndpoint interface. This moves handler specification to be at construction as well. This makes it more consistent with request handlers, simplifies the IMcpEndpoint interface to just be about message sending, and avoids a concurrency bug that could occur if someone tried to add a handler while the endpoint was processing notifications.

* Address more feedback and further cleanup
2025-04-04 13:11:07 -04:00
..
Client Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
Configuration Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
Protocol Add initial Activity / Metric support (#183) 2025-04-02 11:09:05 -04:00
Server Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
Transport Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
Utils Reduce dependencies to 8.x versions of packages (#195) 2025-04-03 14:01:46 -04:00
ClientIntegrationTestFixture.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
ClientIntegrationTests.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
DiagnosticTests.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
EverythingSseServerFixture.cs Refactor transports to help enable graceful shutdown (#142) 2025-03-30 17:10:14 -07:00
GlobalUsings.cs Rename project and namespaces 2025-03-19 15:02:38 +02:00
McpJsonUtilitiesTests.cs Hardcode the source generator in one remaining location and simplify McpJsonUtilities. (#204) 2025-04-03 13:42:42 -04:00
ModelContextProtocol.Tests.csproj Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
SseIntegrationTests.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
SseServerIntegrationTestFixture.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
SseServerIntegrationTests.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
TestAttributes.cs Add initial Activity / Metric support (#183) 2025-04-02 11:09:05 -04:00