Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPostgresMcp

Method
📦 Aspire.Hosting.Azure.PostgreSQL v17.0.0
func (AzurePostgresFlexibleServerDatabaseResource) WithPostgresMcp(options ...*WithPostgresMcpOptions) AzurePostgresFlexibleServerDatabaseResource

Signature

methodWithPostgresMcpbuilder
Adds a Postgres MCP server container and configures it to connect to the database represented by builder.
WithPostgresMcp(options ...*WithPostgresMcpOptions) AzurePostgresFlexibleServerDatabaseResource
options...*WithPostgresMcpOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPostgresMcpOptions argument.

ConfigureContainerfunc(obj PostgresMcpContainerResource)callbackConfiguration callback for the Postgres MCP container resource.
ContainerName*stringThe name of the container (optional).
AzurePostgresFlexibleServerDatabaseResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: