AddMcpInspector

Method
📦 CommunityToolkit.Aspire.Hosting.McpInspector v13.6.1
func (DistributedApplicationBuilder) AddMcpInspector(
name string,
options ...*AddMcpInspectorOptions,
) McpInspectorResource

Signature

methodAddMcpInspectorbuilder
Adds a MCP Inspector container resource
AddMcpInspector(
name string,
options ...*AddMcpInspectorOptions,
) McpInspectorResource
namestringThe name of the MCP Inspector container resource.
options...*AddMcpInspectorOptionsOptional settings, described under Options.

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

ClientPort*float64The port for the client application. Defaults to 6274.
ServerPort*float64The port for the server proxy application. Defaults to 6277.
InspectorVersion*stringThe version of the Inspector app to use. Defaults to InspectorVersion.
ProxyToken*ParameterResourceThe parameter used to provide the proxy authentication token. If null a random token will be generated.
McpInspectorResource

A reference to the IResourceBuilder for further configuration.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder