UNPKG

@iflow-mcp/claudeus-wp-mcp

Version:

The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI

40 lines (39 loc) 1.42 kB
import { SecurityConfig, ConsentType, Operation } from '../types/security.js'; interface Resource { id: string | number; type: string; [key: string]: unknown; } interface Context { userId?: string | number; operation?: string; [key: string]: unknown; } interface ExecutionResult<T = unknown> { success: boolean; result?: T; error?: Error; } interface AuditLogEntry { timestamp: string; type: string; operation: string; status: 'success' | 'failure'; details: Record<string, unknown>; } export declare class SecurityManager { private readonly consentManager; private readonly privacyManager; private readonly toolController; constructor(config: SecurityConfig); authorizeResourceAccess(resource: Resource, context?: Context): Promise<boolean>; authorizeToolExecution(tool: string, params: Record<string, unknown>): Promise<boolean>; executeToolSafely<T = unknown>(tool: string, params: Record<string, unknown>, executor: () => Promise<T>): Promise<ExecutionResult<T>>; maskSensitiveData<T extends Record<string, unknown>>(data: T): T; requestConsent(operation: Operation, context?: Context): Promise<boolean>; canShareExternally(resource: Resource): Promise<boolean>; hasConsent(type: ConsentType): boolean; getConsentAuditLog(): Array<AuditLogEntry>; getToolExecutionLog(): Array<AuditLogEntry>; } export {};