Skip to content

ClassToolProps

@tsed/platform-mcp

Usage ​

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

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

Overview ​

ts
type ClassToolProps<Input, Output = unknown> = BaseToolProps<Input, Output> & {
    name?: string;
    token: Type | AbstractType<any>;
    propertyKey: string | symbol;
};

Description ​

Configuration accepted when decorating class methods as MCP tools.

name ​

ts
name?: string;

token ​

ts
token: Type | AbstractType<any>;

propertyKey ​

ts
propertyKey: string | symbol;

Released under the MIT License.