IResourceWithEndpoints.withMcpServer
Method
interface IResourceWithEndpoints { // ... omitted for brevity withMcpServer( path?: string, endpointName?: string): IResourceWithEndpoints;}Signature
method
withMcpServer builderMarks the resource as hosting a Model Context Protocol (MCP) server on the specified endpoint.
withMcpServer( path?: string, endpointName?: string): IResourceWithEndpointsParameters
pathstringoptional= /mcpendpointName stringoptionalReturns
IResourceWithEndpoints Defined on
This method is defined on the following type: