# McpInspectorResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.McpInspector](/reference/api/csharp/communitytoolkit.aspire.hosting.mcpinspector.md)
- Type: [McpInspectorResource](/reference/api/csharp/communitytoolkit.aspire.hosting.mcpinspector/mcpinspectorresource.md)
- Kind: `Constructors`
- Members: `1`

Resource for the MCP Inspector server.

## McpInspectorResource(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.McpInspector/McpInspectorResource.cs#L10-L48)

Resource for the MCP Inspector server.

```csharp
public class McpInspectorResource
{
    public McpInspectorResource(
        string name,
        string packageName)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `packageName` (`string`)
  The npm package name for the MCP Inspector.
