CommunityToolkit.Aspire.Hosting.McpInspector
9.7.2
Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Hosting.McpInspector --version 9.7.2
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.McpInspector -Version 9.7.2
<PackageReference Include="CommunityToolkit.Aspire.Hosting.McpInspector" Version="9.7.2" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.McpInspector" Version="9.7.2" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.McpInspector" />
paket add CommunityToolkit.Aspire.Hosting.McpInspector --version 9.7.2
#r "nuget: CommunityToolkit.Aspire.Hosting.McpInspector, 9.7.2"
#:package CommunityToolkit.Aspire.Hosting.McpInspector@9.7.2
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.McpInspector&version=9.7.2
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.McpInspector&version=9.7.2
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 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: 6274ServerPort
: 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
Product | Versions 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 was computed. 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. |
-
net8.0
- Aspire.Hosting (>= 9.4.1)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
-
net9.0
- Aspire.Hosting (>= 9.4.1)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
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 |
---|---|---|
9.7.2 | 41 | 8/29/2025 |
9.7.2-beta.362 | 43 | 8/29/2025 |
9.7.2-beta.361 | 44 | 8/29/2025 |
9.7.2-beta.360 | 42 | 8/29/2025 |
9.7.2-beta.359 | 43 | 8/28/2025 |
9.7.2-beta.358 | 42 | 8/28/2025 |
9.7.2-beta.357 | 44 | 8/28/2025 |
9.7.1 | 44 | 8/27/2025 |
9.7.1-beta.355 | 42 | 8/27/2025 |
9.7.1-beta.354 | 42 | 8/27/2025 |
9.7.1-beta.353 | 42 | 8/27/2025 |
9.7.1-beta.352 | 42 | 8/27/2025 |
9.7.1-beta.351 | 43 | 8/27/2025 |
9.7.1-beta.348 | 123 | 8/14/2025 |
9.7.1-beta.344 | 167 | 8/10/2025 |
9.7.1-beta.343 | 192 | 8/8/2025 |
9.7.1-beta.342 | 193 | 8/7/2025 |
9.7.1-beta.341 | 191 | 8/6/2025 |
9.7.1-beta.340 | 173 | 8/5/2025 |
9.7.1-beta.339 | 177 | 8/5/2025 |
9.7.0 | 128 | 8/1/2025 |
9.7.0-beta.337 | 79 | 8/1/2025 |
9.7.0-beta.336 | 88 | 8/1/2025 |
9.7.0-beta.335 | 87 | 8/1/2025 |
9.7.0-beta.333 | 93 | 7/30/2025 |
9.6.1-beta.332 | 92 | 7/30/2025 |
9.6.1-beta.331 | 91 | 7/30/2025 |
9.6.1-beta.330 | 90 | 7/30/2025 |
9.6.1-beta.329 | 95 | 7/30/2025 |
9.6.1-beta.328 | 93 | 7/29/2025 |
9.6.1-beta.327 | 94 | 7/28/2025 |
9.6.1-beta.326 | 92 | 7/28/2025 |
9.6.0 | 402 | 7/10/2025 |
9.6.0-beta.324 | 170 | 7/10/2025 |
9.5.1-beta.323 | 115 | 7/10/2025 |
9.5.1-beta.322 | 114 | 7/10/2025 |
9.5.1-beta.321 | 115 | 7/10/2025 |
9.5.1-beta.320 | 119 | 7/9/2025 |