返回 AiToEarn
unified-mcp.module.ts
根目录 / project / aitoearn-backend / apps / aitoearn-server / src / core / unified-mcp / unified-mcp.module.ts
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
28 lines TYPESCRIPT