resource

UDA marking a method as a static MCP resource. The method takes no arguments and returns the resource contents (string, or a ResourceContents).

An optional human-readable title may be supplied for display purposes; it is independent of the programmatic name.

@safe
struct resource {
string uri;
string name;
string mimeType;
string description;
}

Members

Variables

title
string title;

optional human-readable display name (empty = unset)