FoundryToolboxResource.withMcpTool
Method
interface FoundryToolboxResource { // ... omitted for brevity withMcpTool( name: string, endpoint: string | EndpointReference | ReferenceExpression, options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource;}Signature
method
withMcpTool builderAdds an MCP tool definition to the Toolbox.
withMcpTool( name: string, endpoint: string | EndpointReference | ReferenceExpression, options?: FoundryToolboxMcpToolOptions): FoundryToolboxResourceParameters
namestringThe tool name.endpointstring | EndpointReference | ReferenceExpression The MCP endpoint. A string URI, an `EndpointReference` pointing at a resource endpoint, or a `ReferenceExpression` for cases where the endpoint URL needs to be composed (for example, appending the MCP server's mount path or chaining through a public ingress like a dev tunnel).optionsFoundryToolboxMcpToolOptions optionalOptional MCP server metadata and approval policy.Returns
FoundryToolboxResource Defined on
This method is defined on the following type: