UNPKG

@nestjs-mcp/server

Version:

Modular library for building scalable MCP servers with NestJS, providing decorators and integration patterns as a wrapper for the official MCP TypeScript SDK.

9 lines (8 loc) 548 B
import { z, ZodRawShape, ZodTypeAny } from 'zod'; import { RequestHandlerExtra } from '../mcp.types'; export declare class ToolHandlerArgs<Args extends ZodRawShape | undefined = undefined> { readonly args?: Args extends ZodRawShape ? z.objectOutputType<Args, ZodTypeAny> : undefined; readonly extra: RequestHandlerExtra; private constructor(); static from<Args extends ZodRawShape | undefined>(extra: RequestHandlerExtra, args?: Args extends ZodRawShape ? z.objectOutputType<Args, ZodTypeAny> : undefined): ToolHandlerArgs<Args>; }