返回 AiToEarn
channels.mcp.module.ts
根目录 / project / aitoearn-backend / apps / aitoearn-server / src / core / channels / mcp / channels.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.module'
5 import { ChannelsMcpController } from './channels.mcp.controller'
6 import { ChannelsMcpService } from './channels.mcp.service'
7
8 @Module({
9 imports: [
10 McpModule.forRoot({
11 name: 'channels',
12 version: '1.0.0',
13 apiPrefix: 'channels',
14 decorators: [ApiTags('MCP/Channels')],
15 }),
16 ChannelsModule,
17 ],
18 providers: [ChannelsMcpController, ChannelsMcpService],
19 exports: [ChannelsMcpController, ChannelsMcpService],
20 })
21 export class ChannelsMcpModule {}
22
22 lines TYPESCRIPT