- add HttpExceptionFilter logging BadRequestException at warn and InternalServerErrorException at error with cause chain
- add LoggingInterceptor logging request/response pairs at debug level with method, path, body, status, and duration
- extract CodeExecutorService into standalone CodeExecutorModule imported by BrowserModule and McpModule
- thread { cause: err } into all catch blocks across auth, browser, and code-executor services
16 lines
643 B
TypeScript
16 lines
643 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { McpController } from './mcp.controller';
|
|
import { McpService } from './mcp.service';
|
|
import { AuthModule } from '../auth/auth.module';
|
|
import { SessionModule } from '../session/session.module';
|
|
import { EnvironmentModule } from '../environment/environment.module';
|
|
import { BrowserModule } from '../browser/browser.module';
|
|
import { CodeExecutorModule } from '../code-executor/code-executor.module';
|
|
|
|
@Module({
|
|
imports: [AuthModule, SessionModule, EnvironmentModule, BrowserModule, CodeExecutorModule],
|
|
controllers: [McpController],
|
|
providers: [McpService],
|
|
})
|
|
export class McpModule {}
|