Watch Aspire live streamsDocsTry Aspire

FoundryToolboxResource.withMcpTool

Method
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
interface FoundryToolboxResource {
// ... omitted for brevity
withMcpTool(
name: string,
endpoint: string | EndpointReference | ReferenceExpression,
options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource;
}

Signature

methodwithMcpToolbuilder
Adds an MCP tool definition to the Toolbox.
withMcpTool(
name: string,
endpoint: string | EndpointReference | ReferenceExpression,
options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource
namestring
endpointstring | EndpointReference | ReferenceExpression
optionsFoundryToolboxMcpToolOptionsoptional
FoundryToolboxResource

Defined on

This method is defined on the following type: