| 1 | import { Module } from '@nestjs/common' |
| 2 | import { ApiTags } from '@nestjs/swagger' |
| 3 | import { McpModule } from '@yikart/nest-mcp' |
| 4 | import { ChannelsModule } from '../channels/channels.module' |
| 5 | import { ChannelsMcpModule } from '../channels/mcp/channels.mcp.module' |
| 6 | import { ContentMcpController } from '../content/content.mcp.controller' |
| 7 | import { ContentModule } from '../content/content.module' |
| 8 | import { DraftGenerationMcpController } from './draft-generation.mcp.controller' |
| 9 | |
| 10 | @Module({ |
| 11 | imports: [ |
| 12 | McpModule.forRoot({ |
| 13 | name: 'aitoearn', |
| 14 | version: '1.0.0', |
| 15 | apiPrefix: 'unified', |
| 16 | decorators: [ApiTags('MCP/Unified')], |
| 17 | }), |
| 18 | ChannelsModule, |
| 19 | ChannelsMcpModule, |
| 20 | ContentModule, |
| 21 | ], |
| 22 | providers: [ |
| 23 | ContentMcpController, |
| 24 | DraftGenerationMcpController, |
| 25 | ], |
| 26 | }) |
| 27 | export class UnifiedMcpModule {} |
| 28 |