Table of Contents

Delegate McpToolHandler

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

Represents a delegate that handles the execution of an MCP tool.

public delegate Task<McpToolResult> McpToolHandler(McpToolContext context)

Parameters

context McpToolContext

The context in which the tool is executed.

Returns

Task<McpToolResult>

A task that, when completed, yields the McpToolResult of the tool execution.

Constructors

McpToolHandler(object, nint)

Methods

BeginInvoke(McpToolContext, AsyncCallback, object)
EndInvoke(IAsyncResult)
Invoke(McpToolContext)