UNPKG

@iflow-mcp/claudeus-wp-mcp

Version:

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

33 lines (32 loc) 1.06 kB
import { UserConsentManager } from './UserConsentManager.js'; interface ToolValidationResult { valid: boolean; errors?: string[]; } interface ToolExecutionResult<T = unknown> { success: boolean; result?: T; error?: Error; } interface ExecutionLogEntry { timestamp: string; type: string; operation: string; status: 'success' | 'failure'; details: Record<string, unknown>; tool: string; params: Record<string, unknown>; } export declare class ToolSafetyController { private readonly consentManager; private readonly rateLimiter; private executionLog; constructor(consentManager: UserConsentManager, rateLimiter?: Map<string, number>); validateToolExecution(tool: string, params: unknown): Promise<ToolValidationResult>; executeWithSafety<T = unknown>(tool: string, params: unknown, executor: () => Promise<T>): Promise<ToolExecutionResult<T>>; private validateParameters; private isRateLimited; private logExecution; getExecutionLog(): ExecutionLogEntry[]; } export {};