Skip to content
Docs Try Aspire
Docs Try

AzurePostgresFlexibleServerDatabaseResource.withPostgresMcp

Method
📦 Aspire.Hosting.Azure.PostgreSQL v13.4.0
interface AzurePostgresFlexibleServerDatabaseResource {
// ... omitted for brevity
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): AzurePostgresFlexibleServerDatabaseResource;
}

Signature

method withPostgresMcp builder
Adds a Postgres MCP server container and configures it to connect to the database represented by `builder`.
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): AzurePostgresFlexibleServerDatabaseResource
configureContainer (obj: PostgresMcpContainerResource) => Promise<void> optional
containerName string optional
AzurePostgresFlexibleServerDatabaseResource

Defined on

This method is defined on the following type: