WithInspectedMcpServer
Method
func (McpInspectorResource) WithInspectedMcpServer( mcpServer ResourceWithEndpoints, options ...*WithInspectedMcpServerOptions,) McpInspectorResourceSignature
method
WithInspectedMcpServer builderConfigures the MCP Inspector resource to use a specified MCP server resource that uses SSE as the transport type.
WithInspectedMcpServer( mcpServer ResourceWithEndpoints, options ...*WithInspectedMcpServerOptions,) McpInspectorResourceParameters
mcpServer ResourceWithEndpoints The IResourceBuilder for the MCP server resource.options...*WithInspectedMcpServerOptions Optional settings, described under Options.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 *McpTransportType The transport type to use for the MCP server. Defaults to StreamableHttp .Path*stringThe path to use for MCP communication. Defaults to "/mcp".Returns
McpInspectorResource A reference to the I for further configuration.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: