withMcpServer
Method
interface ContainerResource { // ... omitted for brevity withMcpServer( path?: string, endpointName?: string): IResourceWithEndpoints;}Signature
method
withMcpServerbuilderMarks the resource as hosting a Model Context Protocol (MCP) server on the specified endpoint.
withMcpServer( path?: string, endpointName?: string): IResourceWithEndpointsParameters
pathstringoptional= /mcpendpointNamestringoptionalReturns
IResourceWithEndpointsApplies to
This method applies to the following types: