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.

12 lines (11 loc) 384 B
import type { Type } from '@nestjs/common'; import type { Request } from 'express'; import type { McpHandlerArgs } from '../types/handler-args.types'; export interface McpExecutionContext { getType(): 'mcp'; getHandler(): (...args: any[]) => any; getClass(): Type<any>; getSessionId(): string; getArgs<T = McpHandlerArgs>(): T; getRequest<R = Request>(): R; }