Class
McpProvider
Represents a server that hosts a Model Context Protocol server.
public sealed class McpProviderInheritance #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| PROTOCOL_VERSION | Represents the current supported version of the Model Context Protocol. |
Properties #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| HandleRequestAsync(HttpRequest, CancellationToken) | Handles an incoming HTTP request for MCP operations asynchronously. |