# McpServerMetadata Constructors

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

Represents metadata for an MCP server used by the MCP Inspector.

## McpServerMetadata(string, EndpointReference, McpTransportType, string)

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

Represents metadata for an MCP server used by the MCP Inspector.

```csharp
public record McpServerMetadata
{
    public McpServerMetadata(
        string Name,
        EndpointReference Endpoint,
        McpTransportType TransportType,
        string Path)
    {
        // ...
    }
}
```

## Parameters

- `Name` (`string`)
  The name of the server resource.
- `Endpoint` (`EndpointReference`)
  The endpoint reference for the server resource.
- `TransportType` ([McpTransportType](/reference/api/csharp/communitytoolkit.aspire.hosting.mcpinspector/mcptransporttype.md))
  The transport type used by the server resource.
- `Path` (`string`)
  The path used for MCP communication.
