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, Output = unknown> = (args: Args, ctx: ServerContext) => CallToolResult | Promise<CallToolResult> | Output | Promise<Output>;

Description

Signature implemented by MCP tool handlers invoked through {@link defineTool}.

Released under the MIT License.