mcp-auth-guard.module.tsβ’639 B
import { Global, Module } from '@nestjs/common'
import { ConfigModule } from '@nestjs/config'
import { AllowlistService } from './allowlist.service'
import { EmailAllowlistGuard } from './email-allowlist.guard'
/**
* Global module that provides MCP authentication guards and their dependencies
* This module is marked as @Global() to make EmailAllowlistGuard available
* across the entire application, including to McpModule which needs it
*/
@Global()
@Module({
imports: [ConfigModule],
providers: [AllowlistService, EmailAllowlistGuard],
exports: [AllowlistService, EmailAllowlistGuard],
})
export class McpAuthGuardModule {}