Skip to content
Docs Try Aspire
Docs Try

withPostgresMcp

Method
📦 Aspire.Hosting.Azure.PostgreSQL v13.2.0
interface PostgresDatabaseResource {
// ... omitted for brevity
withPostgresMcp(
configureContainer?: callback,
containerName?: string): PostgresDatabaseResource;
}

Signature

method withPostgresMcp builder
Adds Postgres MCP server
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): PostgresDatabaseResource
configureContainer (obj: PostgresMcpContainerResource) => Promise<void> optional
containerName string optional
PostgresDatabaseResource

Applies to

This method applies to the following types: