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
McpToolContextThe context in which the tool is executed.
Returns
- Task<McpToolResult>
A task that, when completed, yields the McpToolResult of the tool execution.