UNPKG

mcpdog

Version:

MCPDog - Universal MCP Server Manager with Web Interface

47 lines 1.46 kB
/** * Server Name Validator * Provides unified validation and naming conventions for MCP server names */ export interface ServerNameValidationResult { valid: boolean; error?: string; suggestions?: string[]; } export declare class ServerNameValidator { private static readonly SERVER_NAME_PATTERN; private static readonly MAX_NAME_LENGTH; private static readonly MIN_NAME_LENGTH; /** * Validate server name according to best practices */ static validateServerName(name: string): ServerNameValidationResult; /** * Generate suggestions for invalid server names */ private static generateSuggestions; /** * Check if a name is reserved */ private static isReservedName; /** * Generate a unique server name based on base name and existing names */ static generateUniqueName(baseName: string, existingNames: string[]): string; /** * Normalize server name (convert to valid format) */ static normalizeServerName(name: string): string; /** * Check if server name conflicts with existing names */ static checkNameConflict(name: string, existingNames: string[]): boolean; /** * Get all validation errors for multiple server names */ static validateMultipleNames(names: string[]): { valid: boolean; errors: string[]; conflicts: string[]; }; } //# sourceMappingURL=server-name-validator.d.ts.map