mcp-wordpress 1.3.0 → 1.4.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 +149 -789
- package/dist/mcp-wordpress-1.4.0.tgz +0 -0
- package/docs/DOCKER.md +8 -1
- package/docs/api/README.md +82 -75
- package/docs/api/categories/auth.md +2 -0
- package/docs/api/categories/cache.md +2 -0
- package/docs/api/categories/comment.md +2 -0
- package/docs/api/categories/media.md +2 -0
- package/docs/api/categories/page.md +2 -0
- package/docs/api/categories/performance.md +2 -0
- package/docs/api/categories/post.md +2 -0
- package/docs/api/categories/site.md +2 -0
- package/docs/api/categories/taxonomy.md +2 -0
- package/docs/api/categories/user.md +2 -0
- package/docs/api/tools/wp_approve_comment.md +3 -11
- 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 +628 -0
- package/docs/developer/ARCHITECTURE.md +374 -0
- package/docs/developer/BUILD_SYSTEM.md +465 -0
- package/docs/developer/CONTRIBUTING.md +463 -0
- package/docs/developer/DEVELOPMENT_SETUP.md +463 -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 +219 -0
- package/docs/developer/REFACTORING.md +15 -10
- package/docs/developer/RELEASE_PROCESS.md +523 -0
- package/docs/developer/TESTING.md +730 -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_NPM_DTX_SETUP.md +217 -0
- package/docs/user-guides/DOCKER_SETUP.md +3 -3
- package/docs/user-guides/DTX_SETUP.md +5 -5
- package/docs/user-guides/NPX_SETUP.md +2 -2
- package/package.json +2 -2
- package/dist/mcp-wordpress-1.3.0.tgz +0 -0
|
@@ -17,11 +17,13 @@ Get detailed cache configuration and status information.
|
|
|
17
17
|
Simple example of using wp_cache_info
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_cache_info
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -31,6 +33,7 @@ wp_cache_info
|
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
**Error Example (Authentication failure):**
|
|
36
|
+
|
|
34
37
|
```json
|
|
35
38
|
{
|
|
36
39
|
"error": "Authentication failed",
|
|
@@ -38,17 +41,18 @@ wp_cache_info
|
|
|
38
41
|
}
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
|
|
42
44
|
### Multi-Site cache Usage
|
|
43
45
|
|
|
44
46
|
Using wp_cache_info with specific site targeting
|
|
45
47
|
|
|
46
48
|
**Command:**
|
|
49
|
+
|
|
47
50
|
```bash
|
|
48
51
|
wp_cache_info --site="site1"
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
**Response:**
|
|
55
|
+
|
|
52
56
|
```json
|
|
53
57
|
{
|
|
54
58
|
"success": true,
|
|
@@ -57,13 +61,6 @@ wp_cache_info --site="site1"
|
|
|
57
61
|
}
|
|
58
62
|
```
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
64
|
## Response Format
|
|
68
65
|
|
|
69
66
|
**Return Type:** `CacheStats`
|
|
@@ -90,30 +87,24 @@ wp_cache_info --site="site1"
|
|
|
90
87
|
**Description:** Invalid credentials or insufficient permissions
|
|
91
88
|
**Resolution:** Check your authentication credentials and user permissions
|
|
92
89
|
|
|
93
|
-
|
|
94
90
|
### VALIDATION_ERROR
|
|
95
91
|
|
|
96
92
|
**Message:** Parameter validation failed
|
|
97
93
|
**Description:** One or more required parameters are missing or invalid
|
|
98
94
|
**Resolution:** Review the required parameters and their formats
|
|
99
95
|
|
|
100
|
-
|
|
101
96
|
### NOT_FOUND
|
|
102
97
|
|
|
103
98
|
**Message:** Resource not found
|
|
104
99
|
**Description:** The requested resource does not exist
|
|
105
100
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
106
101
|
|
|
107
|
-
|
|
108
102
|
### PERMISSION_DENIED
|
|
109
103
|
|
|
110
104
|
**Message:** Insufficient permissions
|
|
111
105
|
**Description:** The user does not have permission to perform this action
|
|
112
106
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
113
107
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
108
|
---
|
|
118
109
|
|
|
119
110
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Get cache statistics for a WordPress site.
|
|
|
17
17
|
Simple example of using wp_cache_stats
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_cache_stats
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -31,6 +33,7 @@ wp_cache_stats
|
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
**Error Example (Authentication failure):**
|
|
36
|
+
|
|
34
37
|
```json
|
|
35
38
|
{
|
|
36
39
|
"error": "Authentication failed",
|
|
@@ -38,17 +41,18 @@ wp_cache_stats
|
|
|
38
41
|
}
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
|
|
42
44
|
### Multi-Site cache Usage
|
|
43
45
|
|
|
44
46
|
Using wp_cache_stats with specific site targeting
|
|
45
47
|
|
|
46
48
|
**Command:**
|
|
49
|
+
|
|
47
50
|
```bash
|
|
48
51
|
wp_cache_stats --site="site1"
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
**Response:**
|
|
55
|
+
|
|
52
56
|
```json
|
|
53
57
|
{
|
|
54
58
|
"success": true,
|
|
@@ -57,13 +61,6 @@ wp_cache_stats --site="site1"
|
|
|
57
61
|
}
|
|
58
62
|
```
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
64
|
## Response Format
|
|
68
65
|
|
|
69
66
|
**Return Type:** `CacheStats`
|
|
@@ -90,30 +87,24 @@ wp_cache_stats --site="site1"
|
|
|
90
87
|
**Description:** Invalid credentials or insufficient permissions
|
|
91
88
|
**Resolution:** Check your authentication credentials and user permissions
|
|
92
89
|
|
|
93
|
-
|
|
94
90
|
### VALIDATION_ERROR
|
|
95
91
|
|
|
96
92
|
**Message:** Parameter validation failed
|
|
97
93
|
**Description:** One or more required parameters are missing or invalid
|
|
98
94
|
**Resolution:** Review the required parameters and their formats
|
|
99
95
|
|
|
100
|
-
|
|
101
96
|
### NOT_FOUND
|
|
102
97
|
|
|
103
98
|
**Message:** Resource not found
|
|
104
99
|
**Description:** The requested resource does not exist
|
|
105
100
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
106
101
|
|
|
107
|
-
|
|
108
102
|
### PERMISSION_DENIED
|
|
109
103
|
|
|
110
104
|
**Message:** Insufficient permissions
|
|
111
105
|
**Description:** The user does not have permission to perform this action
|
|
112
106
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
113
107
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
108
|
---
|
|
118
109
|
|
|
119
110
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Pre-warm cache with essential WordPress data.
|
|
|
17
17
|
Simple example of using wp_cache_warm
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_cache_warm
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -31,6 +33,7 @@ wp_cache_warm
|
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
**Error Example (Authentication failure):**
|
|
36
|
+
|
|
34
37
|
```json
|
|
35
38
|
{
|
|
36
39
|
"error": "Authentication failed",
|
|
@@ -38,17 +41,18 @@ wp_cache_warm
|
|
|
38
41
|
}
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
|
|
42
44
|
### Multi-Site cache Usage
|
|
43
45
|
|
|
44
46
|
Using wp_cache_warm with specific site targeting
|
|
45
47
|
|
|
46
48
|
**Command:**
|
|
49
|
+
|
|
47
50
|
```bash
|
|
48
51
|
wp_cache_warm --site="site1"
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
**Response:**
|
|
55
|
+
|
|
52
56
|
```json
|
|
53
57
|
{
|
|
54
58
|
"success": true,
|
|
@@ -57,13 +61,6 @@ wp_cache_warm --site="site1"
|
|
|
57
61
|
}
|
|
58
62
|
```
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
64
|
## Response Format
|
|
68
65
|
|
|
69
66
|
**Return Type:** `CacheStats`
|
|
@@ -90,30 +87,24 @@ wp_cache_warm --site="site1"
|
|
|
90
87
|
**Description:** Invalid credentials or insufficient permissions
|
|
91
88
|
**Resolution:** Check your authentication credentials and user permissions
|
|
92
89
|
|
|
93
|
-
|
|
94
90
|
### VALIDATION_ERROR
|
|
95
91
|
|
|
96
92
|
**Message:** Parameter validation failed
|
|
97
93
|
**Description:** One or more required parameters are missing or invalid
|
|
98
94
|
**Resolution:** Review the required parameters and their formats
|
|
99
95
|
|
|
100
|
-
|
|
101
96
|
### NOT_FOUND
|
|
102
97
|
|
|
103
98
|
**Message:** Resource not found
|
|
104
99
|
**Description:** The requested resource does not exist
|
|
105
100
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
106
101
|
|
|
107
|
-
|
|
108
102
|
### PERMISSION_DENIED
|
|
109
103
|
|
|
110
104
|
**Message:** Insufficient permissions
|
|
111
105
|
**Description:** The user does not have permission to perform this action
|
|
112
106
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
113
107
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
108
|
---
|
|
118
109
|
|
|
119
110
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Creates a new application password for a user.
|
|
|
18
18
|
Simple example of using wp_create_application_password
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_create_application_password --user_id="example_value" --app_name="example_value"
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -35,6 +37,7 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
**Error Example (Authentication failure):**
|
|
40
|
+
|
|
38
41
|
```json
|
|
39
42
|
{
|
|
40
43
|
"error": "Authentication failed",
|
|
@@ -42,11 +45,6 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
48
|
## Response Format
|
|
51
49
|
|
|
52
50
|
**Return Type:** `site`
|
|
@@ -73,30 +71,24 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
73
71
|
**Description:** Invalid credentials or insufficient permissions
|
|
74
72
|
**Resolution:** Check your authentication credentials and user permissions
|
|
75
73
|
|
|
76
|
-
|
|
77
74
|
### VALIDATION_ERROR
|
|
78
75
|
|
|
79
76
|
**Message:** Parameter validation failed
|
|
80
77
|
**Description:** One or more required parameters are missing or invalid
|
|
81
78
|
**Resolution:** Review the required parameters and their formats
|
|
82
79
|
|
|
83
|
-
|
|
84
80
|
### NOT_FOUND
|
|
85
81
|
|
|
86
82
|
**Message:** Resource not found
|
|
87
83
|
**Description:** The requested resource does not exist
|
|
88
84
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
89
85
|
|
|
90
|
-
|
|
91
86
|
### PERMISSION_DENIED
|
|
92
87
|
|
|
93
88
|
**Message:** Insufficient permissions
|
|
94
89
|
**Description:** The user does not have permission to perform this action
|
|
95
90
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
96
91
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
92
|
---
|
|
101
93
|
|
|
102
94
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Creates a new category.
|
|
|
18
18
|
Simple example of using wp_create_category
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_create_category --name="example_value"
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -35,6 +37,7 @@ wp_create_category --name="example_value"
|
|
|
35
37
|
```
|
|
36
38
|
|
|
37
39
|
**Error Example (Authentication failure):**
|
|
40
|
+
|
|
38
41
|
```json
|
|
39
42
|
{
|
|
40
43
|
"error": "Authentication failed",
|
|
@@ -42,11 +45,6 @@ wp_create_category --name="example_value"
|
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
48
|
## Response Format
|
|
51
49
|
|
|
52
50
|
**Return Type:** `taxonomy`
|
|
@@ -73,30 +71,24 @@ wp_create_category --name="example_value"
|
|
|
73
71
|
**Description:** Invalid credentials or insufficient permissions
|
|
74
72
|
**Resolution:** Check your authentication credentials and user permissions
|
|
75
73
|
|
|
76
|
-
|
|
77
74
|
### VALIDATION_ERROR
|
|
78
75
|
|
|
79
76
|
**Message:** Parameter validation failed
|
|
80
77
|
**Description:** One or more required parameters are missing or invalid
|
|
81
78
|
**Resolution:** Review the required parameters and their formats
|
|
82
79
|
|
|
83
|
-
|
|
84
80
|
### NOT_FOUND
|
|
85
81
|
|
|
86
82
|
**Message:** Resource not found
|
|
87
83
|
**Description:** The requested resource does not exist
|
|
88
84
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
89
85
|
|
|
90
|
-
|
|
91
86
|
### PERMISSION_DENIED
|
|
92
87
|
|
|
93
88
|
**Message:** Insufficient permissions
|
|
94
89
|
**Description:** The user does not have permission to perform this action
|
|
95
90
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
96
91
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
92
|
---
|
|
101
93
|
|
|
102
94
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -20,11 +20,13 @@ Creates a new comment on a post.
|
|
|
20
20
|
Simple example of using wp_create_comment
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
+
|
|
23
24
|
```bash
|
|
24
25
|
wp_create_comment --post="example_value" --content="This is example content for the post."
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Response:**
|
|
29
|
+
|
|
28
30
|
```json
|
|
29
31
|
{
|
|
30
32
|
"success": true,
|
|
@@ -37,6 +39,7 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
**Error Example (Authentication failure):**
|
|
42
|
+
|
|
40
43
|
```json
|
|
41
44
|
{
|
|
42
45
|
"error": "Authentication failed",
|
|
@@ -44,17 +47,18 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
44
47
|
}
|
|
45
48
|
```
|
|
46
49
|
|
|
47
|
-
|
|
48
50
|
### Advanced comment Configuration
|
|
49
51
|
|
|
50
52
|
Comprehensive example using all available parameters
|
|
51
53
|
|
|
52
54
|
**Command:**
|
|
55
|
+
|
|
53
56
|
```bash
|
|
54
57
|
wp_create_comment --post="example_value" --content="This is example content for the post." --author_name="example_value" --author_email="example_value"
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
**Response:**
|
|
61
|
+
|
|
58
62
|
```json
|
|
59
63
|
{
|
|
60
64
|
"success": true,
|
|
@@ -66,13 +70,6 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
66
70
|
}
|
|
67
71
|
```
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
73
|
## Response Format
|
|
77
74
|
|
|
78
75
|
**Return Type:** `comment`
|
|
@@ -99,30 +96,24 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
99
96
|
**Description:** Invalid credentials or insufficient permissions
|
|
100
97
|
**Resolution:** Check your authentication credentials and user permissions
|
|
101
98
|
|
|
102
|
-
|
|
103
99
|
### VALIDATION_ERROR
|
|
104
100
|
|
|
105
101
|
**Message:** Parameter validation failed
|
|
106
102
|
**Description:** One or more required parameters are missing or invalid
|
|
107
103
|
**Resolution:** Review the required parameters and their formats
|
|
108
104
|
|
|
109
|
-
|
|
110
105
|
### NOT_FOUND
|
|
111
106
|
|
|
112
107
|
**Message:** Resource not found
|
|
113
108
|
**Description:** The requested resource does not exist
|
|
114
109
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
115
110
|
|
|
116
|
-
|
|
117
111
|
### PERMISSION_DENIED
|
|
118
112
|
|
|
119
113
|
**Message:** Insufficient permissions
|
|
120
114
|
**Description:** The user does not have permission to perform this action
|
|
121
115
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
122
116
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
117
|
---
|
|
127
118
|
|
|
128
119
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,11 +19,13 @@ Creates a new page.
|
|
|
19
19
|
Simple example of using wp_create_page
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_create_page --title="Example Post Title"
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -36,6 +38,7 @@ wp_create_page --title="Example Post Title"
|
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
**Error Example (Authentication failure):**
|
|
41
|
+
|
|
39
42
|
```json
|
|
40
43
|
{
|
|
41
44
|
"error": "Authentication failed",
|
|
@@ -43,17 +46,18 @@ wp_create_page --title="Example Post Title"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
### Advanced page Configuration
|
|
48
50
|
|
|
49
51
|
Comprehensive example using all available parameters
|
|
50
52
|
|
|
51
53
|
**Command:**
|
|
54
|
+
|
|
52
55
|
```bash
|
|
53
56
|
wp_create_page --title="Example Post Title" --content="This is example content for the post." --status="publish"
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
**Response:**
|
|
60
|
+
|
|
57
61
|
```json
|
|
58
62
|
{
|
|
59
63
|
"success": true,
|
|
@@ -65,11 +69,6 @@ wp_create_page --title="Example Post Title" --content="This is example content f
|
|
|
65
69
|
}
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
72
|
## Required Permissions
|
|
74
73
|
|
|
75
74
|
This tool requires the following WordPress user capabilities:
|
|
@@ -79,7 +78,6 @@ This tool requires the following WordPress user capabilities:
|
|
|
79
78
|
|
|
80
79
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
81
80
|
|
|
82
|
-
|
|
83
81
|
## Response Format
|
|
84
82
|
|
|
85
83
|
**Return Type:** `page`
|
|
@@ -106,30 +104,24 @@ This tool requires the following WordPress user capabilities:
|
|
|
106
104
|
**Description:** Invalid credentials or insufficient permissions
|
|
107
105
|
**Resolution:** Check your authentication credentials and user permissions
|
|
108
106
|
|
|
109
|
-
|
|
110
107
|
### VALIDATION_ERROR
|
|
111
108
|
|
|
112
109
|
**Message:** Parameter validation failed
|
|
113
110
|
**Description:** One or more required parameters are missing or invalid
|
|
114
111
|
**Resolution:** Review the required parameters and their formats
|
|
115
112
|
|
|
116
|
-
|
|
117
113
|
### NOT_FOUND
|
|
118
114
|
|
|
119
115
|
**Message:** Resource not found
|
|
120
116
|
**Description:** The requested resource does not exist
|
|
121
117
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
122
118
|
|
|
123
|
-
|
|
124
119
|
### PERMISSION_DENIED
|
|
125
120
|
|
|
126
121
|
**Message:** Insufficient permissions
|
|
127
122
|
**Description:** The user does not have permission to perform this action
|
|
128
123
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
129
124
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
125
|
---
|
|
134
126
|
|
|
135
127
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -22,11 +22,13 @@ Creates a new post.
|
|
|
22
22
|
Simple example of using wp_create_post
|
|
23
23
|
|
|
24
24
|
**Command:**
|
|
25
|
+
|
|
25
26
|
```bash
|
|
26
27
|
wp_create_post --title="Example Post Title"
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
**Response:**
|
|
31
|
+
|
|
30
32
|
```json
|
|
31
33
|
{
|
|
32
34
|
"success": true,
|
|
@@ -39,6 +41,7 @@ wp_create_post --title="Example Post Title"
|
|
|
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_create_post --title="Example Post Title"
|
|
|
46
49
|
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
|
-
|
|
50
52
|
### Advanced post Configuration
|
|
51
53
|
|
|
52
54
|
Comprehensive example using all available parameters
|
|
53
55
|
|
|
54
56
|
**Command:**
|
|
57
|
+
|
|
55
58
|
```bash
|
|
56
59
|
wp_create_post --title="Example Post Title" --content="This is example content for the post." --status="publish" --excerpt="example_value" --categories="example_value" --tags="example_value"
|
|
57
60
|
```
|
|
58
61
|
|
|
59
62
|
**Response:**
|
|
63
|
+
|
|
60
64
|
```json
|
|
61
65
|
{
|
|
62
66
|
"success": true,
|
|
@@ -68,9 +72,6 @@ wp_create_post --title="Example Post Title" --content="This is example content f
|
|
|
68
72
|
}
|
|
69
73
|
```
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
75
|
## WordPress REST API Mapping
|
|
75
76
|
|
|
76
77
|
**Endpoint:** `/wp-json/wp/v2/posts`
|
|
@@ -78,10 +79,10 @@ wp_create_post --title="Example Post Title" --content="This is example content f
|
|
|
78
79
|
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
|
|
79
80
|
|
|
80
81
|
### WordPress Documentation
|
|
82
|
+
|
|
81
83
|
- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
|
|
82
84
|
- [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
|
|
83
85
|
|
|
84
|
-
|
|
85
86
|
## Required Permissions
|
|
86
87
|
|
|
87
88
|
This tool requires the following WordPress user capabilities:
|
|
@@ -91,7 +92,6 @@ This tool requires the following WordPress user capabilities:
|
|
|
91
92
|
|
|
92
93
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
93
94
|
|
|
94
|
-
|
|
95
95
|
## Response Format
|
|
96
96
|
|
|
97
97
|
**Return Type:** `post`
|
|
@@ -118,30 +118,24 @@ This tool requires the following WordPress user capabilities:
|
|
|
118
118
|
**Description:** Invalid credentials or insufficient permissions
|
|
119
119
|
**Resolution:** Check your authentication credentials and user permissions
|
|
120
120
|
|
|
121
|
-
|
|
122
121
|
### VALIDATION_ERROR
|
|
123
122
|
|
|
124
123
|
**Message:** Parameter validation failed
|
|
125
124
|
**Description:** One or more required parameters are missing or invalid
|
|
126
125
|
**Resolution:** Review the required parameters and their formats
|
|
127
126
|
|
|
128
|
-
|
|
129
127
|
### NOT_FOUND
|
|
130
128
|
|
|
131
129
|
**Message:** Resource not found
|
|
132
130
|
**Description:** The requested resource does not exist
|
|
133
131
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
134
132
|
|
|
135
|
-
|
|
136
133
|
### PERMISSION_DENIED
|
|
137
134
|
|
|
138
135
|
**Message:** Insufficient permissions
|
|
139
136
|
**Description:** The user does not have permission to perform this action
|
|
140
137
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
141
138
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
139
|
---
|
|
146
140
|
|
|
147
141
|
*Generated automatically from tool definitions - Do not edit manually*
|