Sisk

Class

McpProvider

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

Represents a server that hosts a Model Context Protocol server.

C#
public sealed class McpProvider

Inheritance #

object ← McpProvider

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
McpProvider()Creates a new instance of the McpProvider class.
McpProvider(string, string, Version)Creates a new instance of the McpProvider class with the specified server details.

Fields #

NameDescription
HEADER_MISMATCH_ERRORRepresents the error code for missing or mismatched HTTP metadata headers.
MISSING_REQUIRED_CLIENT_CAPABILITY_ERRORRepresents the error code for a required client capability that was not declared.
PROTOCOL_VERSIONRepresents the current supported version of the Model Context Protocol.
UNSUPPORTED_PROTOCOL_VERSION_ERRORRepresents the error code for a protocol version that the provider does not support.

Properties #

NameDescription
ClientInstructionsGets or sets instructions that help clients understand how to use the server.
IconsGets or sets the icons that clients can display for the server.
OriginValidatorGets or sets a validator for explicitly trusted origins.
ServerDescriptionGets or sets a human-readable description of the server.
ServerNameGets or sets the internal name of the server.
ServerTitleGets or sets the display name of the server.
ServerVersionGets or sets the version of the MCP server.
ServerWebsiteUrlGets or sets the URL of the server website.
SkillsGets or sets the skills hosted by this server. Register skills before handling requests.
SupportedProtocolVersionsGets the stateless protocol versions accepted by this provider.
ToolsGets or sets the list of MCP tools hosted by this server.

Methods #

NameDescription
HandleRequestAsync(HttpRequest, CancellationToken)Handles an incoming HTTP request for MCP operations asynchronously.

Type to search the documentation and the API reference.