Skip to main content
Glama

MCP Server NestJS

by Cstannahill
file.module.ts837 B
// src/file/file.module.ts import { Module } from '@nestjs/common'; import { FileController } from './file.controller'; import { FileService } from './file.service'; import { MulterModule } from '@nestjs/platform-express'; import { diskStorage } from 'multer'; import { extname } from 'path'; @Module({ imports: [ MulterModule.register({ storage: diskStorage({ destination: './uploads', filename: (req, file, callback) => { const uniqueSuffix = Date.now() + '-' + Math.round(Math.random() * 1e9); const ext = extname(file.originalname); const filename = `${uniqueSuffix}${ext}`; callback(null, filename); }, }), }), ], controllers: [FileController], providers: [FileService], exports: [FileService], }) export class FileModule {}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cstannahill/mcp-server-nestjs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server