UNPKG

@iflow-mcp/claudeus-wp-mcp

Version:

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

34 lines 1.17 kB
export async function handlePatternTools(name, args, client) { switch (name) { case 'claudeus_wp_patterns__get_local': { const patterns = await client.getPatterns(); return { content: [{ type: "text", text: JSON.stringify(patterns, null, 2) }] }; } case 'claudeus_wp_patterns__get_categories': { const categories = await client.getPatternCategories(); return { content: [{ type: "text", text: JSON.stringify(categories, null, 2) }] }; } case 'claudeus_wp_patterns__search_directory': { const patterns = await client.searchPatternDirectory(args.filters); return { content: [{ type: "text", text: JSON.stringify(patterns, null, 2) }] }; } default: throw new Error(`Unknown pattern tool: ${name}`); } } //# sourceMappingURL=handlers.js.map