mcp-wordpress 1.1.7 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +388 -66
- package/dist/cache/CacheInvalidation.d.ts +118 -0
- package/dist/cache/CacheInvalidation.d.ts.map +1 -0
- package/dist/cache/CacheInvalidation.js +349 -0
- package/dist/cache/CacheInvalidation.js.map +1 -0
- package/dist/cache/CacheManager.d.ts +143 -0
- package/dist/cache/CacheManager.d.ts.map +1 -0
- package/dist/cache/CacheManager.js +308 -0
- package/dist/cache/CacheManager.js.map +1 -0
- package/dist/cache/HttpCacheWrapper.d.ts +121 -0
- package/dist/cache/HttpCacheWrapper.d.ts.map +1 -0
- package/dist/cache/HttpCacheWrapper.js +280 -0
- package/dist/cache/HttpCacheWrapper.js.map +1 -0
- package/dist/cache/__tests__/CacheInvalidation.test.d.ts +5 -0
- package/dist/cache/__tests__/CacheInvalidation.test.d.ts.map +1 -0
- package/dist/cache/__tests__/CacheInvalidation.test.js +236 -0
- package/dist/cache/__tests__/CacheInvalidation.test.js.map +1 -0
- package/dist/cache/__tests__/CacheManager.test.d.ts +5 -0
- package/dist/cache/__tests__/CacheManager.test.d.ts.map +1 -0
- package/dist/cache/__tests__/CacheManager.test.js +233 -0
- package/dist/cache/__tests__/CacheManager.test.js.map +1 -0
- package/dist/cache/__tests__/CachedWordPressClient.test.d.ts +5 -0
- package/dist/cache/__tests__/CachedWordPressClient.test.d.ts.map +1 -0
- package/dist/cache/__tests__/CachedWordPressClient.test.js +228 -0
- package/dist/cache/__tests__/CachedWordPressClient.test.js.map +1 -0
- package/dist/cache/__tests__/HttpCacheWrapper.test.d.ts +5 -0
- package/dist/cache/__tests__/HttpCacheWrapper.test.d.ts.map +1 -0
- package/dist/cache/__tests__/HttpCacheWrapper.test.js +296 -0
- package/dist/cache/__tests__/HttpCacheWrapper.test.js.map +1 -0
- package/dist/cache/index.d.ts +12 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +9 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/client/CachedWordPressClient.d.ts +160 -0
- package/dist/client/CachedWordPressClient.d.ts.map +1 -0
- package/dist/client/CachedWordPressClient.js +338 -0
- package/dist/client/CachedWordPressClient.js.map +1 -0
- package/dist/client/WordPressClient.d.ts +81 -0
- package/dist/client/WordPressClient.d.ts.map +1 -0
- package/dist/client/WordPressClient.js +354 -0
- package/dist/client/WordPressClient.js.map +1 -0
- package/dist/config/ConfigurationSchema.d.ts +281 -0
- package/dist/config/ConfigurationSchema.d.ts.map +1 -0
- package/dist/config/ConfigurationSchema.js +205 -0
- package/dist/config/ConfigurationSchema.js.map +1 -0
- package/dist/config/ServerConfiguration.d.ts +38 -0
- package/dist/config/ServerConfiguration.d.ts.map +1 -0
- package/dist/config/ServerConfiguration.js +158 -0
- package/dist/config/ServerConfiguration.js.map +1 -0
- package/dist/docs/DocumentationGenerator.d.ts +184 -0
- package/dist/docs/DocumentationGenerator.d.ts.map +1 -0
- package/dist/docs/DocumentationGenerator.js +735 -0
- package/dist/docs/DocumentationGenerator.js.map +1 -0
- package/dist/docs/MarkdownFormatter.d.ts +84 -0
- package/dist/docs/MarkdownFormatter.d.ts.map +1 -0
- package/dist/docs/MarkdownFormatter.js +448 -0
- package/dist/docs/MarkdownFormatter.js.map +1 -0
- package/dist/docs/index.d.ts +8 -0
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +7 -0
- package/dist/docs/index.js.map +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -212
- package/dist/index.js.map +1 -1
- package/dist/performance/AnomalyDetector.d.ts +63 -0
- package/dist/performance/AnomalyDetector.d.ts.map +1 -0
- package/dist/performance/AnomalyDetector.js +222 -0
- package/dist/performance/AnomalyDetector.js.map +1 -0
- package/dist/performance/BenchmarkAnalyzer.d.ts +67 -0
- package/dist/performance/BenchmarkAnalyzer.d.ts.map +1 -0
- package/dist/performance/BenchmarkAnalyzer.js +301 -0
- package/dist/performance/BenchmarkAnalyzer.js.map +1 -0
- package/dist/performance/MetricsCollector.d.ts +139 -0
- package/dist/performance/MetricsCollector.d.ts.map +1 -0
- package/dist/performance/MetricsCollector.js +320 -0
- package/dist/performance/MetricsCollector.js.map +1 -0
- package/dist/performance/PerformanceAnalytics.d.ts +162 -0
- package/dist/performance/PerformanceAnalytics.d.ts.map +1 -0
- package/dist/performance/PerformanceAnalytics.js +554 -0
- package/dist/performance/PerformanceAnalytics.js.map +1 -0
- package/dist/performance/PerformanceMonitor.d.ts +202 -0
- package/dist/performance/PerformanceMonitor.d.ts.map +1 -0
- package/dist/performance/PerformanceMonitor.js +478 -0
- package/dist/performance/PerformanceMonitor.js.map +1 -0
- package/dist/performance/TrendAnalyzer.d.ts +69 -0
- package/dist/performance/TrendAnalyzer.d.ts.map +1 -0
- package/dist/performance/TrendAnalyzer.js +203 -0
- package/dist/performance/TrendAnalyzer.js.map +1 -0
- package/dist/performance/index.d.ts +11 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/index.js +8 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/security/InputValidator.d.ts +215 -0
- package/dist/security/InputValidator.d.ts.map +1 -0
- package/dist/security/InputValidator.js +278 -0
- package/dist/security/InputValidator.js.map +1 -0
- package/dist/security/SecurityConfig.d.ts +129 -0
- package/dist/security/SecurityConfig.d.ts.map +1 -0
- package/dist/security/SecurityConfig.js +262 -0
- package/dist/security/SecurityConfig.js.map +1 -0
- package/dist/server/ConnectionTester.d.ts +24 -0
- package/dist/server/ConnectionTester.d.ts.map +1 -0
- package/dist/server/ConnectionTester.js +61 -0
- package/dist/server/ConnectionTester.js.map +1 -0
- package/dist/server/ToolRegistry.d.ts +46 -0
- package/dist/server/ToolRegistry.d.ts.map +1 -0
- package/dist/server/ToolRegistry.js +148 -0
- package/dist/server/ToolRegistry.js.map +1 -0
- package/dist/tools/BaseToolClass.d.ts +76 -0
- package/dist/tools/BaseToolClass.d.ts.map +1 -0
- package/dist/tools/BaseToolClass.js +104 -0
- package/dist/tools/BaseToolClass.js.map +1 -0
- package/dist/tools/BaseToolManager.d.ts +26 -0
- package/dist/tools/BaseToolManager.d.ts.map +1 -0
- package/dist/tools/BaseToolManager.js +56 -0
- package/dist/tools/BaseToolManager.js.map +1 -0
- package/dist/tools/base.d.ts +37 -0
- package/dist/tools/base.d.ts.map +1 -0
- package/dist/tools/base.js +60 -0
- package/dist/tools/base.js.map +1 -0
- package/dist/tools/cache.d.ts +260 -0
- package/dist/tools/cache.d.ts.map +1 -0
- package/dist/tools/cache.js +237 -0
- package/dist/tools/cache.js.map +1 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/performance.d.ts +63 -0
- package/dist/tools/performance.d.ts.map +1 -0
- package/dist/tools/performance.js +865 -0
- package/dist/tools/performance.js.map +1 -0
- package/dist/types/client.d.ts +1 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/client.js.map +1 -1
- package/dist/utils/toolWrapper.d.ts +4 -0
- package/dist/utils/toolWrapper.d.ts.map +1 -1
- package/dist/utils/toolWrapper.js +11 -0
- package/dist/utils/toolWrapper.js.map +1 -1
- package/dist/utils/validation.d.ts +68 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +185 -0
- package/dist/utils/validation.js.map +1 -0
- package/docs/CACHING.md +340 -0
- package/docs/DOCKER.md +451 -0
- package/docs/PERFORMANCE_MONITORING.md +471 -0
- package/docs/SECURITY_TESTING.md +393 -0
- package/docs/api/README.md +200 -0
- package/docs/api/categories/auth.md +40 -0
- package/docs/api/categories/cache.md +41 -0
- package/docs/api/categories/comment.md +44 -0
- package/docs/api/categories/media.md +43 -0
- package/docs/api/categories/page.md +43 -0
- package/docs/api/categories/performance.md +44 -0
- package/docs/api/categories/post.md +43 -0
- package/docs/api/categories/site.md +43 -0
- package/docs/api/categories/taxonomy.md +47 -0
- package/docs/api/categories/user.md +43 -0
- package/docs/api/openapi.json +3305 -0
- package/docs/api/summary.json +12 -0
- package/docs/api/tools/wp_approve_comment.md +98 -0
- package/docs/api/tools/wp_cache_clear.md +120 -0
- package/docs/api/tools/wp_cache_info.md +119 -0
- package/docs/api/tools/wp_cache_stats.md +119 -0
- package/docs/api/tools/wp_cache_warm.md +119 -0
- package/docs/api/tools/wp_create_application_password.md +102 -0
- package/docs/api/tools/wp_create_category.md +102 -0
- package/docs/api/tools/wp_create_comment.md +128 -0
- package/docs/api/tools/wp_create_page.md +135 -0
- package/docs/api/tools/wp_create_post.md +147 -0
- package/docs/api/tools/wp_create_tag.md +101 -0
- package/docs/api/tools/wp_create_user.md +135 -0
- package/docs/api/tools/wp_delete_application_password.md +101 -0
- package/docs/api/tools/wp_delete_category.md +100 -0
- package/docs/api/tools/wp_delete_comment.md +101 -0
- package/docs/api/tools/wp_delete_media.md +108 -0
- package/docs/api/tools/wp_delete_page.md +108 -0
- package/docs/api/tools/wp_delete_post.md +117 -0
- package/docs/api/tools/wp_delete_tag.md +100 -0
- package/docs/api/tools/wp_delete_user.md +108 -0
- package/docs/api/tools/wp_get_application_passwords.md +103 -0
- package/docs/api/tools/wp_get_auth_status.md +101 -0
- package/docs/api/tools/wp_get_category.md +103 -0
- package/docs/api/tools/wp_get_comment.md +103 -0
- package/docs/api/tools/wp_get_current_user.md +101 -0
- package/docs/api/tools/wp_get_media.md +103 -0
- package/docs/api/tools/wp_get_page.md +103 -0
- package/docs/api/tools/wp_get_page_revisions.md +103 -0
- package/docs/api/tools/wp_get_post.md +112 -0
- package/docs/api/tools/wp_get_post_revisions.md +103 -0
- package/docs/api/tools/wp_get_site_settings.md +108 -0
- package/docs/api/tools/wp_get_tag.md +103 -0
- package/docs/api/tools/wp_get_user.md +103 -0
- package/docs/api/tools/wp_list_categories.md +111 -0
- package/docs/api/tools/wp_list_comments.md +111 -0
- package/docs/api/tools/wp_list_media.md +145 -0
- package/docs/api/tools/wp_list_pages.md +145 -0
- package/docs/api/tools/wp_list_posts.md +156 -0
- package/docs/api/tools/wp_list_tags.md +110 -0
- package/docs/api/tools/wp_list_users.md +111 -0
- package/docs/api/tools/wp_performance_alerts.md +162 -0
- package/docs/api/tools/wp_performance_benchmark.md +160 -0
- package/docs/api/tools/wp_performance_export.md +162 -0
- package/docs/api/tools/wp_performance_history.md +161 -0
- package/docs/api/tools/wp_performance_optimize.md +162 -0
- package/docs/api/tools/wp_performance_stats.md +160 -0
- package/docs/api/tools/wp_search_site.md +99 -0
- package/docs/api/tools/wp_spam_comment.md +98 -0
- package/docs/api/tools/wp_switch_auth_method.md +122 -0
- package/docs/api/tools/wp_test_auth.md +96 -0
- package/docs/api/tools/wp_update_category.md +102 -0
- package/docs/api/tools/wp_update_comment.md +127 -0
- package/docs/api/tools/wp_update_media.md +129 -0
- package/docs/api/tools/wp_update_page.md +135 -0
- package/docs/api/tools/wp_update_post.md +144 -0
- package/docs/api/tools/wp_update_site_settings.md +127 -0
- package/docs/api/tools/wp_update_tag.md +102 -0
- package/docs/api/tools/wp_update_user.md +134 -0
- package/docs/api/tools/wp_upload_media.md +131 -0
- package/docs/api/types/WordPressPost.md +39 -0
- package/docs/contract-testing.md +183 -0
- package/docs/developer/NPM_AUTH_SETUP.md +3 -3
- package/docs/wordpress-rest-api-authentication-troubleshooting.md +218 -0
- package/package.json +84 -64
- package/src/cache/CacheInvalidation.ts +421 -0
- package/src/cache/CacheManager.ts +391 -0
- package/src/cache/HttpCacheWrapper.ts +372 -0
- package/src/cache/__tests__/CacheInvalidation.test.ts +299 -0
- package/src/cache/__tests__/CacheManager.test.ts +300 -0
- package/src/cache/__tests__/CachedWordPressClient.test.ts +304 -0
- package/src/cache/__tests__/HttpCacheWrapper.test.ts +359 -0
- package/src/cache/index.ts +26 -0
- package/src/client/CachedWordPressClient.ts +442 -0
- package/src/config/ConfigurationSchema.ts +246 -0
- package/src/config/ServerConfiguration.ts +215 -0
- package/src/docs/DocumentationGenerator.ts +952 -0
- package/src/docs/MarkdownFormatter.ts +494 -0
- package/src/docs/index.ts +21 -0
- package/src/index.ts +14 -274
- package/src/performance/MetricsCollector.ts +447 -0
- package/src/performance/PerformanceAnalytics.ts +762 -0
- package/src/performance/PerformanceMonitor.ts +649 -0
- package/src/performance/index.ts +28 -0
- package/src/security/InputValidator.ts +319 -0
- package/src/security/SecurityConfig.ts +301 -0
- package/src/server/ConnectionTester.ts +74 -0
- package/src/server/ToolRegistry.ts +194 -0
- package/src/tools/BaseToolManager.ts +66 -0
- package/src/tools/cache.ts +259 -0
- package/src/tools/index.ts +2 -0
- package/src/tools/performance.ts +948 -0
- package/src/types/client.ts +1 -0
- package/src/utils/toolWrapper.ts +11 -0
- package/src/utils/validation.ts +259 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# wp_performance_alerts
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Get performance alerts and anomaly detection results
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
|-----------|------|----------|-------------|---------|----------|
|
|
11
|
+
| `site` | `string` | ❌ | Specific site ID for multi-site setups (optional for single site) | - | `site1`, `production` |
|
|
12
|
+
| `severity` | `string` | ❌ | Filter alerts by severity level (info, warning, error, critical) | - | `example` |
|
|
13
|
+
| `category` | `string` | ❌ | Filter alerts by category (performance, cache, system, wordpress) | `all` | `example` |
|
|
14
|
+
| `limit` | `number` | ❌ | Maximum number of alerts to return (default: 20) | - | `10`, `20` |
|
|
15
|
+
| `includeAnomalies` | `boolean` | ❌ | Include detected anomalies (default: true) | - | `example` |
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Basic performance Usage
|
|
20
|
+
|
|
21
|
+
Simple example of using wp_performance_alerts
|
|
22
|
+
|
|
23
|
+
**Command:**
|
|
24
|
+
```bash
|
|
25
|
+
wp_performance_alerts
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Response:**
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"success": true,
|
|
32
|
+
"data": {
|
|
33
|
+
"overview": {
|
|
34
|
+
"overallHealth": "Good",
|
|
35
|
+
"performanceScore": 85,
|
|
36
|
+
"averageResponseTime": "245ms",
|
|
37
|
+
"cacheHitRate": "87.5%"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Error Example (Authentication failure):**
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"error": "Authentication failed",
|
|
47
|
+
"message": "Invalid credentials or insufficient permissions"
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Multi-Site performance Usage
|
|
53
|
+
|
|
54
|
+
Using wp_performance_alerts with specific site targeting
|
|
55
|
+
|
|
56
|
+
**Command:**
|
|
57
|
+
```bash
|
|
58
|
+
wp_performance_alerts --site="site1"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Response:**
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"success": true,
|
|
65
|
+
"data": {
|
|
66
|
+
"overview": {
|
|
67
|
+
"overallHealth": "Good",
|
|
68
|
+
"performanceScore": 85,
|
|
69
|
+
"averageResponseTime": "245ms",
|
|
70
|
+
"cacheHitRate": "87.5%"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Advanced performance Configuration
|
|
80
|
+
|
|
81
|
+
Comprehensive example using all available parameters
|
|
82
|
+
|
|
83
|
+
**Command:**
|
|
84
|
+
```bash
|
|
85
|
+
wp_performance_alerts --site="site1" --severity="example_value" --category="overview" --limit="20" --includeAnomalies="example_value"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Response:**
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"success": true,
|
|
92
|
+
"data": {
|
|
93
|
+
"overview": {
|
|
94
|
+
"overallHealth": "Good",
|
|
95
|
+
"performanceScore": 85,
|
|
96
|
+
"averageResponseTime": "245ms",
|
|
97
|
+
"cacheHitRate": "87.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## Response Format
|
|
111
|
+
|
|
112
|
+
**Return Type:** `PerformanceMetrics`
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"success": true,
|
|
117
|
+
"data": {
|
|
118
|
+
// PerformanceMetrics response data
|
|
119
|
+
},
|
|
120
|
+
"metadata": {
|
|
121
|
+
"timestamp": "2024-01-01T00:00:00.000Z",
|
|
122
|
+
"tool": "wp_performance_alerts",
|
|
123
|
+
"site": "site1"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Error Handling
|
|
129
|
+
|
|
130
|
+
### AUTHENTICATION_FAILED
|
|
131
|
+
|
|
132
|
+
**Message:** Authentication failed
|
|
133
|
+
**Description:** Invalid credentials or insufficient permissions
|
|
134
|
+
**Resolution:** Check your authentication credentials and user permissions
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### VALIDATION_ERROR
|
|
138
|
+
|
|
139
|
+
**Message:** Parameter validation failed
|
|
140
|
+
**Description:** One or more required parameters are missing or invalid
|
|
141
|
+
**Resolution:** Review the required parameters and their formats
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### NOT_FOUND
|
|
145
|
+
|
|
146
|
+
**Message:** Resource not found
|
|
147
|
+
**Description:** The requested resource does not exist
|
|
148
|
+
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### PERMISSION_DENIED
|
|
152
|
+
|
|
153
|
+
**Message:** Insufficient permissions
|
|
154
|
+
**Description:** The user does not have permission to perform this action
|
|
155
|
+
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# wp_performance_benchmark
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Compare current performance against industry benchmarks
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
|-----------|------|----------|-------------|---------|----------|
|
|
11
|
+
| `site` | `string` | ❌ | Specific site ID for multi-site setups (optional for single site) | - | `site1`, `production` |
|
|
12
|
+
| `category` | `string` | ❌ | Benchmark category (response_time, cache_performance, error_rate, system_resources, all) | `all` | `example` |
|
|
13
|
+
| `includeRecommendations` | `boolean` | ❌ | Include improvement recommendations (default: true) | - | `example` |
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
### Basic performance Usage
|
|
18
|
+
|
|
19
|
+
Simple example of using wp_performance_benchmark
|
|
20
|
+
|
|
21
|
+
**Command:**
|
|
22
|
+
```bash
|
|
23
|
+
wp_performance_benchmark
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Response:**
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"success": true,
|
|
30
|
+
"data": {
|
|
31
|
+
"overview": {
|
|
32
|
+
"overallHealth": "Good",
|
|
33
|
+
"performanceScore": 85,
|
|
34
|
+
"averageResponseTime": "245ms",
|
|
35
|
+
"cacheHitRate": "87.5%"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Error Example (Authentication failure):**
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"error": "Authentication failed",
|
|
45
|
+
"message": "Invalid credentials or insufficient permissions"
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Multi-Site performance Usage
|
|
51
|
+
|
|
52
|
+
Using wp_performance_benchmark with specific site targeting
|
|
53
|
+
|
|
54
|
+
**Command:**
|
|
55
|
+
```bash
|
|
56
|
+
wp_performance_benchmark --site="site1"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Response:**
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"success": true,
|
|
63
|
+
"data": {
|
|
64
|
+
"overview": {
|
|
65
|
+
"overallHealth": "Good",
|
|
66
|
+
"performanceScore": 85,
|
|
67
|
+
"averageResponseTime": "245ms",
|
|
68
|
+
"cacheHitRate": "87.5%"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Advanced performance Configuration
|
|
78
|
+
|
|
79
|
+
Comprehensive example using all available parameters
|
|
80
|
+
|
|
81
|
+
**Command:**
|
|
82
|
+
```bash
|
|
83
|
+
wp_performance_benchmark --site="site1" --category="overview" --includeRecommendations="example_value"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Response:**
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"success": true,
|
|
90
|
+
"data": {
|
|
91
|
+
"overview": {
|
|
92
|
+
"overallHealth": "Good",
|
|
93
|
+
"performanceScore": 85,
|
|
94
|
+
"averageResponseTime": "245ms",
|
|
95
|
+
"cacheHitRate": "87.5%"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## Response Format
|
|
109
|
+
|
|
110
|
+
**Return Type:** `PerformanceMetrics`
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{
|
|
114
|
+
"success": true,
|
|
115
|
+
"data": {
|
|
116
|
+
// PerformanceMetrics response data
|
|
117
|
+
},
|
|
118
|
+
"metadata": {
|
|
119
|
+
"timestamp": "2024-01-01T00:00:00.000Z",
|
|
120
|
+
"tool": "wp_performance_benchmark",
|
|
121
|
+
"site": "site1"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Error Handling
|
|
127
|
+
|
|
128
|
+
### AUTHENTICATION_FAILED
|
|
129
|
+
|
|
130
|
+
**Message:** Authentication failed
|
|
131
|
+
**Description:** Invalid credentials or insufficient permissions
|
|
132
|
+
**Resolution:** Check your authentication credentials and user permissions
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### VALIDATION_ERROR
|
|
136
|
+
|
|
137
|
+
**Message:** Parameter validation failed
|
|
138
|
+
**Description:** One or more required parameters are missing or invalid
|
|
139
|
+
**Resolution:** Review the required parameters and their formats
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### NOT_FOUND
|
|
143
|
+
|
|
144
|
+
**Message:** Resource not found
|
|
145
|
+
**Description:** The requested resource does not exist
|
|
146
|
+
**Resolution:** Verify the resource ID and ensure it exists
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### PERMISSION_DENIED
|
|
150
|
+
|
|
151
|
+
**Message:** Insufficient permissions
|
|
152
|
+
**Description:** The user does not have permission to perform this action
|
|
153
|
+
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# wp_performance_export
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Export comprehensive performance report
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
|-----------|------|----------|-------------|---------|----------|
|
|
11
|
+
| `site` | `string` | ❌ | Specific site ID for multi-site setups (optional for single site) | - | `site1`, `production` |
|
|
12
|
+
| `format` | `string` | ❌ | Export format (json, csv, summary) | `summary` | `example` |
|
|
13
|
+
| `includeHistorical` | `boolean` | ❌ | Include historical data (default: true) | - | `example` |
|
|
14
|
+
| `includeAnalytics` | `boolean` | ❌ | Include analytics and insights (default: true) | - | `example` |
|
|
15
|
+
| `timeRange` | `string` | ❌ | Time range for data export (1h, 6h, 24h, 7d, 30d) | - | `example` |
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Basic performance Usage
|
|
20
|
+
|
|
21
|
+
Simple example of using wp_performance_export
|
|
22
|
+
|
|
23
|
+
**Command:**
|
|
24
|
+
```bash
|
|
25
|
+
wp_performance_export
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Response:**
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"success": true,
|
|
32
|
+
"data": {
|
|
33
|
+
"overview": {
|
|
34
|
+
"overallHealth": "Good",
|
|
35
|
+
"performanceScore": 85,
|
|
36
|
+
"averageResponseTime": "245ms",
|
|
37
|
+
"cacheHitRate": "87.5%"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Error Example (Authentication failure):**
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"error": "Authentication failed",
|
|
47
|
+
"message": "Invalid credentials or insufficient permissions"
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Multi-Site performance Usage
|
|
53
|
+
|
|
54
|
+
Using wp_performance_export with specific site targeting
|
|
55
|
+
|
|
56
|
+
**Command:**
|
|
57
|
+
```bash
|
|
58
|
+
wp_performance_export --site="site1"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Response:**
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"success": true,
|
|
65
|
+
"data": {
|
|
66
|
+
"overview": {
|
|
67
|
+
"overallHealth": "Good",
|
|
68
|
+
"performanceScore": 85,
|
|
69
|
+
"averageResponseTime": "245ms",
|
|
70
|
+
"cacheHitRate": "87.5%"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Advanced performance Configuration
|
|
80
|
+
|
|
81
|
+
Comprehensive example using all available parameters
|
|
82
|
+
|
|
83
|
+
**Command:**
|
|
84
|
+
```bash
|
|
85
|
+
wp_performance_export --site="site1" --format="summary" --includeHistorical="example_value" --includeAnalytics="example_value" --timeRange="example_value"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Response:**
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"success": true,
|
|
92
|
+
"data": {
|
|
93
|
+
"overview": {
|
|
94
|
+
"overallHealth": "Good",
|
|
95
|
+
"performanceScore": 85,
|
|
96
|
+
"averageResponseTime": "245ms",
|
|
97
|
+
"cacheHitRate": "87.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## Response Format
|
|
111
|
+
|
|
112
|
+
**Return Type:** `PerformanceMetrics`
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"success": true,
|
|
117
|
+
"data": {
|
|
118
|
+
// PerformanceMetrics response data
|
|
119
|
+
},
|
|
120
|
+
"metadata": {
|
|
121
|
+
"timestamp": "2024-01-01T00:00:00.000Z",
|
|
122
|
+
"tool": "wp_performance_export",
|
|
123
|
+
"site": "site1"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Error Handling
|
|
129
|
+
|
|
130
|
+
### AUTHENTICATION_FAILED
|
|
131
|
+
|
|
132
|
+
**Message:** Authentication failed
|
|
133
|
+
**Description:** Invalid credentials or insufficient permissions
|
|
134
|
+
**Resolution:** Check your authentication credentials and user permissions
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### VALIDATION_ERROR
|
|
138
|
+
|
|
139
|
+
**Message:** Parameter validation failed
|
|
140
|
+
**Description:** One or more required parameters are missing or invalid
|
|
141
|
+
**Resolution:** Review the required parameters and their formats
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### NOT_FOUND
|
|
145
|
+
|
|
146
|
+
**Message:** Resource not found
|
|
147
|
+
**Description:** The requested resource does not exist
|
|
148
|
+
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### PERMISSION_DENIED
|
|
152
|
+
|
|
153
|
+
**Message:** Insufficient permissions
|
|
154
|
+
**Description:** The user does not have permission to perform this action
|
|
155
|
+
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# wp_performance_history
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Get historical performance data and trends
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
|-----------|------|----------|-------------|---------|----------|
|
|
11
|
+
| `site` | `string` | ❌ | Specific site ID for multi-site setups (optional for single site) | - | `site1`, `production` |
|
|
12
|
+
| `timeframe` | `string` | ❌ | Time period for historical data (1h, 6h, 12h, 24h, 7d) | - | `24h`, `7d` |
|
|
13
|
+
| `metrics` | `array` | ❌ | Specific metrics to include (responseTime, cacheHitRate, errorRate, memoryUsage, requestVolume) | - | `example` |
|
|
14
|
+
| `includeTrends` | `boolean` | ❌ | Include trend analysis (default: true) | `true` | `example` |
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
### Basic performance Usage
|
|
19
|
+
|
|
20
|
+
Simple example of using wp_performance_history
|
|
21
|
+
|
|
22
|
+
**Command:**
|
|
23
|
+
```bash
|
|
24
|
+
wp_performance_history
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Response:**
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"success": true,
|
|
31
|
+
"data": {
|
|
32
|
+
"overview": {
|
|
33
|
+
"overallHealth": "Good",
|
|
34
|
+
"performanceScore": 85,
|
|
35
|
+
"averageResponseTime": "245ms",
|
|
36
|
+
"cacheHitRate": "87.5%"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Error Example (Authentication failure):**
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"error": "Authentication failed",
|
|
46
|
+
"message": "Invalid credentials or insufficient permissions"
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Multi-Site performance Usage
|
|
52
|
+
|
|
53
|
+
Using wp_performance_history with specific site targeting
|
|
54
|
+
|
|
55
|
+
**Command:**
|
|
56
|
+
```bash
|
|
57
|
+
wp_performance_history --site="site1"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Response:**
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"success": true,
|
|
64
|
+
"data": {
|
|
65
|
+
"overview": {
|
|
66
|
+
"overallHealth": "Good",
|
|
67
|
+
"performanceScore": 85,
|
|
68
|
+
"averageResponseTime": "245ms",
|
|
69
|
+
"cacheHitRate": "87.5%"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Advanced performance Configuration
|
|
79
|
+
|
|
80
|
+
Comprehensive example using all available parameters
|
|
81
|
+
|
|
82
|
+
**Command:**
|
|
83
|
+
```bash
|
|
84
|
+
wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value" --includeTrends="example_value"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Response:**
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"success": true,
|
|
91
|
+
"data": {
|
|
92
|
+
"overview": {
|
|
93
|
+
"overallHealth": "Good",
|
|
94
|
+
"performanceScore": 85,
|
|
95
|
+
"averageResponseTime": "245ms",
|
|
96
|
+
"cacheHitRate": "87.5%"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## Response Format
|
|
110
|
+
|
|
111
|
+
**Return Type:** `PerformanceMetrics`
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"success": true,
|
|
116
|
+
"data": {
|
|
117
|
+
// PerformanceMetrics response data
|
|
118
|
+
},
|
|
119
|
+
"metadata": {
|
|
120
|
+
"timestamp": "2024-01-01T00:00:00.000Z",
|
|
121
|
+
"tool": "wp_performance_history",
|
|
122
|
+
"site": "site1"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Error Handling
|
|
128
|
+
|
|
129
|
+
### AUTHENTICATION_FAILED
|
|
130
|
+
|
|
131
|
+
**Message:** Authentication failed
|
|
132
|
+
**Description:** Invalid credentials or insufficient permissions
|
|
133
|
+
**Resolution:** Check your authentication credentials and user permissions
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### VALIDATION_ERROR
|
|
137
|
+
|
|
138
|
+
**Message:** Parameter validation failed
|
|
139
|
+
**Description:** One or more required parameters are missing or invalid
|
|
140
|
+
**Resolution:** Review the required parameters and their formats
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### NOT_FOUND
|
|
144
|
+
|
|
145
|
+
**Message:** Resource not found
|
|
146
|
+
**Description:** The requested resource does not exist
|
|
147
|
+
**Resolution:** Verify the resource ID and ensure it exists
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### PERMISSION_DENIED
|
|
151
|
+
|
|
152
|
+
**Message:** Insufficient permissions
|
|
153
|
+
**Description:** The user does not have permission to perform this action
|
|
154
|
+
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
*Generated automatically from tool definitions - Do not edit manually*
|