Skip to main content
Glama

CTS MCP Server

by EricA1019
safety.d.tsโ€ข1.3 kB
/** * Cleanup Safety Validation * * Pre-flight safety checks to prevent accidental data loss: * - Git working tree validation * - Critical file protection * - Pattern-based exclusion matching */ export interface SafetyConfig { requireCleanGit: boolean; dryRun: boolean; exclusions: string[]; trashDir: string; } export interface SafetyCheck { name: string; passed: boolean; message: string; } export interface SafetyReport { allPassed: boolean; checks: SafetyCheck[]; } /** * Validate project safety before cleanup operations */ export declare function validateSafety(projectPath: string, config: SafetyConfig): Promise<SafetyReport>; /** * Check if a file path matches any exclusion pattern * * Uses minimatch for glob pattern matching: * - ** matches any directory depth * - * matches any characters except / * - ? matches a single character */ export declare function isExcluded(filePath: string, exclusions: string[]): boolean; /** * Check if cleanup operation would delete critical files */ export declare function willDeleteCritical(criticalFiles: string[], exclusions: string[]): boolean; /** * Format safety report for display */ export declare function formatSafetyReport(report: SafetyReport): string; //# sourceMappingURL=safety.d.ts.map

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/EricA1019/CTS_MCP'

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