Sisk

Method

McpProviderExtensions.UseMcp

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

UseMcp(HttpServerHostContextBuilder, McpProvider) #

Configures the HTTP server host builder to use a specific MCP provider.

C#
public static HttpServerHostContextBuilder UseMcp(this HttpServerHostContextBuilder builder, McpProvider provider)

Parameters #

builder HttpServerHostContextBuilder

The HTTP server host builder to configure.

provider McpProvider

The MCP provider to use.

Returns #

HttpServerHostContextBuilder

The configured HTTP server host builder.

Exceptions #

ArgumentNullException

Thrown if the provider is null.

UseMcp(HttpServerHostContextBuilder, Action<McpProvider>) #

Configures the HTTP server host builder to use an MCP provider built with the provided action.

C#
public static HttpServerHostContextBuilder UseMcp(this HttpServerHostContextBuilder builder, Action<McpProvider> providerBuilder)

Parameters #

builder HttpServerHostContextBuilder

The HTTP server host builder to configure.

providerBuilder Action<McpProvider>

An action to configure the MCP provider.

Returns #

HttpServerHostContextBuilder

The configured HTTP server host builder.

Type to search the documentation and the API reference.