CommunityToolkit.Aspire.Hosting.McpInspector 13.1.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.McpInspector --version 13.1.1
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.McpInspector -Version 13.1.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="CommunityToolkit.Aspire.Hosting.McpInspector" Version="13.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.McpInspector" Version="13.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.McpInspector" />
                    
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 CommunityToolkit.Aspire.Hosting.McpInspector --version 13.1.1
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.McpInspector, 13.1.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 CommunityToolkit.Aspire.Hosting.McpInspector@13.1.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=CommunityToolkit.Aspire.Hosting.McpInspector&version=13.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.McpInspector&version=13.1.1
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Hosting.McpInspector library

Provides extension methods and resource definitions for the .NET Aspire AppHost to support adding an MCP Inspector resource. The MCP Inspector enables inspection and debugging of MCP (Model Context Protocol) servers, with support for multiple server configurations and transport types.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.McpInspector

Example usage

In your Program.cs, add an MCP Inspector resource and configure it with one or more MCP servers:

var mcpServer = builder.AddProject<Projects.McpServer>("mcp-server");

var inspector = builder.AddMcpInspector("inspector")
    .WithMcpServer(mcpServer);

You can specify the transport type (StreamableHttp) and set which server is the default for the inspector.

Using alternative package managers

By default, the MCP Inspector uses npm/npx. You can configure it to use yarn, pnpm, or bun instead by chaining the appropriate method:

// Using yarn
var inspector = builder.AddMcpInspector("inspector")
    .WithYarn()
    .WithMcpServer(mcpServer);

// Using pnpm
var inspector = builder.AddMcpInspector("inspector")
    .WithPnpm()
    .WithMcpServer(mcpServer);

// Using bun
var inspector = builder.AddMcpInspector("inspector")
    .WithBun()
    .WithMcpServer(mcpServer);

When using yarn, pnpm, or bun, the inspector will use yarn dlx, pnpm dlx, or bunx respectively to run the MCP Inspector package.

Using options for complex configurations

For more complex configurations with multiple parameters, you can use the options-based approach:

var customToken = builder.AddParameter("custom-proxy-token", secret: true);

var options = new McpInspectorOptions
{
    ClientPort = 6275,
    ServerPort = 6278,
    InspectorVersion = "0.16.2",
    ProxyToken = customToken
};

var inspector = builder.AddMcpInspector("inspector", options)
    .WithMcpServer(mcpServer);

Alternatively, you can use a configuration delegate for a more fluent approach:

var inspector = builder.AddMcpInspector("inspector", options =>
{
    options.ClientPort = 6275;
    options.ServerPort = 6278;
    options.InspectorVersion = "0.16.2";
})
    .WithMcpServer(mcpServer);
Configuration options

The McpInspectorOptions class provides the following configuration properties:

  • ClientPort: Port for the client application (default: 6274)
  • ServerPort: Port for the server proxy application (default: 6277)
  • InspectorVersion: Version of the Inspector app to use (default: latest supported version)
  • ProxyToken: Custom authentication token parameter (default: auto-generated)

Additional Information

