Class McpProvider
- Namespace
- Sisk.ModelContextProtocol
- Assembly
- Sisk.ModelContextProtocol.dll
Represents a server that hosts a Model Context Protocol server.
public sealed class McpProvider
- Inheritance
-
McpProvider
- Inherited Members
Constructors
- 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
- PROTOCOL_VERSION
Represents the current supported version of the Model Context Protocol.
Properties
- ServerName
Gets or sets the internal name of the server.
- ServerTitle
Gets or sets the display name of the server.
- ServerVersion
Gets or sets the version of the MCP server.
- Tools
Gets or sets the list of MCP tools hosted by this server.
Methods
- HandleRequestAsync(HttpRequest, CancellationToken)
Handles an incoming HTTP request for MCP operations asynchronously.