UNPKG

claudeus-wp-mcp

Version:

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

51 lines (50 loc) 1.46 kB
/** * WordPress Comments API Client * Handles comments, moderation, and replies */ import { BaseApiClient } from './base-client.js'; import { PaginatedResponse } from '../types/pagination.js'; import { Comment, CommentData, CommentFilters } from '../types/comment.js'; export declare class CommentsApiClient extends BaseApiClient { /** * Get a list of comments with pagination metadata */ getComments(filters?: CommentFilters): Promise<PaginatedResponse<Comment[]>>; /** * Get a single comment by ID */ getComment(id: number, password?: string): Promise<Comment>; /** * Create a new comment */ createComment(data: CommentData): Promise<Comment>; /** * Update an existing comment */ updateComment(id: number, data: Partial<CommentData>): Promise<Comment>; /** * Delete a comment * @param id Comment ID * @param force Whether to bypass trash and force deletion */ deleteComment(id: number, force?: boolean): Promise<{ deleted: boolean; previous: Comment; }>; /** * Approve a comment */ approveComment(id: number): Promise<Comment>; /** * Hold a comment for moderation */ holdComment(id: number): Promise<Comment>; /** * Mark a comment as spam */ spamComment(id: number): Promise<Comment>; /** * Move a comment to trash */ trashComment(id: number): Promise<Comment>; }