claudeus-wp-mcp
Version:
The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI
47 lines • 1.74 kB
JavaScript
import { UserConsentManager } from './UserConsentManager.js';
import { DataPrivacyManager } from './DataPrivacyManager.js';
import { ToolSafetyController } from './ToolSafetyController.js';
export class SecurityManager {
consentManager;
privacyManager;
toolController;
constructor(config) {
this.consentManager = new UserConsentManager();
this.privacyManager = new DataPrivacyManager(this.consentManager, config);
this.toolController = new ToolSafetyController(this.consentManager);
}
// Resource Access Control
async authorizeResourceAccess(resource, context) {
return this.privacyManager.exposeResource(resource, context);
}
// Tool Execution Control
async authorizeToolExecution(tool, params) {
const validation = await this.toolController.validateToolExecution(tool, params);
return validation.valid;
}
async executeToolSafely(tool, params, executor) {
return this.toolController.executeWithSafety(tool, params, executor);
}
// Data Privacy Control
maskSensitiveData(data) {
return this.privacyManager.maskSensitiveData(data);
}
// Consent Management
async requestConsent(operation, context) {
return this.consentManager.requestConsent(operation, context);
}
async canShareExternally(resource) {
return this.privacyManager.canShareExternally(resource);
}
hasConsent(type) {
return this.consentManager.hasConsent(type);
}
// Audit & Logging
getConsentAuditLog() {
return this.consentManager.getAuditLog();
}
getToolExecutionLog() {
return this.toolController.getExecutionLog();
}
}
//# sourceMappingURL=SecurityManager.js.map