Skip to content
DocsTry Aspire
DocsTry

withInspectedMcpServer

Method
📦 CommunityToolkit.Aspire.Hosting.McpInspector v13.4.0
interface McpInspectorResource {
// ... omitted for brevity
withInspectedMcpServer(
mcpServer: IResourceWithEndpoints,
isDefault?: boolean,
transportType?: McpTransportType,
path?: string): McpInspectorResource;
}

Signature

methodwithInspectedMcpServerbuilder
Configures the MCP Inspector resource to use a specified MCP server resource that uses SSE as the transport type.
withInspectedMcpServer(
mcpServer: IResourceWithEndpoints,
isDefault?: boolean,
transportType?: McpTransportType,
path?: string): McpInspectorResource
mcpServerIResourceWithEndpoints
isDefaultbooleanoptional= True
transportTypeMcpTransportTypeoptional= StreamableHttp
pathstringoptional= /mcp
McpInspectorResource

Applies to

This method applies to the following types: