Skip to content

ToolCallback

@tsed/platform-mcp

Usage

typescript
import { ToolCallback } from "@tsed/platform/platform-mcp/src/fn/defineTool";

See /packages/platform/platform-mcp/src/fn/defineTool.ts.

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}.

Released under the MIT License.