Skip to content
Docs Try Aspire
Docs Try

PostgresDatabaseResource.withPostgresMcp

Method
📦 Aspire.Hosting.PostgreSQL v13.3.0
interface PostgresDatabaseResource {
// ... omitted for brevity
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, 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

Defined on

This method is defined on the following type: