# AzureConnectorNamespaceMcpServerConfigResource

- Module: [Aspire.Hosting.Azure.ConnectorNamespace](/reference/api/go/aspire.hosting.azure.connectornamespace.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents a managed MCP server configuration child resource in an Azure Connector Namespace.

## Definition

```go
type AzureConnectorNamespaceMcpServerConfigResource interface {
    Resource
    ResourceWithParent
}
```

## Embeds

- `Resource`
- `ResourceWithParent`

## Methods

- [AsExisting](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespacemcpserverconfigresource/asexisting.md) -- `method` -- Marks a managed MCP server configuration as an existing Azure resource.
  ```go
  AsExisting() AzureConnectorNamespaceMcpServerConfigResource
  ```
- [WithAccessPolicy](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespacemcpserverconfigresource/withaccesspolicy.md) -- `method` -- Adds a Microsoft Entra user or group access policy to a managed MCP server configuration.
  ```go
  WithAccessPolicy(name string, options *AzureConnectorNamespaceMcpAccessPolicyOptions) AzureConnectorNamespaceMcpServerConfigResource
  ```
- [WithConnector](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespacemcpserverconfigresource/withconnector.md) -- `method` -- Adds a connector route and an explicit operation allow-list to a managed MCP server configuration.
  ```go
  WithConnector(connectorName string, connection AzureConnectorNamespaceConnectionResource, options *AzureConnectorNamespaceMcpConnectorOptions) AzureConnectorNamespaceMcpServerConfigResource
  ```
