mcp-wordpress 1.3.1 → 1.5.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 +151 -772
- package/dist/cache/CacheInvalidation.d.ts.map +1 -1
- package/dist/client/CachedWordPressClient.d.ts.map +1 -1
- package/dist/client/CachedWordPressClient.js.map +1 -1
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +11 -3
- package/dist/client/api.js.map +1 -1
- package/dist/client/auth.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.js.map +1 -1
- package/dist/client/managers/RequestManager.js +0 -1
- package/dist/client/managers/RequestManager.js.map +1 -1
- package/dist/config/ServerConfiguration.d.ts.map +1 -1
- package/dist/config/ServerConfiguration.js +18 -0
- package/dist/config/ServerConfiguration.js.map +1 -1
- package/dist/docs/MarkdownFormatter.js.map +1 -1
- package/dist/dxt-entry.d.ts +6 -0
- package/dist/dxt-entry.d.ts.map +1 -0
- package/dist/dxt-entry.js +38 -0
- package/dist/dxt-entry.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp-wordpress-1.5.0.tgz +0 -0
- package/dist/performance/MetricsCollector.d.ts.map +1 -1
- package/dist/performance/PerformanceAnalytics.d.ts.map +1 -1
- package/dist/performance/PerformanceAnalytics.js.map +1 -1
- package/dist/performance/PerformanceMonitor.d.ts.map +1 -1
- package/dist/security/InputValidator.js.map +1 -1
- package/dist/security/SecurityConfig.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/cache.js +1 -1
- package/dist/tools/cache.js.map +1 -1
- package/dist/tools/performance.js.map +1 -1
- package/docs/DOCKER.md +8 -1
- package/docs/api/README.md +82 -75
- package/docs/api/categories/site.md +2 -0
- package/docs/api/tools/wp_approve_comment.md +0 -6
- package/docs/api/tools/wp_cache_clear.md +5 -14
- package/docs/api/tools/wp_cache_info.md +5 -14
- package/docs/api/tools/wp_cache_stats.md +5 -14
- package/docs/api/tools/wp_cache_warm.md +5 -14
- package/docs/api/tools/wp_create_application_password.md +3 -11
- package/docs/api/tools/wp_create_category.md +3 -11
- package/docs/api/tools/wp_create_comment.md +5 -14
- package/docs/api/tools/wp_create_page.md +5 -13
- package/docs/api/tools/wp_create_post.md +6 -12
- package/docs/api/tools/wp_create_tag.md +3 -11
- package/docs/api/tools/wp_create_user.md +5 -13
- package/docs/api/tools/wp_delete_application_password.md +3 -11
- package/docs/api/tools/wp_delete_category.md +3 -11
- package/docs/api/tools/wp_delete_comment.md +3 -11
- package/docs/api/tools/wp_delete_media.md +3 -10
- package/docs/api/tools/wp_delete_page.md +3 -10
- package/docs/api/tools/wp_delete_post.md +4 -9
- package/docs/api/tools/wp_delete_tag.md +3 -11
- package/docs/api/tools/wp_delete_user.md +3 -10
- package/docs/api/tools/wp_get_application_passwords.md +3 -11
- package/docs/api/tools/wp_get_auth_status.md +3 -11
- package/docs/api/tools/wp_get_category.md +3 -11
- package/docs/api/tools/wp_get_comment.md +3 -11
- package/docs/api/tools/wp_get_current_user.md +3 -11
- package/docs/api/tools/wp_get_media.md +3 -11
- package/docs/api/tools/wp_get_page.md +3 -11
- package/docs/api/tools/wp_get_page_revisions.md +3 -11
- package/docs/api/tools/wp_get_post.md +4 -10
- package/docs/api/tools/wp_get_post_revisions.md +3 -11
- package/docs/api/tools/wp_get_site_settings.md +3 -10
- package/docs/api/tools/wp_get_tag.md +3 -11
- package/docs/api/tools/wp_get_user.md +3 -11
- package/docs/api/tools/wp_list_categories.md +3 -11
- package/docs/api/tools/wp_list_comments.md +3 -11
- package/docs/api/tools/wp_list_media.md +5 -14
- package/docs/api/tools/wp_list_pages.md +5 -14
- package/docs/api/tools/wp_list_posts.md +6 -13
- package/docs/api/tools/wp_list_tags.md +3 -11
- package/docs/api/tools/wp_list_users.md +3 -11
- package/docs/api/tools/wp_performance_alerts.md +7 -17
- package/docs/api/tools/wp_performance_benchmark.md +7 -17
- package/docs/api/tools/wp_performance_export.md +7 -17
- package/docs/api/tools/wp_performance_history.md +7 -17
- package/docs/api/tools/wp_performance_optimize.md +7 -17
- package/docs/api/tools/wp_performance_stats.md +7 -17
- package/docs/api/tools/wp_search_site.md +3 -11
- package/docs/api/tools/wp_spam_comment.md +3 -11
- package/docs/api/tools/wp_switch_auth_method.md +5 -14
- package/docs/api/tools/wp_test_auth.md +3 -11
- package/docs/api/tools/wp_update_category.md +3 -11
- package/docs/api/tools/wp_update_comment.md +5 -14
- package/docs/api/tools/wp_update_media.md +5 -14
- package/docs/api/tools/wp_update_page.md +5 -13
- package/docs/api/tools/wp_update_post.md +6 -12
- package/docs/api/tools/wp_update_site_settings.md +5 -14
- package/docs/api/tools/wp_update_tag.md +3 -11
- package/docs/api/tools/wp_update_user.md +5 -13
- package/docs/api/tools/wp_upload_media.md +5 -13
- package/docs/api/types/WordPressPost.md +0 -2
- package/docs/developer/API_REFERENCE.md +668 -0
- package/docs/developer/ARCHITECTURE.md +374 -0
- package/docs/developer/BUILD_SYSTEM.md +460 -0
- package/docs/developer/CONTRIBUTING.md +469 -0
- package/docs/developer/DEVELOPMENT_SETUP.md +463 -0
- package/docs/developer/DXT-DEBUG-BEST-PRACTICES.md +212 -0
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -1
- package/docs/developer/MAINTENANCE.md +5 -5
- package/docs/developer/MIGRATION_GUIDE.md +7 -5
- package/docs/developer/NPM_AUTH_SETUP.md +4 -4
- package/docs/developer/README.md +242 -0
- package/docs/developer/REFACTORING.md +15 -10
- package/docs/developer/RELEASE_PROCESS.md +528 -0
- package/docs/developer/TESTING.md +734 -0
- package/docs/releases/COMMUNITY_ANNOUNCEMENT_v1.1.2.md +9 -3
- package/docs/releases/RELEASE_NOTES_v1.1.2.md +4 -4
- package/docs/user-guides/DOCKER_SETUP.md +2 -2
- package/docs/user-guides/DTX_SETUP.md +3 -3
- package/docs/user-guides/DXT_INSTALLATION.md +149 -0
- package/docs/user-guides/NPX_SETUP.md +2 -2
- package/package.json +5 -4
- package/src/cache/CacheInvalidation.ts +1 -1
- package/src/client/CachedWordPressClient.ts +15 -15
- package/src/client/api.ts +54 -47
- package/src/client/auth.ts +88 -88
- package/src/client/managers/AuthenticationManager.ts +112 -112
- package/src/client/managers/RequestManager.ts +1 -1
- package/src/config/ServerConfiguration.ts +39 -0
- package/src/docs/MarkdownFormatter.ts +4 -4
- package/src/dxt-entry.cjs +55 -0
- package/src/dxt-entry.ts +55 -0
- package/src/index.ts +55 -2
- package/src/performance/MetricsCollector.ts +3 -3
- package/src/performance/PerformanceAnalytics.ts +16 -16
- package/src/performance/PerformanceMonitor.ts +1 -1
- package/src/security/InputValidator.ts +4 -4
- package/src/security/SecurityConfig.ts +1 -1
- package/src/server/ToolRegistry.ts +12 -12
- package/src/tools/cache.ts +1 -1
- package/src/tools/performance.ts +17 -17
- package/dist/mcp-wordpress-1.3.1.tgz +0 -0
|
@@ -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
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`
|
|
@@ -133,30 +129,24 @@ wp_performance_export --site="site1" --format="summary" --includeHistorical="exa
|
|
|
133
129
|
**Description:** Invalid credentials or insufficient permissions
|
|
134
130
|
**Resolution:** Check your authentication credentials and user permissions
|
|
135
131
|
|
|
136
|
-
|
|
137
132
|
### VALIDATION_ERROR
|
|
138
133
|
|
|
139
134
|
**Message:** Parameter validation failed
|
|
140
135
|
**Description:** One or more required parameters are missing or invalid
|
|
141
136
|
**Resolution:** Review the required parameters and their formats
|
|
142
137
|
|
|
143
|
-
|
|
144
138
|
### NOT_FOUND
|
|
145
139
|
|
|
146
140
|
**Message:** Resource not found
|
|
147
141
|
**Description:** The requested resource does not exist
|
|
148
142
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
143
|
|
|
150
|
-
|
|
151
144
|
### PERMISSION_DENIED
|
|
152
145
|
|
|
153
146
|
**Message:** Insufficient permissions
|
|
154
147
|
**Description:** The user does not have permission to perform this action
|
|
155
148
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
149
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
150
|
---
|
|
161
151
|
|
|
162
152
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -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
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`
|
|
@@ -132,30 +128,24 @@ wp_performance_history --site="site1" --timeframe="24h" --metrics="example_value
|
|
|
132
128
|
**Description:** Invalid credentials or insufficient permissions
|
|
133
129
|
**Resolution:** Check your authentication credentials and user permissions
|
|
134
130
|
|
|
135
|
-
|
|
136
131
|
### VALIDATION_ERROR
|
|
137
132
|
|
|
138
133
|
**Message:** Parameter validation failed
|
|
139
134
|
**Description:** One or more required parameters are missing or invalid
|
|
140
135
|
**Resolution:** Review the required parameters and their formats
|
|
141
136
|
|
|
142
|
-
|
|
143
137
|
### NOT_FOUND
|
|
144
138
|
|
|
145
139
|
**Message:** Resource not found
|
|
146
140
|
**Description:** The requested resource does not exist
|
|
147
141
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
148
142
|
|
|
149
|
-
|
|
150
143
|
### PERMISSION_DENIED
|
|
151
144
|
|
|
152
145
|
**Message:** Insufficient permissions
|
|
153
146
|
**Description:** The user does not have permission to perform this action
|
|
154
147
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
155
148
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
149
|
---
|
|
160
150
|
|
|
161
151
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -21,11 +21,13 @@ Get optimization recommendations and insights
|
|
|
21
21
|
Simple example of using wp_performance_optimize
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
+
|
|
24
25
|
```bash
|
|
25
26
|
wp_performance_optimize
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
**Response:**
|
|
30
|
+
|
|
29
31
|
```json
|
|
30
32
|
{
|
|
31
33
|
"success": true,
|
|
@@ -41,6 +43,7 @@ wp_performance_optimize
|
|
|
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_optimize
|
|
|
48
51
|
}
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
|
|
52
54
|
### Multi-Site performance Usage
|
|
53
55
|
|
|
54
56
|
Using wp_performance_optimize with specific site targeting
|
|
55
57
|
|
|
56
58
|
**Command:**
|
|
59
|
+
|
|
57
60
|
```bash
|
|
58
61
|
wp_performance_optimize --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_optimize --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_optimize --site="site1" --focus="example_value" --priority="example_value" --includeROI="example_value" --includePredictions="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_optimize --site="site1" --focus="example_value" --priority="examp
|
|
|
100
103
|
}
|
|
101
104
|
```
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
106
|
## Response Format
|
|
111
107
|
|
|
112
108
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -133,30 +129,24 @@ wp_performance_optimize --site="site1" --focus="example_value" --priority="examp
|
|
|
133
129
|
**Description:** Invalid credentials or insufficient permissions
|
|
134
130
|
**Resolution:** Check your authentication credentials and user permissions
|
|
135
131
|
|
|
136
|
-
|
|
137
132
|
### VALIDATION_ERROR
|
|
138
133
|
|
|
139
134
|
**Message:** Parameter validation failed
|
|
140
135
|
**Description:** One or more required parameters are missing or invalid
|
|
141
136
|
**Resolution:** Review the required parameters and their formats
|
|
142
137
|
|
|
143
|
-
|
|
144
138
|
### NOT_FOUND
|
|
145
139
|
|
|
146
140
|
**Message:** Resource not found
|
|
147
141
|
**Description:** The requested resource does not exist
|
|
148
142
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
149
143
|
|
|
150
|
-
|
|
151
144
|
### PERMISSION_DENIED
|
|
152
145
|
|
|
153
146
|
**Message:** Insufficient permissions
|
|
154
147
|
**Description:** The user does not have permission to perform this action
|
|
155
148
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
156
149
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
150
|
---
|
|
161
151
|
|
|
162
152
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,11 +19,13 @@ Get real-time performance statistics and metrics
|
|
|
19
19
|
Simple example of using wp_performance_stats
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_performance_stats
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -39,6 +41,7 @@ wp_performance_stats
|
|
|
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_stats
|
|
|
46
49
|
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
|
-
|
|
50
52
|
### Multi-Site performance Usage
|
|
51
53
|
|
|
52
54
|
Using wp_performance_stats with specific site targeting
|
|
53
55
|
|
|
54
56
|
**Command:**
|
|
57
|
+
|
|
55
58
|
```bash
|
|
56
59
|
wp_performance_stats --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_stats --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_stats --site="site1" --category="overview" --format="summary"
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
**Response:**
|
|
89
|
+
|
|
87
90
|
```json
|
|
88
91
|
{
|
|
89
92
|
"success": true,
|
|
@@ -98,13 +101,6 @@ wp_performance_stats --site="site1" --category="overview" --format="summary"
|
|
|
98
101
|
}
|
|
99
102
|
```
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
104
|
## Response Format
|
|
109
105
|
|
|
110
106
|
**Return Type:** `PerformanceMetrics`
|
|
@@ -131,30 +127,24 @@ wp_performance_stats --site="site1" --category="overview" --format="summary"
|
|
|
131
127
|
**Description:** Invalid credentials or insufficient permissions
|
|
132
128
|
**Resolution:** Check your authentication credentials and user permissions
|
|
133
129
|
|
|
134
|
-
|
|
135
130
|
### VALIDATION_ERROR
|
|
136
131
|
|
|
137
132
|
**Message:** Parameter validation failed
|
|
138
133
|
**Description:** One or more required parameters are missing or invalid
|
|
139
134
|
**Resolution:** Review the required parameters and their formats
|
|
140
135
|
|
|
141
|
-
|
|
142
136
|
### NOT_FOUND
|
|
143
137
|
|
|
144
138
|
**Message:** Resource not found
|
|
145
139
|
**Description:** The requested resource does not exist
|
|
146
140
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
147
141
|
|
|
148
|
-
|
|
149
142
|
### PERMISSION_DENIED
|
|
150
143
|
|
|
151
144
|
**Message:** Insufficient permissions
|
|
152
145
|
**Description:** The user does not have permission to perform this action
|
|
153
146
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
154
147
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
148
|
---
|
|
159
149
|
|
|
160
150
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Performs a site-wide search for content.
|
|
|
18
18
|
Simple example of using wp_search_site
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_search_site --term="example_value"
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -32,6 +34,7 @@ wp_search_site --term="example_value"
|
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
**Error Example (Authentication failure):**
|
|
37
|
+
|
|
35
38
|
```json
|
|
36
39
|
{
|
|
37
40
|
"error": "Authentication failed",
|
|
@@ -39,11 +42,6 @@ wp_search_site --term="example_value"
|
|
|
39
42
|
}
|
|
40
43
|
```
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
45
|
## Response Format
|
|
48
46
|
|
|
49
47
|
**Return Type:** `site[]`
|
|
@@ -70,30 +68,24 @@ wp_search_site --term="example_value"
|
|
|
70
68
|
**Description:** Invalid credentials or insufficient permissions
|
|
71
69
|
**Resolution:** Check your authentication credentials and user permissions
|
|
72
70
|
|
|
73
|
-
|
|
74
71
|
### VALIDATION_ERROR
|
|
75
72
|
|
|
76
73
|
**Message:** Parameter validation failed
|
|
77
74
|
**Description:** One or more required parameters are missing or invalid
|
|
78
75
|
**Resolution:** Review the required parameters and their formats
|
|
79
76
|
|
|
80
|
-
|
|
81
77
|
### NOT_FOUND
|
|
82
78
|
|
|
83
79
|
**Message:** Resource not found
|
|
84
80
|
**Description:** The requested resource does not exist
|
|
85
81
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
86
82
|
|
|
87
|
-
|
|
88
83
|
### PERMISSION_DENIED
|
|
89
84
|
|
|
90
85
|
**Message:** Insufficient permissions
|
|
91
86
|
**Description:** The user does not have permission to perform this action
|
|
92
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
93
88
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
89
|
---
|
|
98
90
|
|
|
99
91
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Marks a comment as spam.
|
|
|
17
17
|
Simple example of using wp_spam_comment
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_spam_comment --id="123"
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -31,6 +33,7 @@ wp_spam_comment --id="123"
|
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
**Error Example (Authentication failure):**
|
|
36
|
+
|
|
34
37
|
```json
|
|
35
38
|
{
|
|
36
39
|
"error": "Authentication failed",
|
|
@@ -38,11 +41,6 @@ wp_spam_comment --id="123"
|
|
|
38
41
|
}
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
44
|
## Response Format
|
|
47
45
|
|
|
48
46
|
**Return Type:** `object`
|
|
@@ -69,30 +67,24 @@ wp_spam_comment --id="123"
|
|
|
69
67
|
**Description:** Invalid credentials or insufficient permissions
|
|
70
68
|
**Resolution:** Check your authentication credentials and user permissions
|
|
71
69
|
|
|
72
|
-
|
|
73
70
|
### VALIDATION_ERROR
|
|
74
71
|
|
|
75
72
|
**Message:** Parameter validation failed
|
|
76
73
|
**Description:** One or more required parameters are missing or invalid
|
|
77
74
|
**Resolution:** Review the required parameters and their formats
|
|
78
75
|
|
|
79
|
-
|
|
80
76
|
### NOT_FOUND
|
|
81
77
|
|
|
82
78
|
**Message:** Resource not found
|
|
83
79
|
**Description:** The requested resource does not exist
|
|
84
80
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
85
81
|
|
|
86
|
-
|
|
87
82
|
### PERMISSION_DENIED
|
|
88
83
|
|
|
89
84
|
**Message:** Insufficient permissions
|
|
90
85
|
**Description:** The user does not have permission to perform this action
|
|
91
86
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
92
87
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
88
|
---
|
|
97
89
|
|
|
98
90
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -20,11 +20,13 @@ Switches the authentication method for a site for the current session.
|
|
|
20
20
|
Simple example of using wp_switch_auth_method
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
+
|
|
23
24
|
```bash
|
|
24
25
|
wp_switch_auth_method --method="example_value"
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Response:**
|
|
29
|
+
|
|
28
30
|
```json
|
|
29
31
|
{
|
|
30
32
|
"success": true,
|
|
@@ -34,6 +36,7 @@ wp_switch_auth_method --method="example_value"
|
|
|
34
36
|
```
|
|
35
37
|
|
|
36
38
|
**Error Example (Authentication failure):**
|
|
39
|
+
|
|
37
40
|
```json
|
|
38
41
|
{
|
|
39
42
|
"error": "Authentication failed",
|
|
@@ -41,17 +44,18 @@ wp_switch_auth_method --method="example_value"
|
|
|
41
44
|
}
|
|
42
45
|
```
|
|
43
46
|
|
|
44
|
-
|
|
45
47
|
### Advanced auth Configuration
|
|
46
48
|
|
|
47
49
|
Comprehensive example using all available parameters
|
|
48
50
|
|
|
49
51
|
**Command:**
|
|
52
|
+
|
|
50
53
|
```bash
|
|
51
54
|
wp_switch_auth_method --method="example_value" --username="john_doe" --password="example_value" --jwt_token="example_value"
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
**Response:**
|
|
58
|
+
|
|
55
59
|
```json
|
|
56
60
|
{
|
|
57
61
|
"success": true,
|
|
@@ -60,13 +64,6 @@ wp_switch_auth_method --method="example_value" --username="john_doe" --password=
|
|
|
60
64
|
}
|
|
61
65
|
```
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
67
|
## Response Format
|
|
71
68
|
|
|
72
69
|
**Return Type:** `object`
|
|
@@ -93,30 +90,24 @@ wp_switch_auth_method --method="example_value" --username="john_doe" --password=
|
|
|
93
90
|
**Description:** Invalid credentials or insufficient permissions
|
|
94
91
|
**Resolution:** Check your authentication credentials and user permissions
|
|
95
92
|
|
|
96
|
-
|
|
97
93
|
### VALIDATION_ERROR
|
|
98
94
|
|
|
99
95
|
**Message:** Parameter validation failed
|
|
100
96
|
**Description:** One or more required parameters are missing or invalid
|
|
101
97
|
**Resolution:** Review the required parameters and their formats
|
|
102
98
|
|
|
103
|
-
|
|
104
99
|
### NOT_FOUND
|
|
105
100
|
|
|
106
101
|
**Message:** Resource not found
|
|
107
102
|
**Description:** The requested resource does not exist
|
|
108
103
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
109
104
|
|
|
110
|
-
|
|
111
105
|
### PERMISSION_DENIED
|
|
112
106
|
|
|
113
107
|
**Message:** Insufficient permissions
|
|
114
108
|
**Description:** The user does not have permission to perform this action
|
|
115
109
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
116
110
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
111
|
---
|
|
121
112
|
|
|
122
113
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -15,11 +15,13 @@ Tests the authentication and connectivity for a configured WordPress site.
|
|
|
15
15
|
Simple example of using wp_test_auth
|
|
16
16
|
|
|
17
17
|
**Command:**
|
|
18
|
+
|
|
18
19
|
```bash
|
|
19
20
|
wp_test_auth
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
**Response:**
|
|
24
|
+
|
|
23
25
|
```json
|
|
24
26
|
{
|
|
25
27
|
"success": true,
|
|
@@ -29,6 +31,7 @@ wp_test_auth
|
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
**Error Example (Authentication failure):**
|
|
34
|
+
|
|
32
35
|
```json
|
|
33
36
|
{
|
|
34
37
|
"error": "Authentication failed",
|
|
@@ -36,11 +39,6 @@ wp_test_auth
|
|
|
36
39
|
}
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
42
|
## Response Format
|
|
45
43
|
|
|
46
44
|
**Return Type:** `object`
|
|
@@ -67,30 +65,24 @@ wp_test_auth
|
|
|
67
65
|
**Description:** Invalid credentials or insufficient permissions
|
|
68
66
|
**Resolution:** Check your authentication credentials and user permissions
|
|
69
67
|
|
|
70
|
-
|
|
71
68
|
### VALIDATION_ERROR
|
|
72
69
|
|
|
73
70
|
**Message:** Parameter validation failed
|
|
74
71
|
**Description:** One or more required parameters are missing or invalid
|
|
75
72
|
**Resolution:** Review the required parameters and their formats
|
|
76
73
|
|
|
77
|
-
|
|
78
74
|
### NOT_FOUND
|
|
79
75
|
|
|
80
76
|
**Message:** Resource not found
|
|
81
77
|
**Description:** The requested resource does not exist
|
|
82
78
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
83
79
|
|
|
84
|
-
|
|
85
80
|
### PERMISSION_DENIED
|
|
86
81
|
|
|
87
82
|
**Message:** Insufficient permissions
|
|
88
83
|
**Description:** The user does not have permission to perform this action
|
|
89
84
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
90
85
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
86
|
---
|
|
95
87
|
|
|
96
88
|
*Generated automatically from tool definitions - Do not edit manually*
|