Microsoft has unveiled version 1.0 of the Model Context Protocol (MCP) C# SDK, fully aligning with the 2025-11-25 MCP Specification. This robust update enhances capabilities for .NET developers in constructing MCP servers and clients. Key features include improved authorization server discovery, allowing for three methods of Protected Resource Metadata exposure, vastly expanding flexibility. The SDK automates client-side discovery, simplifying implementation.
Additionally, developers can now assign icons to tools and resources easily, enhancing UI customization. The introduction of incremental scope consent allows clients to request minimal access, promoting security by adhering to the principle of least privilege. URL mode elicitation secures sensitive data by redirecting operations to secure server URLs. The update also supports tool calling in sampling, making it simpler for language models to utilize tools.
For implementation guidance, the original announcement includes detailed steps and code examples, alongside comprehensive release notes available on the .NET Developer Blog and the C# SDK repository on GitHub.
Source link