Watch Aspire live streamsDocsTry Aspire

PostgresDatabaseResource.withPostgresMcp

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

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): PostgresDatabaseResource
configureContainer(obj: PostgresMcpContainerResource) => Promise<void>optional
containerNamestringoptional
PostgresDatabaseResource

Defined on

This method is defined on the following type: