# WithInspectedMcpServer

- Module: [CommunityToolkit.Aspire.Hosting.McpInspector](/reference/api/go/communitytoolkit.aspire.hosting.mcpinspector.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`McpInspectorResource`](/reference/api/go/communitytoolkit.aspire.hosting.mcpinspector/mcpinspectorresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Configures the MCP Inspector resource to use a specified MCP server resource that uses SSE as the transport type.

## Definition

```go
func (McpInspectorResource) WithInspectedMcpServer(
    mcpServer ResourceWithEndpoints,
    options ...*WithInspectedMcpServerOptions,
) McpInspectorResource
```

## Parameters

- `mcpServer` (`ResourceWithEndpoints`) -- The `IResourceBuilder` for the MCP server resource.
- `options` (`...*WithInspectedMcpServerOptions`) -- optional settings, see [Options](#options)

## Options

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

- `IsDefault` (`*bool`) -- Indicates whether this MCP server should be considered the default server for the MCP Inspector.
- `TransportType` ([`*McpTransportType`](/reference/api/go/communitytoolkit.aspire.hosting.mcpinspector/mcptransporttype.md)) -- The transport type to use for the MCP server. Defaults to `StreamableHttp`.
- `Path` (`*string`) -- The path to use for MCP communication. Defaults to "/mcp".

## Returns

[`McpInspectorResource`](/reference/api/go/communitytoolkit.aspire.hosting.mcpinspector/mcpinspectorresource.md) -- A reference to the `IResourceBuilder` for further configuration.

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

## Applies to

- [`McpInspectorResource`](/reference/api/go/communitytoolkit.aspire.hosting.mcpinspector/mcpinspectorresource.md)
