Skip to main content
Glama

MCP Server NestJS

by Cstannahill
create-post.dto.ts551 B
// create-post.dto.ts import { IsNotEmpty, IsString, MinLength, IsOptional, Allow, } from 'class-validator'; import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class CreatePostDto { @ApiProperty({ example: 'My First Post' }) @IsNotEmpty() @IsString() @MinLength(3) title: string; @ApiProperty({ example: 'This is the content of the post.' }) @IsNotEmpty() @IsString() @MinLength(10) content: string; @ApiPropertyOptional({ example: true }) @IsOptional() @Allow() published?: boolean; }

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