マイクロソフト、MCP C# SDK v1.0をリリースし、最新プロトコル仕様を完全サポート
Microsoftは公式MCP C# SDK v1.0をリリースし、2025-11-25版仕様への完全対応、権限の最小化、および安全なURLモードelicitationなどの新機能を導入した。
キーポイント
MCP仕様v2025-11-25への完全準拠
Microsoftチームは公式MCP C# SDK v1.0をリリースし、最新の2025-11-25版MCP仕様への完全なサポートを提供した。
セキュリティと権限管理の強化
Incremental scope consent(増分的スコープ同意)により最小権限の原則が適用され、URL mode elicitationを通じて機密データをクライアント経由で送信せずに安全なサーバー側で処理可能になった。
開発者体験の向上と新機能
ツール、リソース、プロンプトへのアイコンサポートの追加、OAuth Client ID Metadata Documents (CIMD) の採用、およびMicrosoft.Extensions.AIパッケージとの統合により実装が簡素化された。
公式ドキュメントとリポジトリの公開
完全なリリースノートとドキュメントは公式 .NET Developer Blog で確認可能であり、C# SDK のリポジトリは GitHub にホストされています。
影響分析・編集コメントを表示
影響分析
このリリースは、MCPエコシステムにおける.NETプラットフォームの成熟度を示す重要なマイルストーンであり、エンタープライズ環境でのAIエージェント統合におけるセキュリティ要件を満たす基盤を提供する。特に機密データ処理の改善は、実務での採用障壁を下げ、AIアプリケーションの開発標準を確立する可能性がある。
編集コメント
Microsoftによる公式SDKの安定版リリースは、MCP規格の実装標準化を加速させる。特にセキュリティ機能の強化は、企業導入における懸念事項を解消する上で極めて重要である。
Microsoft チームは、公式の Model Context Protocol (MCP) C# SDK のバージョン 1.0 をリリースしたと発表しました。これにより、2025-11-25 版の MCP Specification(プロトコル仕様)に対する完全なサポートが実現されます。
新バージョンでは、.NET で MCP サーバーおよびクライアントを構築する開発者向けに、いくつかの注目すべき機能が追加されました。明記されている通り、最も重要な追加機能の一つは、認証サーバーの検出機能の強化です。
更新された仕様に基づき、サーバーは now 保護リソースメタデータを 3 つの異なる方法で公開できるようになりました。これにより、以前必要とされていた単一の方法と比較して、より高い柔軟性が提供されます。SDK は、クライアント側での完全な検出プロセスを自動的に処理します。
今回のリリースでは、ツール、リソース、プロンプトに対するアイコンサポートも追加されました。開発者は now、単純な属性パラメータを使用してこれらのコンポーネントにアイコンを割り当てるか、複数のアイコン、MIME タイプ、サイズヒント、テーマ設定などの高度なオプションを設定できるようになりました。サーバーおよびクライアントのメタデータについても同様に拡張され、アイコンやウェブサイト URL のサポートが追加されています。
インクリメンタル・スコープ同意(Incremental scope consent)は、今回のリリースにおけるもう一つの主要機能です。これは、各操作に必要な最小限のアクセス権のみをクライアントが要求できるようにすることで、MCP 認証に「最小権限の原則」を適用するものです。
以前は、クライアントが事前に関与可能なすべての権限を要求する必要があったという注釈と共に、新しいメカニズムにより、クライアントは最小限のスコープから開始し、必要に応じて追加のスコープを要求できるようになりました。このプロセスも SDK がクライアント側で自動的に処理します。
URL モードの誘発機能も導入され、サーバーは API キーの収集や第三者認証といった機密性の高いやり取りを MCP クライアントから完全に迂回し、安全なサーバーホスト型の URL へリダイレクトできるようになりました。報告によると、このアプローチにより、機密データがクライアントを経由して送信されるのを防止できます。
サンプリングにおけるツール呼び出しのサポートは、技術的に最も重要な追加機能の一つです。サーバーは今後、サンプリング要求にツールを含めることができ、言語モデルが応答生成中にそれらのツールを呼び出すことが可能になります。Microsoft.Extensions.AI パッケージとの SDK の統合により、クライアント側とサーバー側の双方での実装が簡素化されています。
今回のリリースではさらに、OAuth クライアント ID メタデータドキュメント (CIMD) が動的クライアント登録の代替手段として推奨されるオプションとして追加され、ポーリング機構を介した HTTP 上の長時間実行リクエストに対するサポートも改善されました。これにより、サーバーは接続を閉じ、クライアントはイベント ID を使用して再接続することが可能になります。
今回のリリースにおけるその他の変更点には、永続的な状態追跡のための実験的 Tasks サポート、SSE ストリーム保存用の DistributedCacheEventStreamStore、および拡張された Implementation メタデータプロパティが含まれます。
興味のある開発者のために、元の発表ブログ記事では、このリリースでカバーされる各機能(認証設定、アイコン設定、インクリメンタルスコープ同意、誘発処理、サンプリング内のツール呼び出し、長時間実行リクエストの管理)に関する詳細な実装手順とコード例を提供しています。
また、完全なリリースノートとドキュメントは公式の.NET Developer Blog で利用可能であり、C# SDK リポジトリは GitHub にホストされています。
著者について
アルミール・ヴーク
👋 .NET 関連のコンテンツをもっと知りたい方はフォローしてください!私はマイクロソフト関連のイベントやユーザーグループ会議で頻繁に地域および国際的なスピーカーを務めています。余暇にはチェスを楽しんだり、自然の中でランニングをしたり、ブログ記事を書いたり、StackOverflow や MSDN フォーラムでコミュニティを支援したり、オープンソースプロジェクトに貢献したり、NGO のプログラミング関連イベントのインストラクターを務めたりすることを愛しています。
ソフトウェア開発、特に.NET プラットフォームに完全に専念し、C# と ASP.NET Core を用いて Web アプリケーションを開発し、Xamarin ツールを用いてモバイルアプリの開発を行っています。
幼い頃からプログラミングに心から魅了されています。
原文を表示
Microsoft team has announced the release of version 1.0 of their official Model Context Protocol (MCP) C# SDK, bringing full support for the 2025-11-25 version of the MCP Specification.
The new version introduces several notable capabilities aimed at developers building MCP servers and clients in .NET. As stated, one of the most significant additions is enhanced authorization server discovery.
Under the updated specification, servers can now expose Protected Resource Metadata through three different methods, offering more flexibility compared to the single method previously required. The SDK handles the full discovery process on the client side automatically.
The release also adds icon support for tools, resources, and prompts. Developers can now assign icons to these components using a simple attribute parameter or configure more advanced options such as multiple icons, MIME types, size hints, and theme preferences. Server and client metadata have similarly been extended to support icons and website URLs.
Incremental scope consent is another key feature in this release. It applies the principle of least privilege to MCP authorization by allowing clients to request only the minimum access needed for each operation.
With a note that previously, clients often had to request all possible permissions upfront. With the new mechanism, clients start with minimal scopes and request additional ones as required; the SDK handles this automatically on the client side.
URL mode elicitation has also been introduced, enabling servers to redirect sensitive interactions, such as API key collection or third-party authorization, away from the MCP client entirely and to a secure server-hosted URL. As reported, this approach prevents sensitive data from being transmitted through the client.
Tool calling support in sampling represents one of the most technically significant additions. Servers can now include tools in sampling requests, allowing a language model to invoke those tools during a response. The SDK's integration with the Microsoft.Extensions.AI package simplifies the implementation on both client and server sides.
The release further includes OAuth Client ID Metadata Documents (CIMDs) as a preferred alternative to Dynamic Client Registration, and improved support for long-running requests over HTTP through a polling mechanism that allows servers to close connections and clients to reconnect using event IDs.
Other changes in this release include experimental Tasks support for durable state tracking, DistributedCacheEventStreamStore for SSE stream storage, and extended Implementation metadata properties.
For interested developers, the original announcement blog post provides detailed implementation steps and code examples for each feature covered in this release, including authorization configuration, icon setup, incremental scope consent, elicitation handling, tool calling in sampling, and long-running request management.
Also, the full release notes and documentation are available on the official .NET Developer Blog, with the C# SDK repository hosted on GitHub.
About the Author
Almir Vuk
👋 Follow me for more .NET content! I am a frequent regional and international speaker at Microsoft-related events and User Group meetings. While spending my free time, I love to play chess, run in nature, write blog posts, help the community on StackOverflow and MSDN forums, contribute to open source projects or be an instructor at NGO programming-related events.
Completely dedicated to Software Development, mostly on the .NET platform, crafting apps using C# and ASP.NET Core for web and Xamarin tools for mobile development.
Truly in love with programming since my childhood days.
Show moreShow less
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み