presentation.module.ts•936 B
import { Module } from '@nestjs/common';
import { CqrsModule } from '@nestjs/cqrs';
import { ApplicationModule } from 'src/application/application.module';
import { InfrastructureModule } from 'src/infrastructure/infrastructure.module';
import { McpModule } from '@rekog/mcp-nest';
import { WeatherTool } from './tools/weather.tool';
import { WeatherPrompt } from './prompts/weather.prompt';
import { randomUUID } from 'crypto';
@Module({
imports: [
CqrsModule,
InfrastructureModule,
ApplicationModule,
McpModule.forRoot({
name: 'weather-mcp-server',
version: '1.0.0',
streamableHttp: {
enableJsonResponse: false,
sessionIdGenerator: () => randomUUID(),
statelessMode: false,
},
})
],
providers: [
WeatherTool,
WeatherPrompt
],
})
export class PresentationModule { }