UNPKG

@iflow-mcp/claudeus-wp-mcp

Version:

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

54 lines (53 loc) 1.72 kB
/** * WordPress Site Health API Client * Handles site health checks and diagnostics */ import { AxiosInstance } from 'axios'; import { SiteConfig } from '../types/index.js'; import { HealthTestResult, DirectorySizes, AllHealthTests } from '../types/health.js'; export declare class HealthApiClient { protected client: AxiosInstance; protected _site: SiteConfig; constructor(site: SiteConfig); get site(): SiteConfig; /** * Test authorization header * Checks if the Authorization header is working correctly */ testAuthorizationHeader(): Promise<HealthTestResult>; /** * Test background updates * Checks if background updates are enabled and working */ testBackgroundUpdates(): Promise<HealthTestResult>; /** * Test WordPress.org communication * Checks if the site can communicate with WordPress.org */ testDotOrgCommunication(): Promise<HealthTestResult>; /** * Test HTTPS status * Checks if the site is using HTTPS correctly */ testHttpsStatus(): Promise<HealthTestResult>; /** * Test loopback requests * Checks if the site can make requests to itself */ testLoopbackRequests(): Promise<HealthTestResult>; /** * Test page cache * Checks if page caching is configured correctly */ testPageCache(): Promise<HealthTestResult>; /** * Get directory sizes * Returns the size of WordPress directories (themes, plugins, uploads, etc.) */ getDirectorySizes(): Promise<DirectorySizes>; /** * Run all site health tests * Executes all available health checks and returns results */ runAllTests(): Promise<AllHealthTests>; }