mcp-wordpress 1.3.1 → 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/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 +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_SETUP.md +2 -2
- package/docs/user-guides/DTX_SETUP.md +3 -3
- package/docs/user-guides/NPX_SETUP.md +2 -2
- package/package.json +2 -2
- package/dist/mcp-wordpress-1.3.1.tgz +0 -0
|
@@ -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*
|
|
@@ -18,11 +18,13 @@ Updates an existing category.
|
|
|
18
18
|
Simple example of using wp_update_category
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_update_category --id="123"
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -35,6 +37,7 @@ wp_update_category --id="123"
|
|
|
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_update_category --id="123"
|
|
|
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_update_category --id="123"
|
|
|
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*
|
|
@@ -19,11 +19,13 @@ Updates an existing comment.
|
|
|
19
19
|
Simple example of using wp_update_comment
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_update_comment --id="123"
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -36,6 +38,7 @@ wp_update_comment --id="123"
|
|
|
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_update_comment --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
### Advanced comment Configuration
|
|
48
50
|
|
|
49
51
|
Comprehensive example using all available parameters
|
|
50
52
|
|
|
51
53
|
**Command:**
|
|
54
|
+
|
|
52
55
|
```bash
|
|
53
56
|
wp_update_comment --id="123" --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,13 +69,6 @@ wp_update_comment --id="123" --content="This is example content for the post." -
|
|
|
65
69
|
}
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
72
|
## Response Format
|
|
76
73
|
|
|
77
74
|
**Return Type:** `comment`
|
|
@@ -98,30 +95,24 @@ wp_update_comment --id="123" --content="This is example content for the post." -
|
|
|
98
95
|
**Description:** Invalid credentials or insufficient permissions
|
|
99
96
|
**Resolution:** Check your authentication credentials and user permissions
|
|
100
97
|
|
|
101
|
-
|
|
102
98
|
### VALIDATION_ERROR
|
|
103
99
|
|
|
104
100
|
**Message:** Parameter validation failed
|
|
105
101
|
**Description:** One or more required parameters are missing or invalid
|
|
106
102
|
**Resolution:** Review the required parameters and their formats
|
|
107
103
|
|
|
108
|
-
|
|
109
104
|
### NOT_FOUND
|
|
110
105
|
|
|
111
106
|
**Message:** Resource not found
|
|
112
107
|
**Description:** The requested resource does not exist
|
|
113
108
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
114
109
|
|
|
115
|
-
|
|
116
110
|
### PERMISSION_DENIED
|
|
117
111
|
|
|
118
112
|
**Message:** Insufficient permissions
|
|
119
113
|
**Description:** The user does not have permission to perform this action
|
|
120
114
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
121
115
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
116
|
---
|
|
126
117
|
|
|
127
118
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -21,11 +21,13 @@ Updates the metadata of an existing media item.
|
|
|
21
21
|
Simple example of using wp_update_media
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
+
|
|
24
25
|
```bash
|
|
25
26
|
wp_update_media --id="123"
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
**Response:**
|
|
30
|
+
|
|
29
31
|
```json
|
|
30
32
|
{
|
|
31
33
|
"success": true,
|
|
@@ -38,6 +40,7 @@ wp_update_media --id="123"
|
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
**Error Example (Authentication failure):**
|
|
43
|
+
|
|
41
44
|
```json
|
|
42
45
|
{
|
|
43
46
|
"error": "Authentication failed",
|
|
@@ -45,17 +48,18 @@ wp_update_media --id="123"
|
|
|
45
48
|
}
|
|
46
49
|
```
|
|
47
50
|
|
|
48
|
-
|
|
49
51
|
### Advanced media Configuration
|
|
50
52
|
|
|
51
53
|
Comprehensive example using all available parameters
|
|
52
54
|
|
|
53
55
|
**Command:**
|
|
56
|
+
|
|
54
57
|
```bash
|
|
55
58
|
wp_update_media --id="123" --title="Example Post Title" --alt_text="example_value" --caption="example_value" --description="example_value"
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
**Response:**
|
|
62
|
+
|
|
59
63
|
```json
|
|
60
64
|
{
|
|
61
65
|
"success": true,
|
|
@@ -67,13 +71,6 @@ wp_update_media --id="123" --title="Example Post Title" --alt_text="example_valu
|
|
|
67
71
|
}
|
|
68
72
|
```
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
74
|
## Response Format
|
|
78
75
|
|
|
79
76
|
**Return Type:** `media`
|
|
@@ -100,30 +97,24 @@ wp_update_media --id="123" --title="Example Post Title" --alt_text="example_valu
|
|
|
100
97
|
**Description:** Invalid credentials or insufficient permissions
|
|
101
98
|
**Resolution:** Check your authentication credentials and user permissions
|
|
102
99
|
|
|
103
|
-
|
|
104
100
|
### VALIDATION_ERROR
|
|
105
101
|
|
|
106
102
|
**Message:** Parameter validation failed
|
|
107
103
|
**Description:** One or more required parameters are missing or invalid
|
|
108
104
|
**Resolution:** Review the required parameters and their formats
|
|
109
105
|
|
|
110
|
-
|
|
111
106
|
### NOT_FOUND
|
|
112
107
|
|
|
113
108
|
**Message:** Resource not found
|
|
114
109
|
**Description:** The requested resource does not exist
|
|
115
110
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
116
111
|
|
|
117
|
-
|
|
118
112
|
### PERMISSION_DENIED
|
|
119
113
|
|
|
120
114
|
**Message:** Insufficient permissions
|
|
121
115
|
**Description:** The user does not have permission to perform this action
|
|
122
116
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
123
117
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
118
|
---
|
|
128
119
|
|
|
129
120
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -20,11 +20,13 @@ Updates an existing page.
|
|
|
20
20
|
Simple example of using wp_update_page
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
+
|
|
23
24
|
```bash
|
|
24
25
|
wp_update_page --id="123"
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Response:**
|
|
29
|
+
|
|
28
30
|
```json
|
|
29
31
|
{
|
|
30
32
|
"success": true,
|
|
@@ -37,6 +39,7 @@ wp_update_page --id="123"
|
|
|
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_update_page --id="123"
|
|
|
44
47
|
}
|
|
45
48
|
```
|
|
46
49
|
|
|
47
|
-
|
|
48
50
|
### Advanced page Configuration
|
|
49
51
|
|
|
50
52
|
Comprehensive example using all available parameters
|
|
51
53
|
|
|
52
54
|
**Command:**
|
|
55
|
+
|
|
53
56
|
```bash
|
|
54
57
|
wp_update_page --id="123" --title="Example Post Title" --content="This is example content for the post." --status="publish"
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
**Response:**
|
|
61
|
+
|
|
58
62
|
```json
|
|
59
63
|
{
|
|
60
64
|
"success": true,
|
|
@@ -66,11 +70,6 @@ wp_update_page --id="123" --title="Example Post Title" --content="This is exampl
|
|
|
66
70
|
}
|
|
67
71
|
```
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
73
|
## Required Permissions
|
|
75
74
|
|
|
76
75
|
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*
|
|
@@ -20,11 +20,13 @@ Updates an existing post.
|
|
|
20
20
|
Simple example of using wp_update_post
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
+
|
|
23
24
|
```bash
|
|
24
25
|
wp_update_post --id="123"
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Response:**
|
|
29
|
+
|
|
28
30
|
```json
|
|
29
31
|
{
|
|
30
32
|
"success": true,
|
|
@@ -37,6 +39,7 @@ wp_update_post --id="123"
|
|
|
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_update_post --id="123"
|
|
|
44
47
|
}
|
|
45
48
|
```
|
|
46
49
|
|
|
47
|
-
|
|
48
50
|
### Advanced post Configuration
|
|
49
51
|
|
|
50
52
|
Comprehensive example using all available parameters
|
|
51
53
|
|
|
52
54
|
**Command:**
|
|
55
|
+
|
|
53
56
|
```bash
|
|
54
57
|
wp_update_post --id="123" --title="Example Post Title" --content="This is example content for the post." --status="publish"
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
**Response:**
|
|
61
|
+
|
|
58
62
|
```json
|
|
59
63
|
{
|
|
60
64
|
"success": true,
|
|
@@ -66,9 +70,6 @@ wp_update_post --id="123" --title="Example Post Title" --content="This is exampl
|
|
|
66
70
|
}
|
|
67
71
|
```
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
73
|
## WordPress REST API Mapping
|
|
73
74
|
|
|
74
75
|
**Endpoint:** `/wp-json/wp/v2/posts/{id}`
|
|
@@ -76,10 +77,10 @@ wp_update_post --id="123" --title="Example Post Title" --content="This is exampl
|
|
|
76
77
|
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
|
|
77
78
|
|
|
78
79
|
### WordPress Documentation
|
|
80
|
+
|
|
79
81
|
- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
|
|
80
82
|
- [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
|
|
81
83
|
|
|
82
|
-
|
|
83
84
|
## Required Permissions
|
|
84
85
|
|
|
85
86
|
This tool requires the following WordPress user capabilities:
|
|
@@ -88,7 +89,6 @@ This tool requires the following WordPress user capabilities:
|
|
|
88
89
|
|
|
89
90
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
90
91
|
|
|
91
|
-
|
|
92
92
|
## Response Format
|
|
93
93
|
|
|
94
94
|
**Return Type:** `post`
|
|
@@ -115,30 +115,24 @@ This tool requires the following WordPress user capabilities:
|
|
|
115
115
|
**Description:** Invalid credentials or insufficient permissions
|
|
116
116
|
**Resolution:** Check your authentication credentials and user permissions
|
|
117
117
|
|
|
118
|
-
|
|
119
118
|
### VALIDATION_ERROR
|
|
120
119
|
|
|
121
120
|
**Message:** Parameter validation failed
|
|
122
121
|
**Description:** One or more required parameters are missing or invalid
|
|
123
122
|
**Resolution:** Review the required parameters and their formats
|
|
124
123
|
|
|
125
|
-
|
|
126
124
|
### NOT_FOUND
|
|
127
125
|
|
|
128
126
|
**Message:** Resource not found
|
|
129
127
|
**Description:** The requested resource does not exist
|
|
130
128
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
131
129
|
|
|
132
|
-
|
|
133
130
|
### PERMISSION_DENIED
|
|
134
131
|
|
|
135
132
|
**Message:** Insufficient permissions
|
|
136
133
|
**Description:** The user does not have permission to perform this action
|
|
137
134
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
138
135
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
136
|
---
|
|
143
137
|
|
|
144
138
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,11 +19,13 @@ Updates one or more general settings for a WordPress site.
|
|
|
19
19
|
Simple example of using wp_update_site_settings
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_update_site_settings
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -36,6 +38,7 @@ wp_update_site_settings
|
|
|
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_update_site_settings
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
### Advanced site Configuration
|
|
48
50
|
|
|
49
51
|
Comprehensive example using all available parameters
|
|
50
52
|
|
|
51
53
|
**Command:**
|
|
54
|
+
|
|
52
55
|
```bash
|
|
53
56
|
wp_update_site_settings --title="Example Post Title" --description="example_value" --timezone="example_value"
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
**Response:**
|
|
60
|
+
|
|
57
61
|
```json
|
|
58
62
|
{
|
|
59
63
|
"success": true,
|
|
@@ -65,13 +69,6 @@ wp_update_site_settings --title="Example Post Title" --description="example_valu
|
|
|
65
69
|
}
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
72
|
## Response Format
|
|
76
73
|
|
|
77
74
|
**Return Type:** `site`
|
|
@@ -98,30 +95,24 @@ wp_update_site_settings --title="Example Post Title" --description="example_valu
|
|
|
98
95
|
**Description:** Invalid credentials or insufficient permissions
|
|
99
96
|
**Resolution:** Check your authentication credentials and user permissions
|
|
100
97
|
|
|
101
|
-
|
|
102
98
|
### VALIDATION_ERROR
|
|
103
99
|
|
|
104
100
|
**Message:** Parameter validation failed
|
|
105
101
|
**Description:** One or more required parameters are missing or invalid
|
|
106
102
|
**Resolution:** Review the required parameters and their formats
|
|
107
103
|
|
|
108
|
-
|
|
109
104
|
### NOT_FOUND
|
|
110
105
|
|
|
111
106
|
**Message:** Resource not found
|
|
112
107
|
**Description:** The requested resource does not exist
|
|
113
108
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
114
109
|
|
|
115
|
-
|
|
116
110
|
### PERMISSION_DENIED
|
|
117
111
|
|
|
118
112
|
**Message:** Insufficient permissions
|
|
119
113
|
**Description:** The user does not have permission to perform this action
|
|
120
114
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
121
115
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
116
|
---
|
|
126
117
|
|
|
127
118
|
*Generated automatically from tool definitions - Do not edit manually*
|