Skip to content
Docs Try Aspire

PostgresDatabaseResource.withPostgresMcp

Method
📦 Aspire.Hosting.PostgreSQL v13.2.0-preview.1.26159.1
interface PostgresDatabaseResource {
// ... omitted for brevity
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => void, containerName?: string): PostgresDatabaseResource;
}

Signature

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

Defined on

This method is defined on the following type: