McpInspectorResource.WithInspectedMcpServer

Method
📦 CommunityToolkit.Aspire.Hosting.McpInspector v13.6.1
type McpInspectorResource interface {
// ... omitted for brevity
WithInspectedMcpServer(
mcpServer ResourceWithEndpoints,
options ...*WithInspectedMcpServerOptions,
) McpInspectorResource
}

Signature

methodWithInspectedMcpServerbuilder
Configures the MCP Inspector resource to use a specified MCP server resource that uses SSE as the transport type.
WithInspectedMcpServer(
mcpServer ResourceWithEndpoints,
options ...*WithInspectedMcpServerOptions,
) McpInspectorResource
mcpServerResourceWithEndpointsThe IResourceBuilder for the MCP server resource.
options...*WithInspectedMcpServerOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithInspectedMcpServerOptions argument.

IsDefault*boolIndicates whether this MCP server should be considered the default server for the MCP Inspector.
TransportType*McpTransportTypeThe transport type to use for the MCP server. Defaults to StreamableHttp.
Path*stringThe path to use for MCP communication. Defaults to "/mcp".
McpInspectorResource

A reference to the IResourceBuilder for further configuration.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: