UNPKG

@eggjs/controller-decorator

Version:

tegg controller decorator

5 lines (4 loc) 392 B
import { MCPToolParams } from '@eggjs/tegg-types'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export declare function MCPTool(params?: MCPToolParams): (target: any, propertyKey: PropertyKey) => void; export declare function ToolArgsSchema(argsSchema: Parameters<McpServer['tool']>['2']): (target: any, propertyKey: PropertyKey, parameterIndex: number) => void;