@iflow-mcp/claudeus-wp-mcp
Version:
The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI
18 lines • 604 B
JavaScript
import axios from 'axios';
export async function handleDiscoveryTools(name, args, client) {
switch (name) {
case 'claudeus_wp_discover_endpoints': {
const baseUrl = client.site.url;
const response = await axios.get(`${baseUrl}/wp-json/`);
return {
content: [{
type: "text",
text: JSON.stringify(response.data, null, 2)
}]
};
}
default:
throw new Error(`Unknown discovery tool: ${name}`);
}
}
//# sourceMappingURL=handlers.js.map