See the official documentation for more details.

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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
13.1.2-beta.516 38 2/9/2026
13.1.2-beta.515 48 2/2/2026
13.1.2-beta.514 42 1/30/2026
13.1.2-beta.513 45 1/29/2026
13.1.2-beta.512 46 1/29/2026
13.1.2-beta.511 47 1/28/2026
13.1.2-beta.509 54 1/20/2026
13.1.2-beta.508 98 1/19/2026
13.1.2-beta.507 47 1/19/2026
13.1.2-beta.506 56 1/16/2026
13.1.2-beta.505 44 1/16/2026
13.1.2-beta.504 40 1/16/2026
13.1.1 1,296 1/16/2026
13.1.1-beta.502 49 1/16/2026
13.1.0 384 1/14/2026
13.1.0-beta.499 44 1/14/2026
13.0.1-beta.498 44 1/14/2026
13.0.1-beta.486 51 1/12/2026
13.0.1-beta.468 1,520 12/3/2025
13.0.1-beta.467 630 12/3/2025
13.0.0 2,146 11/25/2025
13.0.0-beta.462 148 11/25/2025
13.0.0-beta.456 217 11/23/2025
13.0.0-beta.454 135 11/23/2025
13.0.0-beta.453 135 11/22/2025
13.0.0-beta.450 126 11/22/2025
13.0.0-beta.448 125 11/22/2025
13.0.0-beta.444 538 11/17/2025
13.0.0-beta.443 314 11/17/2025
13.0.0-beta.440 136 11/15/2025
13.0.0-beta.439 380 11/12/2025
13.0.0-beta.438 244 11/12/2025
13.0.0-beta.436 262 11/12/2025
13.0.0-beta.435 262 11/11/2025
13.0.0-beta.433 169 11/10/2025
13.0.0-beta.432 164 11/10/2025
13.0.0-beta.431 152 11/6/2025
13.0.0-beta.430 156 11/6/2025
9.9.0 1,424 11/3/2025
9.9.0-beta.427 161 11/3/2025
9.8.1-beta.426 157 11/3/2025
9.8.1-beta.424 161 10/28/2025
9.8.1-beta.420 152 10/27/2025
9.8.1-beta.419 137 10/27/2025
9.8.1-beta.417 156 10/27/2025
9.8.1-beta.414 147 10/24/2025
9.8.1-beta.413 140 10/22/2025
9.8.1-beta.410 145 10/16/2025
9.8.1-beta.408 132 10/16/2025
9.8.1-beta.407 129 10/16/2025
9.8.1-beta.406 152 10/15/2025
9.8.0 1,431 9/26/2025
9.8.0-beta.405 137 10/15/2025
9.8.0-beta.404 150 10/13/2025
9.8.0-beta.402 152 9/29/2025
9.8.0-beta.401 138 9/29/2025
9.8.0-beta.399 148 9/26/2025
9.8.0-beta.398 151 9/25/2025
9.8.0-beta.397 146 9/25/2025
9.8.0-beta.395 146 9/24/2025
9.8.0-beta.394 154 9/23/2025
9.8.0-beta.393 145 9/23/2025
9.8.0-beta.392 151 9/23/2025
9.8.0-beta.389 303 9/18/2025
9.8.0-beta.388 280 9/16/2025
9.8.0-beta.386 228 9/15/2025
9.8.0-beta.385 229 9/15/2025
9.8.0-beta.384 91 9/13/2025
9.8.0-beta.376 154 9/8/2025
9.8.0-beta.375 77 9/6/2025
9.8.0-beta.373 159 9/5/2025
9.8.0-beta.372 150 9/4/2025
9.8.0-beta.370 149 9/2/2025
9.8.0-beta.364 148 9/1/2025
9.7.2 1,006 8/29/2025
9.7.2-beta.362 196 8/29/2025
9.7.2-beta.361 191 8/29/2025
9.7.2-beta.360 193 8/29/2025
9.7.2-beta.359 190 8/28/2025
9.7.2-beta.358 186 8/28/2025
9.7.2-beta.357 194 8/28/2025
9.7.1 300 8/27/2025
9.7.1-beta.355 193 8/27/2025
9.7.1-beta.354 199 8/27/2025
9.7.1-beta.353 191 8/27/2025
9.7.1-beta.352 198 8/27/2025
9.7.1-beta.351 201 8/27/2025
9.7.1-beta.348 187 8/14/2025
9.7.1-beta.344 243 8/10/2025
9.7.1-beta.343 222 8/8/2025
9.7.1-beta.342 237 8/7/2025
9.7.1-beta.341 236 8/6/2025
9.7.1-beta.340 209 8/5/2025
9.7.1-beta.339 215 8/5/2025
9.7.0 234 8/1/2025
9.7.0-beta.337 116 8/1/2025
9.7.0-beta.336 120 8/1/2025
9.7.0-beta.335 119 8/1/2025
9.7.0-beta.333 128 7/30/2025
9.6.1-beta.332 128 7/30/2025
9.6.1-beta.331 127 7/30/2025
9.6.1-beta.330 135 7/30/2025
9.6.1-beta.329 125 7/30/2025
9.6.1-beta.328 137 7/29/2025
9.6.1-beta.327 146 7/28/2025
9.6.1-beta.326 146 7/28/2025
9.6.0 621 7/10/2025
9.6.0-beta.324 212 7/10/2025
9.5.1-beta.323 155 7/10/2025
9.5.1-beta.322 146 7/10/2025
9.5.1-beta.321 147 7/10/2025
9.5.1-beta.320 160 7/9/2025