csharp-sdk/tests/ModelContextProtocol.TestSseServer
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
..
Properties Add ModelContextProtocol.AspNetCore (#160) 2025-03-31 12:01:04 -07:00
ModelContextProtocol.TestSseServer.csproj Reduce dependencies to 8.x versions of packages (#195) 2025-04-03 14:01:46 -04:00
Program.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00