WithMcpTool
Method
func (FoundryToolboxResource) WithMcpTool( name string, endpoint any, options ...*FoundryToolboxMcpToolOptions,) FoundryToolboxResourceSignature
method
WithMcpTool builderAdds an MCP tool definition to the Toolbox.
WithMcpTool( name string, endpoint any, options ...*FoundryToolboxMcpToolOptions,) FoundryToolboxResourceParameters
namestringThe tool name.endpointanyThe 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).options...*FoundryToolboxMcpToolOptions Optional settings, described under Options.Options
Optional parameters are passed as the existing *FoundryToolboxMcpToolOptions struct.
Returns
FoundryToolboxResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: