csharp-sdk/tests/ModelContextProtocol.Tests/Server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Toub 848c9df433
Allow notification handlers post-creation temporary registration (#223)
- We still allow notification handlers to be configured pre-creation, eliminating any race conditions that may result from missed notifications. But now we also allow for post-creation notification handler registration.
- Handlers may now also be removed. This permits temporary registrations that may be created in a scoped manner.
- Registration handling is thread-safe.
- Handlers are now cancelable.
- Exceptions from notification handlers trigger all normal exception handling in the dispatch pipeline.

This also:
- Adds a WithStreamServerTransport as a counterpart to WithStdioServerTransport. The latter was used in several tests in a hacky way, and that's now simplified via the former's existence.
2025-04-06 21:17:00 -04:00
..
McpServerDelegatesTests.cs Add initial support for Resource Templates (#18) 2025-03-21 14:09:45 -04:00
McpServerFactoryTests.cs Move notification handler registrations to capabilities (#207) 2025-04-04 13:11:07 -04:00
McpServerLoggingLevelTests.cs Add EverythingServer sample (#151) 2025-04-04 11:48:53 -07:00
McpServerPromptTests.cs Add McpServerPrompt / McpClientPrompt and friends (#126) 2025-03-31 09:54:40 -04:00
McpServerResourceTests.cs Consolidate McpClientException/McpServerException into McpException (#209) 2025-04-03 21:10:57 -04:00
McpServerTests.cs Allow notification handlers post-creation temporary registration (#223) 2025-04-06 21:17:00 -04:00
McpServerToolTests.cs Expand a few DI-related tests (#201) 2025-04-03 12:48:23 -04:00