@every-env/sparkle-mcp-server
Version:
MCP server for secure Sparkle folder file access with Claude AI, including clipboard history support
39 lines • 1.22 kB
TypeScript
interface SecurityConfig {
allowedPaths?: string[];
blockedPaths?: string[];
maxFileSize?: number;
allowSymlinks?: boolean;
}
export declare class PathValidator {
private config;
private defaultAllowedPaths;
private defaultBlockedPaths;
constructor(config?: SecurityConfig);
validatePath(requestedPath: string): Promise<string>;
private isPathBlocked;
private isPathAllowed;
sanitizeFilename(filename: string): string;
validateSearchPath(searchPath: string): Promise<string>;
getAllowedPaths(): string[];
getBlockedPaths(): string[];
}
export declare class RateLimiter {
private requests;
private maxRequests;
private windowMs;
constructor(maxRequests?: number, windowMs?: number);
checkLimit(identifier: string): boolean;
reset(identifier: string): void;
cleanup(): void;
getRemainingRequests(identifier?: string): number;
}
export declare class FileTypeValidator {
private allowedExtensions;
private blockedExtensions;
constructor();
isAllowed(filename: string): boolean;
addAllowedType(extension: string): void;
addBlockedType(extension: string): void;
}
export {};
//# sourceMappingURL=security.d.ts.map