Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol 10.2.1

dotnet add package Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol --version 10.2.1
                    
NuGet\Install-Package Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol -Version 10.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol" Version="10.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol" Version="10.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol --version 10.2.1
                    
#r "nuget: Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol, 10.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol@10.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol&version=10.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol&version=10.2.1
                    
Install as a Cake Tool

About

An open-source project (MIT license) that targets and complements the Swashbuckle.AspNetCore Swagger tooling for APIs built with ASP.NET Core. It aims to provide a uniform and convenient developer experience when working with Swagger and OpenAPI.

Your versatile Swashbuckle.AspNetCore companion for modern development with .NET 9 and .NET 10.

It is, by heart, free, flexible and built to extend and boost your agile codebelt.

Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol for .NET

The Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol namespace contains types and extension methods that complements the Swashbuckle.AspNetCore by adding support for documenting Model Context Protocol (MCP) endpoints in generated OpenAPI documents.

More documentation available at our documentation site:

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.2.1 79 5/26/2026
10.2.0 104 4/18/2026

Version: 10.2.1
Availability: .NET 10 and .NET 9

# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)

# Improvements
- REFACTORED McpDocumentFilter tool discovery logic to separate assembly filtering from type attribute filtering for improved clarity and maintainability.

Version: 10.2.0
Availability: .NET 10 and .NET 9

# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)

# New Features
- ADDED McpDocumentFilter class in the Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol namespace that injects the MCP Streamable HTTP transport endpoint (and optionally the legacy SSE endpoints) into the generated OpenAPI document
- ADDED McpDocumentOptions class in the Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol namespace that defines options for the McpDocumentFilter class
- ADDED SwaggerGenOptionsExtensions class in the Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol namespace with an extension method for the SwaggerGenOptions class: AddMcpServer