# McpServerEndpointAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [McpServerEndpointAnnotation](/reference/api/csharp/aspire.hosting/mcpserverendpointannotation.md)
- Kind: `Properties`
- Members: `1`

Represents an annotation that identifies an endpoint on a resource that hosts a Model Context Protocol (MCP) server.

## EndpointUrlResolver

- Name: `EndpointUrlResolver`
- Modifiers: `get`
- Returns: `Func<IResourceWithEndpoints, CancellationToken, Task<Uri?>>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/McpServerEndpointAnnotation.cs#L28)

Gets the callback that resolves the MCP server endpoint URL from the resource.

```csharp
public Func<IResourceWithEndpoints, CancellationToken, Task<Uri?>> EndpointUrlResolver { get; }
```
