The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
by modelcontextprotocolLast 12 weeks · 184 commits
5 of 6 standards met
Do we really need to use the execution context to track the automatic status updates? Any request would be made via the request context. It also seems weird to me that this PR doesn't make any changes to McpSessionHandler. I figured a lot of the task handling would be the same for the client and server, so it makes sense for the logic tracking related requests to go there. _Originally posted by @halter73 in https://github.com/modelcontextprotocol/csharp-sdk/pull/1170#discussion_r2734583079_
Repository: modelcontextprotocol/csharp-sdk. Description: The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft. Stars: 3991, Forks: 650. Primary language: C#. Languages: C# (100%), Makefile (0%). Homepage: https://modelcontextprotocol.github.io/csharp-sdk/ Latest release: v1.0.0 (1w ago). Open PRs: 21, open issues: 102. Last activity: 1d ago. Community health: 87%. Top contributors: Copilot, stephentoub, halter73, dependabot[bot], eiriktsarpalis, jeffhandley, PederHP, mikekistler, MackinnonBuck, aaronpowell and others.
C#
The TS SDK has a similar test, "Input Required Flow | should handle elicitation during tool execution" that verifies that the elicitation request can be received via a call to and that it will call the normal elicitation handler similar to what's described in https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/tasks#task-augmented-tool-call-with-elicitation https://github.com/modelcontextprotocol/typescript-sdk/blob/00249ce86dac558fb1089aea46d4d6d14e9a56c6/test/integration/test/taskLifecycle.test.ts#L579-L588 It doesn't look like we have similar logic in the server to include the elicitation/sampling request in the response and in the client to parse the elicitation out of the response and call the appropriate handler. Do we? I expect we need something similar to TS's . If we don't have support for this, would it make sense to do this as a follow up? Or is it not worth doing? _Originally posted by @halter73 in https://github.com/modelcontextprotocol/csharp-sdk/pull/1170#discussion_r2734454942_