UNPKG

claudeus-wp-mcp

Version:

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

56 lines 1.55 kB
/** * WordPress Site Settings API Client * Handles site configuration and post type/status discovery */ import { BaseApiClient } from './base-client.js'; export class SettingsApiClient extends BaseApiClient { // ========================================== // SITE SETTINGS // ========================================== /** * Get all site settings */ async getSettings() { return this.get('/settings'); } /** * Update site settings * @param data Settings to update */ async updateSettings(data) { return this.post('/settings', data); } // ========================================== // POST TYPES // ========================================== /** * Get all registered post types */ async getPostTypes() { return this.get('/types'); } /** * Get a specific post type * @param type Post type slug (e.g., 'post', 'page', 'attachment') */ async getPostType(type) { return this.get(`/types/${type}`); } // ========================================== // POST STATUSES // ========================================== /** * Get all registered post statuses */ async getPostStatuses() { return this.get('/statuses'); } /** * Get a specific post status * @param status Post status slug (e.g., 'publish', 'draft', 'pending') */ async getPostStatus(status) { return this.get(`/statuses/${status}`); } } //# sourceMappingURL=settings.js.map