Skip to main content
net8.0net9.0

An Aspire to run the MCP Inspector against a MCP server.

Published
Aug 5, 2025
1y ago
Total Downloads
91.6K
91,556

Install

dotnet add package CommunityToolkit.Aspire.Hosting.McpInspector --version 9.7.1-beta.339
ProductVersions
.NET
net8.0net9.0

README

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 or Sse) and set which server is the default for the inspector.

Additional Information

See the official documentation for more details.

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Changes from Previous Version

No structural changes between v9.7.0 and v9.7.1-beta.339.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.