3using System.Threading.Tasks;
13 private readonly Func<Task<string>> read;
28 Func<Task<string>>
Read, params KeyValuePair<string, object>[]
MetaData)
51 params KeyValuePair<string, object>[]
MetaData)
75 params KeyValuePair<string, object>[]
MetaData)
102 long?
Size, params KeyValuePair<string, object>[]
MetaData)
212 public override async Task<IResourceContent[]>
Read(
213 Dictionary<string, object>?
MetaData)
215 string s = await this.read();
DateTime? LastModified
The moment the resource was last modified, as an ISO 8601 formatted string.
double? Priority
Describes how important this data is for operating the server.
McpRole?[] Audience
Describes who the intended audience of this object or data is.
An optionally-sized icon that can be displayed in a user interface.
Base interface to add icons property.
Contains information about an MCP Server Text Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, string? ContentType, long? Size, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Server Text Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Text Server Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, string? ContentType, long? Size, Icon Icon, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Server Text Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, string? ContentType, long? Size, Icons? Icons, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Server Text Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Text Server Resource
override async Task< IResourceContent[]> Read(Dictionary< string, object >? MetaData)
Reads the resource.
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, string? ContentType, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Server Text Resource
TextResource(string Name, string Title, string Description, Uri Uri, Func< Task< string > > Read, string? RequiredPrivilege, string? ContentType, long? Size, Icons? Icons, McpRole[]? Audience, double? Priority, DateTime? LastModified, params KeyValuePair< string, object >[] MetaData)
Contains information about an MCP Server Text Resource
Contains information about an MCP Server Resource
Uri Uri
URI of the resource.
string Title
A human-readable title for the prompt.
string Name
Name of resource.
KeyValuePair< string, object >[] MetaData
Meta-data associated with prompt.
string? RequiredPrivilege
Privilege required to access the resource, if any. If null, no additional privilege is required.
long? Size
The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization),...
string Description
A human-readable description of the prompt.
string? ContentType
Content-Type of resource, if known.
Interface for MCP Resource Content.
McpRole
Identifies a Role in a Model Context Protocol (MCP) context.