withConnector

Method
📦 Aspire.Hosting.Azure.ConnectorNamespace v17.0.0-preview.1.26567.5
interface AzureConnectorNamespaceMcpServerConfigResource {
// ... omitted for brevity
withConnector(
connectorName: string,
connection: AzureConnectorNamespaceConnectionResource,
options: AzureConnectorNamespaceMcpConnectorOptions): AzureConnectorNamespaceMcpServerConfigResource;
}

Signature

methodwithConnectorbuilder
Adds a connector route and an explicit operation allow-list to a managed MCP server configuration.
withConnector(
connectorName: string,
connection: AzureConnectorNamespaceConnectionResource,
options: AzureConnectorNamespaceMcpConnectorOptions): AzureConnectorNamespaceMcpServerConfigResource
connectorNamestringThe connector route name.
connectionAzureConnectorNamespaceConnectionResourceThe connection used by the connector route.
optionsAzureConnectorNamespaceMcpConnectorOptionsThe connector metadata and operation allow-list.
AzureConnectorNamespaceMcpServerConfigResource

Applies to

This method applies to the following types: