Skip to content
DocsTry Aspire
DocsTry

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

methodwithPostgresMcpbuilder
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
containerNamestringoptional
AzurePostgresFlexibleServerDatabaseResource

Defined on

This method is defined on the following type: