UNPKG

@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.76 kB
export async function handlePluginTools(name, args, client) { switch (name) { case 'claudeus_wp_plugins__list': { const plugins = await client.getPlugins(args.filters); return { content: [{ type: "text", text: JSON.stringify(plugins, null, 2) }] }; } case 'claudeus_wp_plugins__get': { const plugin = await client.getPlugin(args.plugin); return { content: [{ type: "text", text: JSON.stringify(plugin, null, 2) }] }; } case 'claudeus_wp_plugins__activate': { const plugin = await client.activatePlugin(args.plugin); return { content: [{ type: "text", text: JSON.stringify(plugin, null, 2) }] }; } case 'claudeus_wp_plugins__deactivate': { const plugin = await client.deactivatePlugin(args.plugin); return { content: [{ type: "text", text: JSON.stringify(plugin, null, 2) }] }; } case 'claudeus_wp_plugins__delete': { const result = await client.deletePlugin(args.plugin); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } default: throw new Error(`Unknown plugin tool: ${name}`); } } //# sourceMappingURL=handlers.js.map