McpServerEndpointAnnotation Methods
ClassMethods1 member
Represents an annotation that identifies an endpoint on a resource that hosts a Model Context Protocol (MCP) server.
FromEndpoint(string, string?)Section titled FromEndpoint(string, string?)staticMcpServerEndpointAnnotation Creates an
McpServerEndpointAnnotation that resolves the MCP server URL from a named endpoint. public sealed class McpServerEndpointAnnotation{ public static McpServerEndpointAnnotation FromEndpoint( string endpointName, string? path = "/mcp") { // ... }}Parameters
endpointNamestringThe name of the endpoint on the resource that hosts the MCP server.pathstring?optionalAn optional path to append to the endpoint URL. Defaults to "/mcp".Returns
McpServerEndpointAnnotationA new McpServerEndpointAnnotation instance.