McpInspectorResource.withInspectedMcpServer

Method
📦 CommunityToolkit.Aspire.Hosting.McpInspector v13.6.1
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
mcpServerIResourceWithEndpointsThe `IResourceBuilder`1` for the MCP server resource.
isDefaultbooleanoptional= TrueIndicates whether this MCP server should be considered the default server for the MCP Inspector.
transportTypeMcpTransportTypeoptional= StreamableHttpThe transport type to use for the MCP server. Defaults to `StreamableHttp`.
pathstringoptional= /mcpThe path to use for MCP communication. Defaults to "/mcp".
McpInspectorResource

Defined on

This method is defined on the following type: