vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
41 lines • 1.4 kB
TypeScript
export interface PathValidationResult {
isValid: boolean;
sanitizedPath?: string;
error?: string;
warnings?: string[];
}
export interface PathSecurityConfig {
allowedBasePaths: string[];
allowedExtensions: string[];
maxPathLength: number;
allowSymlinks: boolean;
strictMode: boolean;
testMode?: {
allowedTestPaths?: string[];
enableTestLogging?: boolean;
pathLengthMultiplier?: number;
relaxedExtensions?: boolean;
};
}
export declare class PathSecurityValidator {
private config;
private isTestMode;
constructor(config?: Partial<PathSecurityConfig>);
validatePath(inputPath: string): Promise<PathValidationResult>;
private containsPathTraversal;
validatePaths(inputPaths: string[]): Promise<PathValidationResult[]>;
updateConfig(newConfig: Partial<PathSecurityConfig>): void;
private validateTestModePath;
getConfig(): PathSecurityConfig;
getSecurityMetrics(): {
isTestMode: boolean;
securityLevel: string;
allowedBasePaths: number;
allowedTestPaths: number;
maxPathLength: number;
testModeMaxPathLength: number;
};
}
export declare const defaultPathValidator: PathSecurityValidator;
export declare function validateSecurePath(inputPath: string): Promise<PathValidationResult>;
//# sourceMappingURL=path-security-validator.d.ts.map