mcp-wordpress 2.10.0 → 2.10.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 +17 -19
- package/bin/mcp-wordpress.js +3 -3
- package/bin/setup.js +140 -141
- package/bin/status.js +112 -114
- package/dist/client/MockWordPressClient.d.ts.map +1 -1
- package/dist/client/MockWordPressClient.js.map +1 -1
- package/dist/client/SEOWordPressClient.d.ts.map +1 -1
- package/dist/client/SEOWordPressClient.js +16 -14
- package/dist/client/SEOWordPressClient.js.map +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +6 -6
- package/dist/client/managers/AuthManager.d.ts.map +1 -1
- package/dist/client/managers/AuthManager.js +2 -2
- package/dist/client/managers/AuthManager.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.js +1 -1
- package/dist/client/managers/JWTAuthImplementation.d.ts.map +1 -1
- package/dist/client/managers/JWTAuthImplementation.js +7 -7
- package/dist/client/managers/JWTAuthImplementation.js.map +1 -1
- package/dist/client/managers/composed/MigrationAdapter.js +1 -1
- package/dist/client/managers/composed/index.d.ts +2 -2
- package/dist/client/managers/composed/index.d.ts.map +1 -1
- package/dist/client/managers/composed/index.js +1 -1
- package/dist/client/managers/composed/index.js.map +1 -1
- package/dist/client/managers/implementations/ErrorHandlerImpl.d.ts.map +1 -1
- package/dist/client/managers/implementations/ErrorHandlerImpl.js +2 -4
- package/dist/client/managers/implementations/ErrorHandlerImpl.js.map +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.d.ts.map +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.js +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.js.map +1 -1
- package/dist/client/managers/interfaces/ManagerInterfaces.d.ts.map +1 -1
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +3 -3
- package/dist/docs/MarkdownFormatter.d.ts.map +1 -1
- package/dist/docs/MarkdownFormatter.js +7 -7
- package/dist/docs/MarkdownFormatter.js.map +1 -1
- package/dist/performance/PerformanceAnalytics.d.ts.map +1 -1
- package/dist/performance/PerformanceAnalytics.js +3 -1
- package/dist/performance/PerformanceAnalytics.js.map +1 -1
- package/dist/security/InputValidator.js +1 -1
- package/dist/security/SecurityCIPipeline.js +1 -1
- package/dist/security/SecurityCIPipeline.js.map +1 -1
- package/dist/security/SecurityConfig.d.ts.map +1 -1
- package/dist/security/SecurityConfig.js +6 -2
- package/dist/security/SecurityConfig.js.map +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +2 -2
- package/dist/tools/cache.d.ts.map +1 -1
- package/dist/tools/cache.js.map +1 -1
- package/dist/tools/comments.d.ts.map +1 -1
- package/dist/tools/comments.js.map +1 -1
- package/dist/tools/performance.d.ts.map +1 -1
- package/dist/tools/performance.js.map +1 -1
- package/dist/tools/posts/PostHandlers.d.ts.map +1 -1
- package/dist/tools/posts/PostHandlers.js.map +1 -1
- package/dist/tools/seo/SEOTools.d.ts.map +1 -1
- package/dist/tools/seo/SEOTools.js.map +1 -1
- package/dist/tools/seo/analyzers/ContentAnalyzer.d.ts.map +1 -1
- package/dist/tools/seo/analyzers/ContentAnalyzer.js.map +1 -1
- package/dist/types/enhanced.d.ts +17 -17
- package/dist/types/enhanced.d.ts.map +1 -1
- package/dist/types/enhanced.js +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/requests.d.ts +16 -16
- package/dist/types/tools.d.ts +46 -46
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +7 -7
- package/docs/ARCHITECTURE.md +17 -17
- package/docs/BADGE_UPDATES.md +11 -11
- package/docs/CACHING.md +2 -0
- package/docs/CI_CD_IMPROVEMENTS.md +8 -5
- package/docs/CONFIGURATION.md +76 -46
- package/docs/DOCKER_PUBLISHING_TROUBLESHOOTING.md +11 -2
- package/docs/EVALUATION.md +16 -21
- package/docs/INCREMENTAL_COVERAGE.md +7 -3
- package/docs/INSTALLATION.md +33 -19
- package/docs/PUBLISHING-TROUBLESHOOTING.md +3 -2
- package/docs/SECURITY.md +17 -15
- package/docs/SECURITY_TESTING.md +3 -0
- package/docs/TROUBLESHOOTING.md +85 -36
- package/docs/api/README.md +118 -125
- package/docs/api/categories/auth.md +3 -1
- package/docs/api/categories/cache.md +3 -1
- package/docs/api/categories/comment.md +3 -1
- package/docs/api/categories/media.md +3 -1
- package/docs/api/categories/page.md +3 -1
- package/docs/api/categories/performance.md +3 -1
- package/docs/api/categories/post.md +3 -1
- package/docs/api/categories/site.md +3 -1
- package/docs/api/categories/taxonomy.md +3 -1
- package/docs/api/categories/user.md +3 -1
- package/docs/api/openapi.json +114 -410
- package/docs/api/summary.json +1 -1
- package/docs/api/tools/wp_approve_comment.md +13 -25
- package/docs/api/tools/wp_cache_clear.md +17 -30
- package/docs/api/tools/wp_cache_info.md +16 -29
- package/docs/api/tools/wp_cache_stats.md +16 -29
- package/docs/api/tools/wp_cache_warm.md +16 -29
- package/docs/api/tools/wp_create_application_password.md +14 -26
- package/docs/api/tools/wp_create_category.md +14 -26
- package/docs/api/tools/wp_create_comment.md +18 -31
- package/docs/api/tools/wp_create_page.md +17 -29
- package/docs/api/tools/wp_create_post.md +25 -30
- package/docs/api/tools/wp_create_tag.md +13 -25
- package/docs/api/tools/wp_create_user.md +18 -30
- package/docs/api/tools/wp_delete_application_password.md +14 -26
- package/docs/api/tools/wp_delete_category.md +13 -25
- package/docs/api/tools/wp_delete_comment.md +14 -26
- package/docs/api/tools/wp_delete_media.md +14 -25
- package/docs/api/tools/wp_delete_page.md +14 -25
- package/docs/api/tools/wp_delete_post.md +17 -25
- package/docs/api/tools/wp_delete_tag.md +13 -25
- package/docs/api/tools/wp_delete_user.md +14 -25
- package/docs/api/tools/wp_get_application_passwords.md +13 -25
- package/docs/api/tools/wp_get_auth_status.md +12 -24
- package/docs/api/tools/wp_get_category.md +13 -25
- package/docs/api/tools/wp_get_comment.md +13 -25
- package/docs/api/tools/wp_get_current_user.md +17 -30
- package/docs/api/tools/wp_get_media.md +13 -25
- package/docs/api/tools/wp_get_page.md +13 -25
- package/docs/api/tools/wp_get_page_revisions.md +13 -25
- package/docs/api/tools/wp_get_post.md +16 -25
- package/docs/api/tools/wp_get_post_revisions.md +13 -25
- package/docs/api/tools/wp_get_site_settings.md +12 -23
- package/docs/api/tools/wp_get_tag.md +13 -25
- package/docs/api/tools/wp_get_user.md +13 -25
- package/docs/api/tools/wp_list_categories.md +15 -27
- package/docs/api/tools/wp_list_comments.md +15 -27
- package/docs/api/tools/wp_list_media.md +18 -31
- package/docs/api/tools/wp_list_pages.md +18 -31
- package/docs/api/tools/wp_list_posts.md +29 -41
- package/docs/api/tools/wp_list_tags.md +14 -26
- package/docs/api/tools/wp_list_users.md +20 -34
- package/docs/api/tools/wp_performance_alerts.md +22 -36
- package/docs/api/tools/wp_performance_benchmark.md +20 -34
- package/docs/api/tools/wp_performance_export.md +22 -36
- package/docs/api/tools/wp_performance_history.md +21 -35
- package/docs/api/tools/wp_performance_optimize.md +22 -36
- package/docs/api/tools/wp_performance_stats.md +20 -34
- package/docs/api/tools/wp_search_site.md +18 -32
- package/docs/api/tools/wp_spam_comment.md +13 -25
- package/docs/api/tools/wp_switch_auth_method.md +18 -31
- package/docs/api/tools/wp_test_auth.md +15 -30
- package/docs/api/tools/wp_update_category.md +14 -26
- package/docs/api/tools/wp_update_comment.md +17 -30
- package/docs/api/tools/wp_update_media.md +19 -32
- package/docs/api/tools/wp_update_page.md +18 -30
- package/docs/api/tools/wp_update_post.md +21 -30
- package/docs/api/tools/wp_update_site_settings.md +18 -31
- package/docs/api/tools/wp_update_tag.md +14 -26
- package/docs/api/tools/wp_update_user.md +17 -29
- package/docs/api/tools/wp_upload_media.md +20 -32
- package/docs/api/types/WordPressPost.md +8 -15
- package/docs/code-improvements.md +1 -0
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
- package/docs/developer/MAINTENANCE.md +4 -0
- package/docs/developer/NPM_AUTH_SETUP.md +3 -0
- package/docs/developer/RELEASE_PROCESS.md +1 -0
- package/docs/examples/multi-site-setup.md +2 -0
- package/docs/integrations/claude-desktop.md +14 -5
- package/docs/integrations/cline.md +1 -0
- package/docs/user-guides/DTX_SETUP.md +9 -8
- package/docs/user-guides/NPX_SETUP.md +5 -9
- package/docs/user-guides/SMITHERY_SETUP.md +5 -0
- package/docs/v2.2.0-resolution-demo.md +17 -2
- package/package.json +2 -1
- package/src/cache/__tests__/CacheManager.test.ts +4 -8
- package/src/client/MockWordPressClient.ts +5 -1
- package/src/client/SEOWordPressClient.ts +30 -26
- package/src/client/index.ts +6 -6
- package/src/client/managers/AuthManager.ts +16 -8
- package/src/client/managers/AuthenticationManager.ts +2 -2
- package/src/client/managers/JWTAuthImplementation.ts +24 -27
- package/src/client/managers/ManagersIndex.ts +1 -1
- package/src/client/managers/composed/MigrationAdapter.ts +1 -1
- package/src/client/managers/composed/index.ts +7 -7
- package/src/client/managers/implementations/ErrorHandlerImpl.ts +12 -26
- package/src/client/managers/implementations/ParameterValidatorImpl.ts +49 -49
- package/src/client/managers/interfaces/ManagerInterfaces.ts +13 -9
- package/src/config/index.ts +3 -3
- package/src/docs/MarkdownFormatter.ts +13 -9
- package/src/performance/PerformanceAnalytics.ts +9 -3
- package/src/security/InputValidator.ts +1 -1
- package/src/security/SecurityCIPipeline.ts +1 -1
- package/src/security/SecurityConfig.ts +9 -3
- package/src/server/index.ts +2 -2
- package/src/tools/cache.ts +3 -1
- package/src/tools/comments.ts +3 -1
- package/src/tools/performance.ts +7 -3
- package/src/tools/posts/PostHandlers.ts +3 -1
- package/src/tools/seo/SEOTools.ts +6 -2
- package/src/tools/seo/analyzers/ContentAnalyzer.ts +9 -3
- package/src/types/enhanced.ts +34 -34
- package/src/types/index.ts +13 -11
- package/src/types/requests.ts +19 -19
- package/src/types/tools.ts +137 -84
- package/src/utils/index.ts +7 -7
|
@@ -2,21 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Lists users from a WordPress site with comprehensive filtering and detailed user information including roles,
|
|
5
|
+
Lists users from a WordPress site with comprehensive filtering and detailed user information including roles,
|
|
6
|
+
registration dates, and activity status.
|
|
6
7
|
|
|
7
|
-
**Usage Examples:**
|
|
8
|
-
•
|
|
9
|
-
|
|
10
|
-
• Filter by role: `wp_list_users --roles=["editor","author"]`
|
|
11
|
-
• Find admins: `wp_list_users --roles=["administrator"]`
|
|
12
|
-
• Combined search: `wp_list_users --search="smith" --roles=["subscriber"]`
|
|
8
|
+
**Usage Examples:** • List all users: `wp_list_users` • Search users: `wp_list_users --search="john"` • Filter by role:
|
|
9
|
+
`wp_list_users --roles=["editor","author"]` • Find admins: `wp_list_users --roles=["administrator"]` • Combined search:
|
|
10
|
+
`wp_list_users --search="smith" --roles=["subscriber"]`
|
|
13
11
|
|
|
14
12
|
## Parameters
|
|
15
13
|
|
|
16
|
-
| Parameter | Type
|
|
17
|
-
|
|
18
|
-
| `search`
|
|
19
|
-
| `roles`
|
|
14
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
15
|
+
| --------- | -------- | -------- | ---------------------------------------------- | ------- | ----------------------- |
|
|
16
|
+
| `search` | `string` | ❌ | Limit results to those matching a search term. | - | `wordpress`, `tutorial` |
|
|
17
|
+
| `roles` | `array` | ❌ | Limit results to users with specific roles. | - | `example` |
|
|
20
18
|
|
|
21
19
|
## Examples
|
|
22
20
|
|
|
@@ -25,11 +23,13 @@ Lists users from a WordPress site with comprehensive filtering and detailed user
|
|
|
25
23
|
Simple example of using wp_list_users
|
|
26
24
|
|
|
27
25
|
**Command:**
|
|
26
|
+
|
|
28
27
|
```bash
|
|
29
|
-
wp_list_users
|
|
28
|
+
wp_list_users
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
**Response:**
|
|
32
|
+
|
|
33
33
|
```json
|
|
34
34
|
{
|
|
35
35
|
"success": true,
|
|
@@ -51,6 +51,7 @@ wp_list_users
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
**Error Example (Authentication failure):**
|
|
54
|
+
|
|
54
55
|
```json
|
|
55
56
|
{
|
|
56
57
|
"error": "Authentication failed",
|
|
@@ -58,11 +59,6 @@ wp_list_users
|
|
|
58
59
|
}
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
62
|
## Response Format
|
|
67
63
|
|
|
68
64
|
**Return Type:** `user[]`
|
|
@@ -85,34 +81,24 @@ wp_list_users
|
|
|
85
81
|
|
|
86
82
|
### AUTHENTICATION_FAILED
|
|
87
83
|
|
|
88
|
-
**Message:** Authentication failed
|
|
89
|
-
|
|
90
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
91
|
-
|
|
84
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
85
|
+
Check your authentication credentials and user permissions
|
|
92
86
|
|
|
93
87
|
### VALIDATION_ERROR
|
|
94
88
|
|
|
95
|
-
**Message:** Parameter validation failed
|
|
96
|
-
**Description:** One or more required parameters are missing or invalid
|
|
89
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
97
90
|
**Resolution:** Review the required parameters and their formats
|
|
98
91
|
|
|
99
|
-
|
|
100
92
|
### NOT_FOUND
|
|
101
93
|
|
|
102
|
-
**Message:** Resource not found
|
|
103
|
-
|
|
104
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
105
|
-
|
|
94
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
95
|
+
resource ID and ensure it exists
|
|
106
96
|
|
|
107
97
|
### PERMISSION_DENIED
|
|
108
98
|
|
|
109
|
-
**Message:** Insufficient permissions
|
|
110
|
-
**Description:** The user does not have permission to perform this action
|
|
99
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
111
100
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
112
101
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
102
|
---
|
|
117
103
|
|
|
118
|
-
|
|
104
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,13 +6,13 @@ Get performance alerts and anomaly detection results
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter
|
|
10
|
-
|
|
11
|
-
| `site`
|
|
12
|
-
| `severity`
|
|
13
|
-
| `category`
|
|
14
|
-
| `limit`
|
|
15
|
-
| `includeAnomalies` | `boolean` | ❌
|
|
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
16
|
|
|
17
17
|
## Examples
|
|
18
18
|
|
|
@@ -21,11 +21,13 @@ Get performance alerts and anomaly detection results
|
|
|
21
21
|
Simple example of using wp_performance_alerts
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
+
|
|
24
25
|
```bash
|
|
25
|
-
wp_performance_alerts
|
|
26
|
+
wp_performance_alerts
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
**Response:**
|
|
30
|
+
|
|
29
31
|
```json
|
|
30
32
|
{
|
|
31
33
|
"success": true,
|
|
@@ -41,6 +43,7 @@ wp_performance_alerts
|
|
|
41
43
|
```
|
|
42
44
|
|
|
43
45
|
**Error Example (Authentication failure):**
|
|
46
|
+
|
|
44
47
|
```json
|
|
45
48
|
{
|
|
46
49
|
"error": "Authentication failed",
|
|
@@ -48,17 +51,18 @@ wp_performance_alerts
|
|
|
48
51
|
}
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
|
|
52
54
|
### Multi-Site performance Usage
|
|
53
55
|
|
|
54
56
|
Using wp_performance_alerts with specific site targeting
|
|
55
57
|
|
|
56
58
|
**Command:**
|
|
59
|
+
|
|
57
60
|
```bash
|
|
58
61
|
wp_performance_alerts --site="site1"
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
**Response:**
|
|
65
|
+
|
|
62
66
|
```json
|
|
63
67
|
{
|
|
64
68
|
"success": true,
|
|
@@ -73,19 +77,18 @@ wp_performance_alerts --site="site1"
|
|
|
73
77
|
}
|
|
74
78
|
```
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
80
|
### Advanced performance Configuration
|
|
80
81
|
|
|
81
82
|
Comprehensive example using all available parameters
|
|
82
83
|
|
|
83
84
|
**Command:**
|
|
85
|
+
|
|
84
86
|
```bash
|
|
85
87
|
wp_performance_alerts --site="site1" --severity="example_value" --category="overview" --limit="20" --includeAnomalies="example_value"
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
**Response:**
|
|
91
|
+
|
|
89
92
|
```json
|
|
90
93
|
{
|
|
91
94
|
"success": true,
|
|
@@ -100,13 +103,6 @@ wp_performance_alerts --site="site1" --severity="example_value" --category="over
|
|
|
100
103
|
}
|
|
101
104
|
```
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
106
|
## Response Format
|
|
111
107
|
|
|
112
108
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -129,34 +125,24 @@ wp_performance_alerts --site="site1" --severity="example_value" --category="over
|
|
|
129
125
|
|
|
130
126
|
### AUTHENTICATION_FAILED
|
|
131
127
|
|
|
132
|
-
**Message:** Authentication failed
|
|
133
|
-
|
|
134
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
135
|
-
|
|
128
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
129
|
+
Check your authentication credentials and user permissions
|
|
136
130
|
|
|
137
131
|
### VALIDATION_ERROR
|
|
138
132
|
|
|
139
|
-
**Message:** Parameter validation failed
|
|
140
|
-
**Description:** One or more required parameters are missing or invalid
|
|
133
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
141
134
|
**Resolution:** Review the required parameters and their formats
|
|
142
135
|
|
|
143
|
-
|
|
144
136
|
### NOT_FOUND
|
|
145
137
|
|
|
146
|
-
**Message:** Resource not found
|
|
147
|
-
|
|
148
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
|
-
|
|
138
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
139
|
+
resource ID and ensure it exists
|
|
150
140
|
|
|
151
141
|
### PERMISSION_DENIED
|
|
152
142
|
|
|
153
|
-
**Message:** Insufficient permissions
|
|
154
|
-
**Description:** The user does not have permission to perform this action
|
|
143
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
155
144
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
145
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
146
|
---
|
|
161
147
|
|
|
162
|
-
|
|
148
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,11 +6,11 @@ Compare current performance against industry benchmarks
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter
|
|
10
|
-
|
|
11
|
-
| `site`
|
|
12
|
-
| `category`
|
|
13
|
-
| `includeRecommendations` | `boolean` | ❌
|
|
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
14
|
|
|
15
15
|
## Examples
|
|
16
16
|
|
|
@@ -19,11 +19,13 @@ Compare current performance against industry benchmarks
|
|
|
19
19
|
Simple example of using wp_performance_benchmark
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
|
-
wp_performance_benchmark
|
|
24
|
+
wp_performance_benchmark
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -39,6 +41,7 @@ wp_performance_benchmark
|
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
**Error Example (Authentication failure):**
|
|
44
|
+
|
|
42
45
|
```json
|
|
43
46
|
{
|
|
44
47
|
"error": "Authentication failed",
|
|
@@ -46,17 +49,18 @@ wp_performance_benchmark
|
|
|
46
49
|
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
|
-
|
|
50
52
|
### Multi-Site performance Usage
|
|
51
53
|
|
|
52
54
|
Using wp_performance_benchmark with specific site targeting
|
|
53
55
|
|
|
54
56
|
**Command:**
|
|
57
|
+
|
|
55
58
|
```bash
|
|
56
59
|
wp_performance_benchmark --site="site1"
|
|
57
60
|
```
|
|
58
61
|
|
|
59
62
|
**Response:**
|
|
63
|
+
|
|
60
64
|
```json
|
|
61
65
|
{
|
|
62
66
|
"success": true,
|
|
@@ -71,19 +75,18 @@ wp_performance_benchmark --site="site1"
|
|
|
71
75
|
}
|
|
72
76
|
```
|
|
73
77
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
78
|
### Advanced performance Configuration
|
|
78
79
|
|
|
79
80
|
Comprehensive example using all available parameters
|
|
80
81
|
|
|
81
82
|
**Command:**
|
|
83
|
+
|
|
82
84
|
```bash
|
|
83
85
|
wp_performance_benchmark --site="site1" --category="overview" --includeRecommendations="example_value"
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
**Response:**
|
|
89
|
+
|
|
87
90
|
```json
|
|
88
91
|
{
|
|
89
92
|
"success": true,
|
|
@@ -98,13 +101,6 @@ wp_performance_benchmark --site="site1" --category="overview" --includeRecommend
|
|
|
98
101
|
}
|
|
99
102
|
```
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
104
|
## Response Format
|
|
109
105
|
|
|
110
106
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -127,34 +123,24 @@ wp_performance_benchmark --site="site1" --category="overview" --includeRecommend
|
|
|
127
123
|
|
|
128
124
|
### AUTHENTICATION_FAILED
|
|
129
125
|
|
|
130
|
-
**Message:** Authentication failed
|
|
131
|
-
|
|
132
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
133
|
-
|
|
126
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
127
|
+
Check your authentication credentials and user permissions
|
|
134
128
|
|
|
135
129
|
### VALIDATION_ERROR
|
|
136
130
|
|
|
137
|
-
**Message:** Parameter validation failed
|
|
138
|
-
**Description:** One or more required parameters are missing or invalid
|
|
131
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
139
132
|
**Resolution:** Review the required parameters and their formats
|
|
140
133
|
|
|
141
|
-
|
|
142
134
|
### NOT_FOUND
|
|
143
135
|
|
|
144
|
-
**Message:** Resource not found
|
|
145
|
-
|
|
146
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
147
|
-
|
|
136
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
137
|
+
resource ID and ensure it exists
|
|
148
138
|
|
|
149
139
|
### PERMISSION_DENIED
|
|
150
140
|
|
|
151
|
-
**Message:** Insufficient permissions
|
|
152
|
-
**Description:** The user does not have permission to perform this action
|
|
141
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
153
142
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
154
143
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
144
|
---
|
|
159
145
|
|
|
160
|
-
|
|
146
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,13 +6,13 @@ Export comprehensive performance report
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter
|
|
10
|
-
|
|
11
|
-
| `site`
|
|
12
|
-
| `format`
|
|
13
|
-
| `includeHistorical` | `boolean` | ❌
|
|
14
|
-
| `includeAnalytics`
|
|
15
|
-
| `timeRange`
|
|
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
16
|
|
|
17
17
|
## Examples
|
|
18
18
|
|
|
@@ -21,11 +21,13 @@ Export comprehensive performance report
|
|
|
21
21
|
Simple example of using wp_performance_export
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
+
|
|
24
25
|
```bash
|
|
25
|
-
wp_performance_export
|
|
26
|
+
wp_performance_export
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
**Response:**
|
|
30
|
+
|
|
29
31
|
```json
|
|
30
32
|
{
|
|
31
33
|
"success": true,
|
|
@@ -41,6 +43,7 @@ wp_performance_export
|
|
|
41
43
|
```
|
|
42
44
|
|
|
43
45
|
**Error Example (Authentication failure):**
|
|
46
|
+
|
|
44
47
|
```json
|
|
45
48
|
{
|
|
46
49
|
"error": "Authentication failed",
|
|
@@ -48,17 +51,18 @@ wp_performance_export
|
|
|
48
51
|
}
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
|
|
52
54
|
### Multi-Site performance Usage
|
|
53
55
|
|
|
54
56
|
Using wp_performance_export with specific site targeting
|
|
55
57
|
|
|
56
58
|
**Command:**
|
|
59
|
+
|
|
57
60
|
```bash
|
|
58
61
|
wp_performance_export --site="site1"
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
**Response:**
|
|
65
|
+
|
|
62
66
|
```json
|
|
63
67
|
{
|
|
64
68
|
"success": true,
|
|
@@ -73,19 +77,18 @@ wp_performance_export --site="site1"
|
|
|
73
77
|
}
|
|
74
78
|
```
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
80
|
### Advanced performance Configuration
|
|
80
81
|
|
|
81
82
|
Comprehensive example using all available parameters
|
|
82
83
|
|
|
83
84
|
**Command:**
|
|
85
|
+
|
|
84
86
|
```bash
|
|
85
87
|
wp_performance_export --site="site1" --format="summary" --includeHistorical="example_value" --includeAnalytics="example_value" --timeRange="example_value"
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
**Response:**
|
|
91
|
+
|
|
89
92
|
```json
|
|
90
93
|
{
|
|
91
94
|
"success": true,
|
|
@@ -100,13 +103,6 @@ wp_performance_export --site="site1" --format="summary" --includeHistorical="exa
|
|
|
100
103
|
}
|
|
101
104
|
```
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
106
|
## Response Format
|
|
111
107
|
|
|
112
108
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -129,34 +125,24 @@ wp_performance_export --site="site1" --format="summary" --includeHistorical="exa
|
|
|
129
125
|
|
|
130
126
|
### AUTHENTICATION_FAILED
|
|
131
127
|
|
|
132
|
-
**Message:** Authentication failed
|
|
133
|
-
|
|
134
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
135
|
-
|
|
128
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
129
|
+
Check your authentication credentials and user permissions
|
|
136
130
|
|
|
137
131
|
### VALIDATION_ERROR
|
|
138
132
|
|
|
139
|
-
**Message:** Parameter validation failed
|
|
140
|
-
**Description:** One or more required parameters are missing or invalid
|
|
133
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
141
134
|
**Resolution:** Review the required parameters and their formats
|
|
142
135
|
|
|
143
|
-
|
|
144
136
|
### NOT_FOUND
|
|
145
137
|
|
|
146
|
-
**Message:** Resource not found
|
|
147
|
-
|
|
148
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
|
-
|
|
138
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
139
|
+
resource ID and ensure it exists
|
|
150
140
|
|
|
151
141
|
### PERMISSION_DENIED
|
|
152
142
|
|
|
153
|
-
**Message:** Insufficient permissions
|
|
154
|
-
**Description:** The user does not have permission to perform this action
|
|
143
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
155
144
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
145
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
146
|
---
|
|
161
147
|
|
|
162
|
-
|
|
148
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,12 +6,12 @@ Get historical performance data and trends
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter
|
|
10
|
-
|
|
11
|
-
| `site`
|
|
12
|
-
| `timeframe`
|
|
13
|
-
| `metrics`
|
|
14
|
-
| `includeTrends` | `boolean` | ❌
|
|
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
15
|
|
|
16
16
|
## Examples
|
|
17
17
|
|
|
@@ -20,11 +20,13 @@ Get historical performance data and trends
|
|
|
20
20
|
Simple example of using wp_performance_history
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
+
|
|
23
24
|
```bash
|
|
24
|
-
wp_performance_history
|
|
25
|
+
wp_performance_history
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Response:**
|
|
29
|
+
|
|
28
30
|
```json
|
|
29
31
|
{
|
|
30
32
|
"success": true,
|
|
@@ -40,6 +42,7 @@ wp_performance_history
|
|
|
40
42
|
```
|
|
41
43
|
|
|
42
44
|
**Error Example (Authentication failure):**
|
|
45
|
+
|
|
43
46
|
```json
|
|
44
47
|
{
|
|
45
48
|
"error": "Authentication failed",
|
|
@@ -47,17 +50,18 @@ wp_performance_history
|
|
|
47
50
|
}
|
|
48
51
|
```
|
|
49
52
|
|
|
50
|
-
|
|
51
53
|
### Multi-Site performance Usage
|
|
52
54
|
|
|
53
55
|
Using wp_performance_history with specific site targeting
|
|
54
56
|
|
|
55
57
|
**Command:**
|
|
58
|
+
|
|
56
59
|
```bash
|
|
57
60
|
wp_performance_history --site="site1"
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
**Response:**
|
|
64
|
+
|
|
61
65
|
```json
|
|
62
66
|
{
|
|
63
67
|
"success": true,
|
|
@@ -72,19 +76,18 @@ wp_performance_history --site="site1"
|
|
|
72
76
|
}
|
|
73
77
|
```
|
|
74
78
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
79
|
### Advanced performance Configuration
|
|
79
80
|
|
|
80
81
|
Comprehensive example using all available parameters
|
|
81
82
|
|
|
82
83
|
**Command:**
|
|
84
|
+
|
|
83
85
|
```bash
|
|
84
86
|
wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value" --includeTrends="example_value"
|
|
85
87
|
```
|
|
86
88
|
|
|
87
89
|
**Response:**
|
|
90
|
+
|
|
88
91
|
```json
|
|
89
92
|
{
|
|
90
93
|
"success": true,
|
|
@@ -99,13 +102,6 @@ wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value
|
|
|
99
102
|
}
|
|
100
103
|
```
|
|
101
104
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
105
|
## Response Format
|
|
110
106
|
|
|
111
107
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -128,34 +124,24 @@ wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value
|
|
|
128
124
|
|
|
129
125
|
### AUTHENTICATION_FAILED
|
|
130
126
|
|
|
131
|
-
**Message:** Authentication failed
|
|
132
|
-
|
|
133
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
134
|
-
|
|
127
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
128
|
+
Check your authentication credentials and user permissions
|
|
135
129
|
|
|
136
130
|
### VALIDATION_ERROR
|
|
137
131
|
|
|
138
|
-
**Message:** Parameter validation failed
|
|
139
|
-
**Description:** One or more required parameters are missing or invalid
|
|
132
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
140
133
|
**Resolution:** Review the required parameters and their formats
|
|
141
134
|
|
|
142
|
-
|
|
143
135
|
### NOT_FOUND
|
|
144
136
|
|
|
145
|
-
**Message:** Resource not found
|
|
146
|
-
|
|
147
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
148
|
-
|
|
137
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
138
|
+
resource ID and ensure it exists
|
|
149
139
|
|
|
150
140
|
### PERMISSION_DENIED
|
|
151
141
|
|
|
152
|
-
**Message:** Insufficient permissions
|
|
153
|
-
**Description:** The user does not have permission to perform this action
|
|
142
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
154
143
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
155
144
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
145
|
---
|
|
160
146
|
|
|
161
|
-
|
|
147
|
+
_Generated automatically from tool definitions - Do not edit manually_
|