import { IsString, IsOptional, IsObject } from "class-validator";

/**
 * DTO for registering a new MCP server
 */
export class RegisterServerDto {
  @IsString()
  id!: string;

  @IsString()
  name!: string;

  @IsString()
  description!: string;

  @IsString()
  command!: string;

  @IsOptional()
  @IsString({ each: true })
  args?: string[];

  @IsOptional()
  @IsObject()
  env?: Record<string, string>;
}
