Skip to content
Docs Try Aspire

withPostgresMcp

Function
📦 Aspire.Hosting.PostgreSQL v13.2.0-preview.1.26159.1
interface PostgresDatabaseResource {
// ... omitted for brevity
withPostgresMcp(
configureContainer?: callback,
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

Applies to

This function is an extension method on the following types: