Paul Krill
Editor at Large

MCP C# SDK updated to support latest Model Context Protocol spec

news
Jul 23, 20252 mins

Update to the MCP SDK for C# brings an improved authentication protocol, elicitation support, structured tool output, and support for resource links in tool responses.

AI protocols
Credit: Rob Schultz / Shutterstock

Microsoft announced that the MCP C# SDK now supports the latest specification version of the Model Context Protocol, allowing .NET developers to leverage an improved authentication protocol, elicitation support, and structured tool output when building AI applications with Model Context Protocol clients and servers.

The update to the open source SDK, accessible on GitHub, was detailed in a July 22 blog post. To use the new features, developers can update their MCP C# SDK package by running the command dotnet add package ModelContextProtocol --prerelease.

Whether building AI assistants, automation tools, or integrating AI capabilities into existing .NET applications, the new features will help developers create more robust and secure solutions, Microsoft said. MCP is an open protocol that enables seamless integration between large language model (LLM) applications and external data sources and tools.

With the MCP C# SDK, which now supports protocol specification version 2025-06-18, developers get a new authentication protocol that enhances security and flexibility for AI applications, according to Microsoft. The new protocol separates roles of the authentication and resource servers, enabling easier integration with existing OAuth 2.0 and OpenID connect providers.

Developers using the updated SDK also gain access to MCP’s new elicitation feature, which allows servers to request additional information during interaction. Elicitation enables more dynamic and interactive AI experiences, making it easier to gather necessary context before executing tasks, Microsoft said. Elicitation is an optional feature. Clients can declare support for it as part of their initialize request. In the MCP C# SDK, this is done by configuring an ElicitationHandler in the McpClientOptions.

Finally, the 2025-06-18 spec also supports structured tool output. Prior to this support, tool results were allowed to contain structured data but the LLM had to perform parsing and interpretation without any guidance from the tool itself. Now, tools can return structured content that is explicitly defined. This allows AI models to better understand and process the output, according to Microsoft. The MCP C# SDK enables tools to specify that their output is structured via the UseStructuredContent parameter of the McpServerTool attribute.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a β€œBest Technology News Coverage” award from IDG.

More from this author