Skip to main content
Glama

Claudeus WordPress MCP

by deus-h
settings.ts1.92 kB
/** * WordPress Site Settings API Client * Handles site configuration and post type/status discovery */ import { BaseApiClient } from './base-client.js'; import { SiteSettings, SiteSettingsData, PostType, PostStatus } from '../types/settings.js'; export class SettingsApiClient extends BaseApiClient { // ========================================== // SITE SETTINGS // ========================================== /** * Get all site settings */ async getSettings(): Promise<SiteSettings> { return this.get<SiteSettings>('/settings'); } /** * Update site settings * @param data Settings to update */ async updateSettings(data: SiteSettingsData): Promise<SiteSettings> { return this.post<SiteSettings>('/settings', data); } // ========================================== // POST TYPES // ========================================== /** * Get all registered post types */ async getPostTypes(): Promise<Record<string, PostType>> { return this.get<Record<string, PostType>>('/types'); } /** * Get a specific post type * @param type Post type slug (e.g., 'post', 'page', 'attachment') */ async getPostType(type: string): Promise<PostType> { return this.get<PostType>(`/types/${type}`); } // ========================================== // POST STATUSES // ========================================== /** * Get all registered post statuses */ async getPostStatuses(): Promise<Record<string, PostStatus>> { return this.get<Record<string, PostStatus>>('/statuses'); } /** * Get a specific post status * @param status Post status slug (e.g., 'publish', 'draft', 'pending') */ async getPostStatus(status: string): Promise<PostStatus> { return this.get<PostStatus>(`/statuses/${status}`); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deus-h/claudeus-wp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server