ToolCallback
@tsed/platform-mcp
Usage
typescript
import { ToolCallback } from "@tsed/platform/platform-mcp/src/fn/defineTool";Overview
ts
type ToolCallback<Args = undefined> = (args: Args, extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult>;Description
Signature implemented by MCP tool handlers invoked through {@link defineTool}.