@iflow-mcp/claudeus-wp-mcp
Version:
The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI
52 lines • 1.38 kB
JavaScript
/**
* WordPress Plugins API Client
* Handles plugin management operations
*/
import { BaseApiClient } from './base-client.js';
export class PluginsApiClient extends BaseApiClient {
// ==========================================
// PLUGINS
// ==========================================
/**
* Get all installed plugins
* @param filters Optional filters (status, search)
*/
async getPlugins(filters) {
return this.get('/plugins', filters);
}
/**
* Get a specific plugin by its file path
* @param plugin Plugin file path (e.g., "akismet/akismet")
*/
async getPlugin(plugin) {
return this.get(`/plugins/${plugin}`);
}
/**
* Activate a plugin
* @param plugin Plugin file path
*/
async activatePlugin(plugin) {
const data = {
status: 'active'
};
return this.post(`/plugins/${plugin}`, data);
}
/**
* Deactivate a plugin
* @param plugin Plugin file path
*/
async deactivatePlugin(plugin) {
const data = {
status: 'inactive'
};
return this.post(`/plugins/${plugin}`, data);
}
/**
* Delete a plugin
* @param plugin Plugin file path
*/
async deletePlugin(plugin) {
return this.delete(`/plugins/${plugin}`);
}
}
//# sourceMappingURL=plugins.js.map