mcp-wordpress 1.5.2 → 2.0.0
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 +332 -61
- package/dist/cache/CacheInvalidation.d.ts.map +1 -1
- package/dist/cache/CacheInvalidation.js +4 -4
- package/dist/cache/CacheInvalidation.js.map +1 -1
- package/dist/client/MockWordPressClient.d.ts +55 -0
- package/dist/client/MockWordPressClient.d.ts.map +1 -0
- package/dist/client/MockWordPressClient.js +369 -0
- package/dist/client/MockWordPressClient.js.map +1 -0
- package/dist/client/api.d.ts +1 -0
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +26 -60
- package/dist/client/api.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.d.ts.map +1 -1
- package/dist/client/managers/AuthenticationManager.js +4 -3
- package/dist/client/managers/AuthenticationManager.js.map +1 -1
- package/dist/config/ConfigurationSchema.d.ts +3 -3
- package/dist/config/ConfigurationSchema.d.ts.map +1 -1
- package/dist/config/ConfigurationSchema.js +7 -24
- package/dist/config/ConfigurationSchema.js.map +1 -1
- package/dist/config/ServerConfiguration.d.ts +8 -0
- package/dist/config/ServerConfiguration.d.ts.map +1 -1
- package/dist/config/ServerConfiguration.js +80 -31
- package/dist/config/ServerConfiguration.js.map +1 -1
- package/dist/docs/DocumentationGenerator.d.ts.map +1 -1
- package/dist/docs/DocumentationGenerator.js +5 -7
- package/dist/docs/DocumentationGenerator.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/dist/security/InputValidator.d.ts.map +1 -1
- package/dist/security/InputValidator.js +3 -11
- package/dist/security/InputValidator.js.map +1 -1
- package/dist/server/ToolRegistry.d.ts +4 -0
- package/dist/server/ToolRegistry.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js +71 -8
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/auth.d.ts.map +1 -1
- package/dist/tools/auth.js +8 -3
- package/dist/tools/auth.js.map +1 -1
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +287 -20
- package/dist/tools/posts.js.map +1 -1
- package/dist/tools/site.d.ts.map +1 -1
- package/dist/tools/site.js +47 -9
- package/dist/tools/site.js.map +1 -1
- package/dist/tools/users.d.ts.map +1 -1
- package/dist/tools/users.js +113 -10
- package/dist/tools/users.js.map +1 -1
- package/dist/utils/enhancedError.d.ts +61 -0
- package/dist/utils/enhancedError.d.ts.map +1 -0
- package/dist/utils/enhancedError.js +221 -0
- package/dist/utils/enhancedError.js.map +1 -0
- package/dist/utils/streaming.d.ts +104 -0
- package/dist/utils/streaming.d.ts.map +1 -0
- package/dist/utils/streaming.js +312 -0
- package/dist/utils/streaming.js.map +1 -0
- package/dist/utils/validation.d.ts +19 -3
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +174 -24
- package/dist/utils/validation.js.map +1 -1
- package/docs/ARCHITECTURE.md +850 -0
- package/docs/CACHING.md +20 -17
- package/docs/CONFIGURATION.md +660 -0
- package/docs/DOCKER.md +61 -60
- package/docs/EVALUATION.md +397 -0
- package/docs/INSTALLATION.md +423 -0
- package/docs/PERFORMANCE_MONITORING.md +17 -15
- package/docs/SECURITY.md +621 -0
- package/docs/SECURITY_TESTING.md +22 -26
- package/docs/TEST_SITE_SETUP.md +136 -0
- package/docs/TROUBLESHOOTING.md +578 -0
- package/docs/api/README.md +76 -91
- package/docs/api/categories/auth.md +0 -2
- package/docs/api/categories/cache.md +0 -2
- package/docs/api/categories/comment.md +0 -2
- package/docs/api/categories/media.md +0 -2
- package/docs/api/categories/page.md +0 -2
- package/docs/api/categories/performance.md +0 -2
- package/docs/api/categories/post.md +0 -2
- package/docs/api/categories/site.md +0 -2
- package/docs/api/categories/taxonomy.md +0 -2
- package/docs/api/categories/user.md +0 -2
- package/docs/api/summary.json +1 -1
- package/docs/api/tools/wp_approve_comment.md +11 -3
- package/docs/api/tools/wp_cache_clear.md +14 -5
- package/docs/api/tools/wp_cache_info.md +14 -5
- package/docs/api/tools/wp_cache_stats.md +14 -5
- package/docs/api/tools/wp_cache_warm.md +14 -5
- package/docs/api/tools/wp_create_application_password.md +11 -3
- package/docs/api/tools/wp_create_category.md +11 -3
- package/docs/api/tools/wp_create_comment.md +14 -5
- package/docs/api/tools/wp_create_page.md +13 -5
- package/docs/api/tools/wp_create_post.md +14 -7
- package/docs/api/tools/wp_create_tag.md +11 -3
- package/docs/api/tools/wp_create_user.md +13 -5
- package/docs/api/tools/wp_delete_application_password.md +11 -3
- package/docs/api/tools/wp_delete_category.md +11 -3
- package/docs/api/tools/wp_delete_comment.md +11 -3
- package/docs/api/tools/wp_delete_media.md +10 -3
- package/docs/api/tools/wp_delete_page.md +10 -3
- package/docs/api/tools/wp_delete_post.md +11 -5
- package/docs/api/tools/wp_delete_tag.md +11 -3
- package/docs/api/tools/wp_delete_user.md +10 -3
- package/docs/api/tools/wp_get_application_passwords.md +11 -3
- package/docs/api/tools/wp_get_auth_status.md +11 -3
- package/docs/api/tools/wp_get_category.md +11 -3
- package/docs/api/tools/wp_get_comment.md +11 -3
- package/docs/api/tools/wp_get_current_user.md +11 -3
- package/docs/api/tools/wp_get_media.md +11 -3
- package/docs/api/tools/wp_get_page.md +11 -3
- package/docs/api/tools/wp_get_page_revisions.md +11 -3
- package/docs/api/tools/wp_get_post.md +12 -5
- package/docs/api/tools/wp_get_post_revisions.md +11 -3
- package/docs/api/tools/wp_get_site_settings.md +10 -3
- package/docs/api/tools/wp_get_tag.md +11 -3
- package/docs/api/tools/wp_get_user.md +11 -3
- package/docs/api/tools/wp_list_categories.md +11 -3
- package/docs/api/tools/wp_list_comments.md +11 -3
- package/docs/api/tools/wp_list_media.md +14 -5
- package/docs/api/tools/wp_list_pages.md +14 -5
- package/docs/api/tools/wp_list_posts.md +15 -7
- package/docs/api/tools/wp_list_tags.md +11 -3
- package/docs/api/tools/wp_list_users.md +11 -3
- package/docs/api/tools/wp_performance_alerts.md +17 -7
- package/docs/api/tools/wp_performance_benchmark.md +17 -7
- package/docs/api/tools/wp_performance_export.md +17 -7
- package/docs/api/tools/wp_performance_history.md +17 -7
- package/docs/api/tools/wp_performance_optimize.md +17 -7
- package/docs/api/tools/wp_performance_stats.md +17 -7
- package/docs/api/tools/wp_search_site.md +11 -3
- package/docs/api/tools/wp_spam_comment.md +11 -3
- package/docs/api/tools/wp_switch_auth_method.md +14 -5
- package/docs/api/tools/wp_test_auth.md +11 -3
- package/docs/api/tools/wp_update_category.md +11 -3
- package/docs/api/tools/wp_update_comment.md +14 -5
- package/docs/api/tools/wp_update_media.md +14 -5
- package/docs/api/tools/wp_update_page.md +13 -5
- package/docs/api/tools/wp_update_post.md +14 -7
- package/docs/api/tools/wp_update_site_settings.md +14 -5
- package/docs/api/tools/wp_update_tag.md +11 -3
- package/docs/api/tools/wp_update_user.md +13 -5
- package/docs/api/tools/wp_upload_media.md +13 -5
- package/docs/api/types/WordPressPost.md +2 -0
- package/docs/code-improvements.md +40 -0
- package/docs/contract-testing.md +1 -1
- package/docs/developer/API_REFERENCE.md +19 -59
- package/docs/developer/ARCHITECTURE.md +8 -11
- package/docs/developer/BUILD_SYSTEM.md +2 -2
- package/docs/developer/CONTRIBUTING.md +3 -5
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
- package/docs/developer/MIGRATION_GUIDE.md +5 -6
- package/docs/developer/README.md +2 -1
- package/docs/developer/REFACTORING.md +9 -15
- package/docs/developer/RELEASE_PROCESS.md +4 -3
- package/docs/developer/TESTING.md +2 -2
- package/docs/examples/claude-desktop-config.md +8 -0
- package/docs/integrations/claude-desktop.md +426 -0
- package/docs/integrations/cline.md +537 -0
- package/docs/integrations/vs-code.md +515 -0
- package/docs/releases/COMMUNITY_ANNOUNCEMENT_v1.1.2.md +30 -23
- package/docs/releases/RELEASE_NOTES_v1.1.2.md +7 -6
- package/docs/testing-configurations.md +11 -0
- package/docs/user-guides/DOCKER_NPM_DTX_SETUP.md +3 -2
- package/docs/user-guides/DOCKER_SETUP.md +3 -2
- package/docs/user-guides/DTX_SETUP.md +6 -5
- package/docs/user-guides/DXT_INSTALLATION.md +4 -4
- package/docs/user-guides/NPM_SETUP.md +4 -2
- package/docs/user-guides/NPX_SETUP.md +4 -2
- package/docs/user-guides/SMITHERY_SETUP.md +402 -0
- package/docs/wordpress-rest-api-authentication-troubleshooting.md +45 -42
- package/package.json +12 -2
- package/src/cache/CacheInvalidation.ts +7 -18
- package/src/client/MockWordPressClient.ts +398 -0
- package/src/client/api.ts +77 -237
- package/src/client/managers/AuthenticationManager.ts +19 -56
- package/src/config/ConfigurationSchema.ts +14 -45
- package/src/config/ServerConfiguration.ts +98 -71
- package/src/docs/DocumentationGenerator.ts +39 -123
- package/src/dxt-entry.cjs +4 -1
- package/src/index.ts +35 -54
- package/src/security/InputValidator.ts +15 -57
- package/src/server/ToolRegistry.ts +88 -17
- package/src/tools/auth.ts +15 -22
- package/src/tools/posts.ts +347 -64
- package/src/tools/site.ts +69 -46
- package/src/tools/users.ts +142 -44
- package/src/utils/enhancedError.ts +248 -0
- package/src/utils/streaming.ts +428 -0
- package/src/utils/validation.ts +253 -92
- package/dist/mcp-wordpress-1.5.2.tgz +0 -0
|
@@ -21,13 +21,11 @@ Get performance alerts and anomaly detection results
|
|
|
21
21
|
Simple example of using wp_performance_alerts
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
-
|
|
25
24
|
```bash
|
|
26
25
|
wp_performance_alerts
|
|
27
26
|
```
|
|
28
27
|
|
|
29
28
|
**Response:**
|
|
30
|
-
|
|
31
29
|
```json
|
|
32
30
|
{
|
|
33
31
|
"success": true,
|
|
@@ -43,7 +41,6 @@ wp_performance_alerts
|
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
**Error Example (Authentication failure):**
|
|
46
|
-
|
|
47
44
|
```json
|
|
48
45
|
{
|
|
49
46
|
"error": "Authentication failed",
|
|
@@ -51,18 +48,17 @@ wp_performance_alerts
|
|
|
51
48
|
}
|
|
52
49
|
```
|
|
53
50
|
|
|
51
|
+
|
|
54
52
|
### Multi-Site performance Usage
|
|
55
53
|
|
|
56
54
|
Using wp_performance_alerts with specific site targeting
|
|
57
55
|
|
|
58
56
|
**Command:**
|
|
59
|
-
|
|
60
57
|
```bash
|
|
61
58
|
wp_performance_alerts --site="site1"
|
|
62
59
|
```
|
|
63
60
|
|
|
64
61
|
**Response:**
|
|
65
|
-
|
|
66
62
|
```json
|
|
67
63
|
{
|
|
68
64
|
"success": true,
|
|
@@ -77,18 +73,19 @@ wp_performance_alerts --site="site1"
|
|
|
77
73
|
}
|
|
78
74
|
```
|
|
79
75
|
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
80
79
|
### Advanced performance Configuration
|
|
81
80
|
|
|
82
81
|
Comprehensive example using all available parameters
|
|
83
82
|
|
|
84
83
|
**Command:**
|
|
85
|
-
|
|
86
84
|
```bash
|
|
87
85
|
wp_performance_alerts --site="site1" --severity="example_value" --category="overview" --limit="20" --includeAnomalies="example_value"
|
|
88
86
|
```
|
|
89
87
|
|
|
90
88
|
**Response:**
|
|
91
|
-
|
|
92
89
|
```json
|
|
93
90
|
{
|
|
94
91
|
"success": true,
|
|
@@ -103,6 +100,13 @@ wp_performance_alerts --site="site1" --severity="example_value" --category="over
|
|
|
103
100
|
}
|
|
104
101
|
```
|
|
105
102
|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
106
110
|
## Response Format
|
|
107
111
|
|
|
108
112
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -129,24 +133,30 @@ wp_performance_alerts --site="site1" --severity="example_value" --category="over
|
|
|
129
133
|
**Description:** Invalid credentials or insufficient permissions
|
|
130
134
|
**Resolution:** Check your authentication credentials and user permissions
|
|
131
135
|
|
|
136
|
+
|
|
132
137
|
### VALIDATION_ERROR
|
|
133
138
|
|
|
134
139
|
**Message:** Parameter validation failed
|
|
135
140
|
**Description:** One or more required parameters are missing or invalid
|
|
136
141
|
**Resolution:** Review the required parameters and their formats
|
|
137
142
|
|
|
143
|
+
|
|
138
144
|
### NOT_FOUND
|
|
139
145
|
|
|
140
146
|
**Message:** Resource not found
|
|
141
147
|
**Description:** The requested resource does not exist
|
|
142
148
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
143
149
|
|
|
150
|
+
|
|
144
151
|
### PERMISSION_DENIED
|
|
145
152
|
|
|
146
153
|
**Message:** Insufficient permissions
|
|
147
154
|
**Description:** The user does not have permission to perform this action
|
|
148
155
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
149
156
|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
150
160
|
---
|
|
151
161
|
|
|
152
162
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,13 +19,11 @@ Compare current performance against industry benchmarks
|
|
|
19
19
|
Simple example of using wp_performance_benchmark
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
-
|
|
23
22
|
```bash
|
|
24
23
|
wp_performance_benchmark
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
**Response:**
|
|
28
|
-
|
|
29
27
|
```json
|
|
30
28
|
{
|
|
31
29
|
"success": true,
|
|
@@ -41,7 +39,6 @@ wp_performance_benchmark
|
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
**Error Example (Authentication failure):**
|
|
44
|
-
|
|
45
42
|
```json
|
|
46
43
|
{
|
|
47
44
|
"error": "Authentication failed",
|
|
@@ -49,18 +46,17 @@ wp_performance_benchmark
|
|
|
49
46
|
}
|
|
50
47
|
```
|
|
51
48
|
|
|
49
|
+
|
|
52
50
|
### Multi-Site performance Usage
|
|
53
51
|
|
|
54
52
|
Using wp_performance_benchmark with specific site targeting
|
|
55
53
|
|
|
56
54
|
**Command:**
|
|
57
|
-
|
|
58
55
|
```bash
|
|
59
56
|
wp_performance_benchmark --site="site1"
|
|
60
57
|
```
|
|
61
58
|
|
|
62
59
|
**Response:**
|
|
63
|
-
|
|
64
60
|
```json
|
|
65
61
|
{
|
|
66
62
|
"success": true,
|
|
@@ -75,18 +71,19 @@ wp_performance_benchmark --site="site1"
|
|
|
75
71
|
}
|
|
76
72
|
```
|
|
77
73
|
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
78
77
|
### Advanced performance Configuration
|
|
79
78
|
|
|
80
79
|
Comprehensive example using all available parameters
|
|
81
80
|
|
|
82
81
|
**Command:**
|
|
83
|
-
|
|
84
82
|
```bash
|
|
85
83
|
wp_performance_benchmark --site="site1" --category="overview" --includeRecommendations="example_value"
|
|
86
84
|
```
|
|
87
85
|
|
|
88
86
|
**Response:**
|
|
89
|
-
|
|
90
87
|
```json
|
|
91
88
|
{
|
|
92
89
|
"success": true,
|
|
@@ -101,6 +98,13 @@ wp_performance_benchmark --site="site1" --category="overview" --includeRecommend
|
|
|
101
98
|
}
|
|
102
99
|
```
|
|
103
100
|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
104
108
|
## Response Format
|
|
105
109
|
|
|
106
110
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -127,24 +131,30 @@ wp_performance_benchmark --site="site1" --category="overview" --includeRecommend
|
|
|
127
131
|
**Description:** Invalid credentials or insufficient permissions
|
|
128
132
|
**Resolution:** Check your authentication credentials and user permissions
|
|
129
133
|
|
|
134
|
+
|
|
130
135
|
### VALIDATION_ERROR
|
|
131
136
|
|
|
132
137
|
**Message:** Parameter validation failed
|
|
133
138
|
**Description:** One or more required parameters are missing or invalid
|
|
134
139
|
**Resolution:** Review the required parameters and their formats
|
|
135
140
|
|
|
141
|
+
|
|
136
142
|
### NOT_FOUND
|
|
137
143
|
|
|
138
144
|
**Message:** Resource not found
|
|
139
145
|
**Description:** The requested resource does not exist
|
|
140
146
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
141
147
|
|
|
148
|
+
|
|
142
149
|
### PERMISSION_DENIED
|
|
143
150
|
|
|
144
151
|
**Message:** Insufficient permissions
|
|
145
152
|
**Description:** The user does not have permission to perform this action
|
|
146
153
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
147
154
|
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
148
158
|
---
|
|
149
159
|
|
|
150
160
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -21,13 +21,11 @@ Export comprehensive performance report
|
|
|
21
21
|
Simple example of using wp_performance_export
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
-
|
|
25
24
|
```bash
|
|
26
25
|
wp_performance_export
|
|
27
26
|
```
|
|
28
27
|
|
|
29
28
|
**Response:**
|
|
30
|
-
|
|
31
29
|
```json
|
|
32
30
|
{
|
|
33
31
|
"success": true,
|
|
@@ -43,7 +41,6 @@ wp_performance_export
|
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
**Error Example (Authentication failure):**
|
|
46
|
-
|
|
47
44
|
```json
|
|
48
45
|
{
|
|
49
46
|
"error": "Authentication failed",
|
|
@@ -51,18 +48,17 @@ wp_performance_export
|
|
|
51
48
|
}
|
|
52
49
|
```
|
|
53
50
|
|
|
51
|
+
|
|
54
52
|
### Multi-Site performance Usage
|
|
55
53
|
|
|
56
54
|
Using wp_performance_export with specific site targeting
|
|
57
55
|
|
|
58
56
|
**Command:**
|
|
59
|
-
|
|
60
57
|
```bash
|
|
61
58
|
wp_performance_export --site="site1"
|
|
62
59
|
```
|
|
63
60
|
|
|
64
61
|
**Response:**
|
|
65
|
-
|
|
66
62
|
```json
|
|
67
63
|
{
|
|
68
64
|
"success": true,
|
|
@@ -77,18 +73,19 @@ wp_performance_export --site="site1"
|
|
|
77
73
|
}
|
|
78
74
|
```
|
|
79
75
|
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
80
79
|
### Advanced performance Configuration
|
|
81
80
|
|
|
82
81
|
Comprehensive example using all available parameters
|
|
83
82
|
|
|
84
83
|
**Command:**
|
|
85
|
-
|
|
86
84
|
```bash
|
|
87
85
|
wp_performance_export --site="site1" --format="summary" --includeHistorical="example_value" --includeAnalytics="example_value" --timeRange="example_value"
|
|
88
86
|
```
|
|
89
87
|
|
|
90
88
|
**Response:**
|
|
91
|
-
|
|
92
89
|
```json
|
|
93
90
|
{
|
|
94
91
|
"success": true,
|
|
@@ -103,6 +100,13 @@ wp_performance_export --site="site1" --format="summary" --includeHistorical="exa
|
|
|
103
100
|
}
|
|
104
101
|
```
|
|
105
102
|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
106
110
|
## Response Format
|
|
107
111
|
|
|
108
112
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -129,24 +133,30 @@ wp_performance_export --site="site1" --format="summary" --includeHistorical="exa
|
|
|
129
133
|
**Description:** Invalid credentials or insufficient permissions
|
|
130
134
|
**Resolution:** Check your authentication credentials and user permissions
|
|
131
135
|
|
|
136
|
+
|
|
132
137
|
### VALIDATION_ERROR
|
|
133
138
|
|
|
134
139
|
**Message:** Parameter validation failed
|
|
135
140
|
**Description:** One or more required parameters are missing or invalid
|
|
136
141
|
**Resolution:** Review the required parameters and their formats
|
|
137
142
|
|
|
143
|
+
|
|
138
144
|
### NOT_FOUND
|
|
139
145
|
|
|
140
146
|
**Message:** Resource not found
|
|
141
147
|
**Description:** The requested resource does not exist
|
|
142
148
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
143
149
|
|
|
150
|
+
|
|
144
151
|
### PERMISSION_DENIED
|
|
145
152
|
|
|
146
153
|
**Message:** Insufficient permissions
|
|
147
154
|
**Description:** The user does not have permission to perform this action
|
|
148
155
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
149
156
|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
150
160
|
---
|
|
151
161
|
|
|
152
162
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -20,13 +20,11 @@ Get historical performance data and trends
|
|
|
20
20
|
Simple example of using wp_performance_history
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
-
|
|
24
23
|
```bash
|
|
25
24
|
wp_performance_history
|
|
26
25
|
```
|
|
27
26
|
|
|
28
27
|
**Response:**
|
|
29
|
-
|
|
30
28
|
```json
|
|
31
29
|
{
|
|
32
30
|
"success": true,
|
|
@@ -42,7 +40,6 @@ wp_performance_history
|
|
|
42
40
|
```
|
|
43
41
|
|
|
44
42
|
**Error Example (Authentication failure):**
|
|
45
|
-
|
|
46
43
|
```json
|
|
47
44
|
{
|
|
48
45
|
"error": "Authentication failed",
|
|
@@ -50,18 +47,17 @@ wp_performance_history
|
|
|
50
47
|
}
|
|
51
48
|
```
|
|
52
49
|
|
|
50
|
+
|
|
53
51
|
### Multi-Site performance Usage
|
|
54
52
|
|
|
55
53
|
Using wp_performance_history with specific site targeting
|
|
56
54
|
|
|
57
55
|
**Command:**
|
|
58
|
-
|
|
59
56
|
```bash
|
|
60
57
|
wp_performance_history --site="site1"
|
|
61
58
|
```
|
|
62
59
|
|
|
63
60
|
**Response:**
|
|
64
|
-
|
|
65
61
|
```json
|
|
66
62
|
{
|
|
67
63
|
"success": true,
|
|
@@ -76,18 +72,19 @@ wp_performance_history --site="site1"
|
|
|
76
72
|
}
|
|
77
73
|
```
|
|
78
74
|
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
79
78
|
### Advanced performance Configuration
|
|
80
79
|
|
|
81
80
|
Comprehensive example using all available parameters
|
|
82
81
|
|
|
83
82
|
**Command:**
|
|
84
|
-
|
|
85
83
|
```bash
|
|
86
84
|
wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value" --includeTrends="example_value"
|
|
87
85
|
```
|
|
88
86
|
|
|
89
87
|
**Response:**
|
|
90
|
-
|
|
91
88
|
```json
|
|
92
89
|
{
|
|
93
90
|
"success": true,
|
|
@@ -102,6 +99,13 @@ wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value
|
|
|
102
99
|
}
|
|
103
100
|
```
|
|
104
101
|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
105
109
|
## Response Format
|
|
106
110
|
|
|
107
111
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -128,24 +132,30 @@ wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value
|
|
|
128
132
|
**Description:** Invalid credentials or insufficient permissions
|
|
129
133
|
**Resolution:** Check your authentication credentials and user permissions
|
|
130
134
|
|
|
135
|
+
|
|
131
136
|
### VALIDATION_ERROR
|
|
132
137
|
|
|
133
138
|
**Message:** Parameter validation failed
|
|
134
139
|
**Description:** One or more required parameters are missing or invalid
|
|
135
140
|
**Resolution:** Review the required parameters and their formats
|
|
136
141
|
|
|
142
|
+
|
|
137
143
|
### NOT_FOUND
|
|
138
144
|
|
|
139
145
|
**Message:** Resource not found
|
|
140
146
|
**Description:** The requested resource does not exist
|
|
141
147
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
142
148
|
|
|
149
|
+
|
|
143
150
|
### PERMISSION_DENIED
|
|
144
151
|
|
|
145
152
|
**Message:** Insufficient permissions
|
|
146
153
|
**Description:** The user does not have permission to perform this action
|
|
147
154
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
148
155
|
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
149
159
|
---
|
|
150
160
|
|
|
151
161
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -21,13 +21,11 @@ Get optimization recommendations and insights
|
|
|
21
21
|
Simple example of using wp_performance_optimize
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
-
|
|
25
24
|
```bash
|
|
26
25
|
wp_performance_optimize
|
|
27
26
|
```
|
|
28
27
|
|
|
29
28
|
**Response:**
|
|
30
|
-
|
|
31
29
|
```json
|
|
32
30
|
{
|
|
33
31
|
"success": true,
|
|
@@ -43,7 +41,6 @@ wp_performance_optimize
|
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
**Error Example (Authentication failure):**
|
|
46
|
-
|
|
47
44
|
```json
|
|
48
45
|
{
|
|
49
46
|
"error": "Authentication failed",
|
|
@@ -51,18 +48,17 @@ wp_performance_optimize
|
|
|
51
48
|
}
|
|
52
49
|
```
|
|
53
50
|
|
|
51
|
+
|
|
54
52
|
### Multi-Site performance Usage
|
|
55
53
|
|
|
56
54
|
Using wp_performance_optimize with specific site targeting
|
|
57
55
|
|
|
58
56
|
**Command:**
|
|
59
|
-
|
|
60
57
|
```bash
|
|
61
58
|
wp_performance_optimize --site="site1"
|
|
62
59
|
```
|
|
63
60
|
|
|
64
61
|
**Response:**
|
|
65
|
-
|
|
66
62
|
```json
|
|
67
63
|
{
|
|
68
64
|
"success": true,
|
|
@@ -77,18 +73,19 @@ wp_performance_optimize --site="site1"
|
|
|
77
73
|
}
|
|
78
74
|
```
|
|
79
75
|
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
80
79
|
### Advanced performance Configuration
|
|
81
80
|
|
|
82
81
|
Comprehensive example using all available parameters
|
|
83
82
|
|
|
84
83
|
**Command:**
|
|
85
|
-
|
|
86
84
|
```bash
|
|
87
85
|
wp_performance_optimize --site="site1" --focus="example_value" --priority="example_value" --includeROI="example_value" --includePredictions="example_value"
|
|
88
86
|
```
|
|
89
87
|
|
|
90
88
|
**Response:**
|
|
91
|
-
|
|
92
89
|
```json
|
|
93
90
|
{
|
|
94
91
|
"success": true,
|
|
@@ -103,6 +100,13 @@ wp_performance_optimize --site="site1" --focus="example_value" --priority="examp
|
|
|
103
100
|
}
|
|
104
101
|
```
|
|
105
102
|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
106
110
|
## Response Format
|
|
107
111
|
|
|
108
112
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -129,24 +133,30 @@ wp_performance_optimize --site="site1" --focus="example_value" --priority="examp
|
|
|
129
133
|
**Description:** Invalid credentials or insufficient permissions
|
|
130
134
|
**Resolution:** Check your authentication credentials and user permissions
|
|
131
135
|
|
|
136
|
+
|
|
132
137
|
### VALIDATION_ERROR
|
|
133
138
|
|
|
134
139
|
**Message:** Parameter validation failed
|
|
135
140
|
**Description:** One or more required parameters are missing or invalid
|
|
136
141
|
**Resolution:** Review the required parameters and their formats
|
|
137
142
|
|
|
143
|
+
|
|
138
144
|
### NOT_FOUND
|
|
139
145
|
|
|
140
146
|
**Message:** Resource not found
|
|
141
147
|
**Description:** The requested resource does not exist
|
|
142
148
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
143
149
|
|
|
150
|
+
|
|
144
151
|
### PERMISSION_DENIED
|
|
145
152
|
|
|
146
153
|
**Message:** Insufficient permissions
|
|
147
154
|
**Description:** The user does not have permission to perform this action
|
|
148
155
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
149
156
|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
150
160
|
---
|
|
151
161
|
|
|
152
162
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,13 +19,11 @@ Get real-time performance statistics and metrics
|
|
|
19
19
|
Simple example of using wp_performance_stats
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
-
|
|
23
22
|
```bash
|
|
24
23
|
wp_performance_stats
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
**Response:**
|
|
28
|
-
|
|
29
27
|
```json
|
|
30
28
|
{
|
|
31
29
|
"success": true,
|
|
@@ -41,7 +39,6 @@ wp_performance_stats
|
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
**Error Example (Authentication failure):**
|
|
44
|
-
|
|
45
42
|
```json
|
|
46
43
|
{
|
|
47
44
|
"error": "Authentication failed",
|
|
@@ -49,18 +46,17 @@ wp_performance_stats
|
|
|
49
46
|
}
|
|
50
47
|
```
|
|
51
48
|
|
|
49
|
+
|
|
52
50
|
### Multi-Site performance Usage
|
|
53
51
|
|
|
54
52
|
Using wp_performance_stats with specific site targeting
|
|
55
53
|
|
|
56
54
|
**Command:**
|
|
57
|
-
|
|
58
55
|
```bash
|
|
59
56
|
wp_performance_stats --site="site1"
|
|
60
57
|
```
|
|
61
58
|
|
|
62
59
|
**Response:**
|
|
63
|
-
|
|
64
60
|
```json
|
|
65
61
|
{
|
|
66
62
|
"success": true,
|
|
@@ -75,18 +71,19 @@ wp_performance_stats --site="site1"
|
|
|
75
71
|
}
|
|
76
72
|
```
|
|
77
73
|
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
78
77
|
### Advanced performance Configuration
|
|
79
78
|
|
|
80
79
|
Comprehensive example using all available parameters
|
|
81
80
|
|
|
82
81
|
**Command:**
|
|
83
|
-
|
|
84
82
|
```bash
|
|
85
83
|
wp_performance_stats --site="site1" --category="overview" --format="summary"
|
|
86
84
|
```
|
|
87
85
|
|
|
88
86
|
**Response:**
|
|
89
|
-
|
|
90
87
|
```json
|
|
91
88
|
{
|
|
92
89
|
"success": true,
|
|
@@ -101,6 +98,13 @@ wp_performance_stats --site="site1" --category="overview" --format="summary"
|
|
|
101
98
|
}
|
|
102
99
|
```
|
|
103
100
|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
104
108
|
## Response Format
|
|
105
109
|
|
|
106
110
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -127,24 +131,30 @@ wp_performance_stats --site="site1" --category="overview" --format="summary"
|
|
|
127
131
|
**Description:** Invalid credentials or insufficient permissions
|
|
128
132
|
**Resolution:** Check your authentication credentials and user permissions
|
|
129
133
|
|
|
134
|
+
|
|
130
135
|
### VALIDATION_ERROR
|
|
131
136
|
|
|
132
137
|
**Message:** Parameter validation failed
|
|
133
138
|
**Description:** One or more required parameters are missing or invalid
|
|
134
139
|
**Resolution:** Review the required parameters and their formats
|
|
135
140
|
|
|
141
|
+
|
|
136
142
|
### NOT_FOUND
|
|
137
143
|
|
|
138
144
|
**Message:** Resource not found
|
|
139
145
|
**Description:** The requested resource does not exist
|
|
140
146
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
141
147
|
|
|
148
|
+
|
|
142
149
|
### PERMISSION_DENIED
|
|
143
150
|
|
|
144
151
|
**Message:** Insufficient permissions
|
|
145
152
|
**Description:** The user does not have permission to perform this action
|
|
146
153
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
147
154
|
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
148
158
|
---
|
|
149
159
|
|
|
150
160
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,13 +18,11 @@ Performs a site-wide search for content.
|
|
|
18
18
|
Simple example of using wp_search_site
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
-
|
|
22
21
|
```bash
|
|
23
22
|
wp_search_site --term="example_value"
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
**Response:**
|
|
27
|
-
|
|
28
26
|
```json
|
|
29
27
|
{
|
|
30
28
|
"success": true,
|
|
@@ -34,7 +32,6 @@ wp_search_site --term="example_value"
|
|
|
34
32
|
```
|
|
35
33
|
|
|
36
34
|
**Error Example (Authentication failure):**
|
|
37
|
-
|
|
38
35
|
```json
|
|
39
36
|
{
|
|
40
37
|
"error": "Authentication failed",
|
|
@@ -42,6 +39,11 @@ wp_search_site --term="example_value"
|
|
|
42
39
|
}
|
|
43
40
|
```
|
|
44
41
|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
45
47
|
## Response Format
|
|
46
48
|
|
|
47
49
|
**Return Type:** `site[]`
|
|
@@ -68,24 +70,30 @@ wp_search_site --term="example_value"
|
|
|
68
70
|
**Description:** Invalid credentials or insufficient permissions
|
|
69
71
|
**Resolution:** Check your authentication credentials and user permissions
|
|
70
72
|
|
|
73
|
+
|
|
71
74
|
### VALIDATION_ERROR
|
|
72
75
|
|
|
73
76
|
**Message:** Parameter validation failed
|
|
74
77
|
**Description:** One or more required parameters are missing or invalid
|
|
75
78
|
**Resolution:** Review the required parameters and their formats
|
|
76
79
|
|
|
80
|
+
|
|
77
81
|
### NOT_FOUND
|
|
78
82
|
|
|
79
83
|
**Message:** Resource not found
|
|
80
84
|
**Description:** The requested resource does not exist
|
|
81
85
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
82
86
|
|
|
87
|
+
|
|
83
88
|
### PERMISSION_DENIED
|
|
84
89
|
|
|
85
90
|
**Message:** Insufficient permissions
|
|
86
91
|
**Description:** The user does not have permission to perform this action
|
|
87
92
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
88
93
|
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
89
97
|
---
|
|
90
98
|
|
|
91
99
|
*Generated automatically from tool definitions - Do not edit manually*
|