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
|
@@ -15,11 +15,13 @@ Retrieves the general settings for a WordPress site.
|
|
|
15
15
|
Simple example of using wp_get_site_settings
|
|
16
16
|
|
|
17
17
|
**Command:**
|
|
18
|
+
|
|
18
19
|
```bash
|
|
19
20
|
wp_get_site_settings
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
**Response:**
|
|
24
|
+
|
|
23
25
|
```json
|
|
24
26
|
{
|
|
25
27
|
"success": true,
|
|
@@ -34,6 +36,7 @@ wp_get_site_settings
|
|
|
34
36
|
```
|
|
35
37
|
|
|
36
38
|
**Error Example (Authentication failure):**
|
|
39
|
+
|
|
37
40
|
```json
|
|
38
41
|
{
|
|
39
42
|
"error": "Authentication failed",
|
|
@@ -41,9 +44,6 @@ wp_get_site_settings
|
|
|
41
44
|
}
|
|
42
45
|
```
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
47
|
## Required Permissions
|
|
48
48
|
|
|
49
49
|
This tool requires the following WordPress user capabilities:
|
|
@@ -52,7 +52,6 @@ This tool requires the following WordPress user capabilities:
|
|
|
52
52
|
|
|
53
53
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
## Response Format
|
|
57
56
|
|
|
58
57
|
**Return Type:** `site`
|
|
@@ -79,30 +78,24 @@ This tool requires the following WordPress user capabilities:
|
|
|
79
78
|
**Description:** Invalid credentials or insufficient permissions
|
|
80
79
|
**Resolution:** Check your authentication credentials and user permissions
|
|
81
80
|
|
|
82
|
-
|
|
83
81
|
### VALIDATION_ERROR
|
|
84
82
|
|
|
85
83
|
**Message:** Parameter validation failed
|
|
86
84
|
**Description:** One or more required parameters are missing or invalid
|
|
87
85
|
**Resolution:** Review the required parameters and their formats
|
|
88
86
|
|
|
89
|
-
|
|
90
87
|
### NOT_FOUND
|
|
91
88
|
|
|
92
89
|
**Message:** Resource not found
|
|
93
90
|
**Description:** The requested resource does not exist
|
|
94
91
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
95
92
|
|
|
96
|
-
|
|
97
93
|
### PERMISSION_DENIED
|
|
98
94
|
|
|
99
95
|
**Message:** Insufficient permissions
|
|
100
96
|
**Description:** The user does not have permission to perform this action
|
|
101
97
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
102
98
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
99
|
---
|
|
107
100
|
|
|
108
101
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Retrieves a single tag by its ID.
|
|
|
17
17
|
Simple example of using wp_get_tag
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_tag --id="123"
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -36,6 +38,7 @@ wp_get_tag --id="123"
|
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
**Error Example (Authentication failure):**
|
|
41
|
+
|
|
39
42
|
```json
|
|
40
43
|
{
|
|
41
44
|
"error": "Authentication failed",
|
|
@@ -43,11 +46,6 @@ wp_get_tag --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
49
|
## Response Format
|
|
52
50
|
|
|
53
51
|
**Return Type:** `taxonomy`
|
|
@@ -74,30 +72,24 @@ wp_get_tag --id="123"
|
|
|
74
72
|
**Description:** Invalid credentials or insufficient permissions
|
|
75
73
|
**Resolution:** Check your authentication credentials and user permissions
|
|
76
74
|
|
|
77
|
-
|
|
78
75
|
### VALIDATION_ERROR
|
|
79
76
|
|
|
80
77
|
**Message:** Parameter validation failed
|
|
81
78
|
**Description:** One or more required parameters are missing or invalid
|
|
82
79
|
**Resolution:** Review the required parameters and their formats
|
|
83
80
|
|
|
84
|
-
|
|
85
81
|
### NOT_FOUND
|
|
86
82
|
|
|
87
83
|
**Message:** Resource not found
|
|
88
84
|
**Description:** The requested resource does not exist
|
|
89
85
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
86
|
|
|
91
|
-
|
|
92
87
|
### PERMISSION_DENIED
|
|
93
88
|
|
|
94
89
|
**Message:** Insufficient permissions
|
|
95
90
|
**Description:** The user does not have permission to perform this action
|
|
96
91
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
92
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
93
|
---
|
|
102
94
|
|
|
103
95
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Retrieves a single user by their ID.
|
|
|
17
17
|
Simple example of using wp_get_user
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_user --id="123"
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -36,6 +38,7 @@ wp_get_user --id="123"
|
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
**Error Example (Authentication failure):**
|
|
41
|
+
|
|
39
42
|
```json
|
|
40
43
|
{
|
|
41
44
|
"error": "Authentication failed",
|
|
@@ -43,11 +46,6 @@ wp_get_user --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
49
|
## Response Format
|
|
52
50
|
|
|
53
51
|
**Return Type:** `user`
|
|
@@ -74,30 +72,24 @@ wp_get_user --id="123"
|
|
|
74
72
|
**Description:** Invalid credentials or insufficient permissions
|
|
75
73
|
**Resolution:** Check your authentication credentials and user permissions
|
|
76
74
|
|
|
77
|
-
|
|
78
75
|
### VALIDATION_ERROR
|
|
79
76
|
|
|
80
77
|
**Message:** Parameter validation failed
|
|
81
78
|
**Description:** One or more required parameters are missing or invalid
|
|
82
79
|
**Resolution:** Review the required parameters and their formats
|
|
83
80
|
|
|
84
|
-
|
|
85
81
|
### NOT_FOUND
|
|
86
82
|
|
|
87
83
|
**Message:** Resource not found
|
|
88
84
|
**Description:** The requested resource does not exist
|
|
89
85
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
86
|
|
|
91
|
-
|
|
92
87
|
### PERMISSION_DENIED
|
|
93
88
|
|
|
94
89
|
**Message:** Insufficient permissions
|
|
95
90
|
**Description:** The user does not have permission to perform this action
|
|
96
91
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
92
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
93
|
---
|
|
102
94
|
|
|
103
95
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Lists categories from a WordPress site.
|
|
|
18
18
|
Simple example of using wp_list_categories
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_list_categories
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -44,6 +46,7 @@ wp_list_categories
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
**Error Example (Authentication failure):**
|
|
49
|
+
|
|
47
50
|
```json
|
|
48
51
|
{
|
|
49
52
|
"error": "Authentication failed",
|
|
@@ -51,11 +54,6 @@ wp_list_categories
|
|
|
51
54
|
}
|
|
52
55
|
```
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
57
|
## Response Format
|
|
60
58
|
|
|
61
59
|
**Return Type:** `taxonomy[]`
|
|
@@ -82,30 +80,24 @@ wp_list_categories
|
|
|
82
80
|
**Description:** Invalid credentials or insufficient permissions
|
|
83
81
|
**Resolution:** Check your authentication credentials and user permissions
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
### VALIDATION_ERROR
|
|
87
84
|
|
|
88
85
|
**Message:** Parameter validation failed
|
|
89
86
|
**Description:** One or more required parameters are missing or invalid
|
|
90
87
|
**Resolution:** Review the required parameters and their formats
|
|
91
88
|
|
|
92
|
-
|
|
93
89
|
### NOT_FOUND
|
|
94
90
|
|
|
95
91
|
**Message:** Resource not found
|
|
96
92
|
**Description:** The requested resource does not exist
|
|
97
93
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
98
94
|
|
|
99
|
-
|
|
100
95
|
### PERMISSION_DENIED
|
|
101
96
|
|
|
102
97
|
**Message:** Insufficient permissions
|
|
103
98
|
**Description:** The user does not have permission to perform this action
|
|
104
99
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
101
|
---
|
|
110
102
|
|
|
111
103
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Lists comments from a WordPress site, with filters.
|
|
|
18
18
|
Simple example of using wp_list_comments
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_list_comments
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -44,6 +46,7 @@ wp_list_comments
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
**Error Example (Authentication failure):**
|
|
49
|
+
|
|
47
50
|
```json
|
|
48
51
|
{
|
|
49
52
|
"error": "Authentication failed",
|
|
@@ -51,11 +54,6 @@ wp_list_comments
|
|
|
51
54
|
}
|
|
52
55
|
```
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
57
|
## Response Format
|
|
60
58
|
|
|
61
59
|
**Return Type:** `comment[]`
|
|
@@ -82,30 +80,24 @@ wp_list_comments
|
|
|
82
80
|
**Description:** Invalid credentials or insufficient permissions
|
|
83
81
|
**Resolution:** Check your authentication credentials and user permissions
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
### VALIDATION_ERROR
|
|
87
84
|
|
|
88
85
|
**Message:** Parameter validation failed
|
|
89
86
|
**Description:** One or more required parameters are missing or invalid
|
|
90
87
|
**Resolution:** Review the required parameters and their formats
|
|
91
88
|
|
|
92
|
-
|
|
93
89
|
### NOT_FOUND
|
|
94
90
|
|
|
95
91
|
**Message:** Resource not found
|
|
96
92
|
**Description:** The requested resource does not exist
|
|
97
93
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
98
94
|
|
|
99
|
-
|
|
100
95
|
### PERMISSION_DENIED
|
|
101
96
|
|
|
102
97
|
**Message:** Insufficient permissions
|
|
103
98
|
**Description:** The user does not have permission to perform this action
|
|
104
99
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
101
|
---
|
|
110
102
|
|
|
111
103
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,11 +19,13 @@ Lists media items from a WordPress site, with filters.
|
|
|
19
19
|
Simple example of using wp_list_media
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_list_media
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -45,6 +47,7 @@ wp_list_media
|
|
|
45
47
|
```
|
|
46
48
|
|
|
47
49
|
**Error Example (Authentication failure):**
|
|
50
|
+
|
|
48
51
|
```json
|
|
49
52
|
{
|
|
50
53
|
"error": "Authentication failed",
|
|
@@ -52,17 +55,18 @@ wp_list_media
|
|
|
52
55
|
}
|
|
53
56
|
```
|
|
54
57
|
|
|
55
|
-
|
|
56
58
|
### Advanced media Configuration
|
|
57
59
|
|
|
58
60
|
Comprehensive example using all available parameters
|
|
59
61
|
|
|
60
62
|
**Command:**
|
|
63
|
+
|
|
61
64
|
```bash
|
|
62
65
|
wp_list_media --per_page="10" --search="wordpress" --media_type="example_value"
|
|
63
66
|
```
|
|
64
67
|
|
|
65
68
|
**Response:**
|
|
69
|
+
|
|
66
70
|
```json
|
|
67
71
|
{
|
|
68
72
|
"success": true,
|
|
@@ -83,13 +87,6 @@ wp_list_media --per_page="10" --search="wordpress" --media_type="example_value"
|
|
|
83
87
|
}
|
|
84
88
|
```
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
90
|
## Response Format
|
|
94
91
|
|
|
95
92
|
**Return Type:** `media[]`
|
|
@@ -116,30 +113,24 @@ wp_list_media --per_page="10" --search="wordpress" --media_type="example_value"
|
|
|
116
113
|
**Description:** Invalid credentials or insufficient permissions
|
|
117
114
|
**Resolution:** Check your authentication credentials and user permissions
|
|
118
115
|
|
|
119
|
-
|
|
120
116
|
### VALIDATION_ERROR
|
|
121
117
|
|
|
122
118
|
**Message:** Parameter validation failed
|
|
123
119
|
**Description:** One or more required parameters are missing or invalid
|
|
124
120
|
**Resolution:** Review the required parameters and their formats
|
|
125
121
|
|
|
126
|
-
|
|
127
122
|
### NOT_FOUND
|
|
128
123
|
|
|
129
124
|
**Message:** Resource not found
|
|
130
125
|
**Description:** The requested resource does not exist
|
|
131
126
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
132
127
|
|
|
133
|
-
|
|
134
128
|
### PERMISSION_DENIED
|
|
135
129
|
|
|
136
130
|
**Message:** Insufficient permissions
|
|
137
131
|
**Description:** The user does not have permission to perform this action
|
|
138
132
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
139
133
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
134
|
---
|
|
144
135
|
|
|
145
136
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,11 +19,13 @@ Lists pages from a WordPress site, with filters.
|
|
|
19
19
|
Simple example of using wp_list_pages
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
wp_list_pages
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
**Response:**
|
|
28
|
+
|
|
27
29
|
```json
|
|
28
30
|
{
|
|
29
31
|
"success": true,
|
|
@@ -45,6 +47,7 @@ wp_list_pages
|
|
|
45
47
|
```
|
|
46
48
|
|
|
47
49
|
**Error Example (Authentication failure):**
|
|
50
|
+
|
|
48
51
|
```json
|
|
49
52
|
{
|
|
50
53
|
"error": "Authentication failed",
|
|
@@ -52,17 +55,18 @@ wp_list_pages
|
|
|
52
55
|
}
|
|
53
56
|
```
|
|
54
57
|
|
|
55
|
-
|
|
56
58
|
### Advanced page Configuration
|
|
57
59
|
|
|
58
60
|
Comprehensive example using all available parameters
|
|
59
61
|
|
|
60
62
|
**Command:**
|
|
63
|
+
|
|
61
64
|
```bash
|
|
62
65
|
wp_list_pages --per_page="10" --search="wordpress" --status="publish"
|
|
63
66
|
```
|
|
64
67
|
|
|
65
68
|
**Response:**
|
|
69
|
+
|
|
66
70
|
```json
|
|
67
71
|
{
|
|
68
72
|
"success": true,
|
|
@@ -83,13 +87,6 @@ wp_list_pages --per_page="10" --search="wordpress" --status="publish"
|
|
|
83
87
|
}
|
|
84
88
|
```
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
90
|
## Response Format
|
|
94
91
|
|
|
95
92
|
**Return Type:** `page[]`
|
|
@@ -116,30 +113,24 @@ wp_list_pages --per_page="10" --search="wordpress" --status="publish"
|
|
|
116
113
|
**Description:** Invalid credentials or insufficient permissions
|
|
117
114
|
**Resolution:** Check your authentication credentials and user permissions
|
|
118
115
|
|
|
119
|
-
|
|
120
116
|
### VALIDATION_ERROR
|
|
121
117
|
|
|
122
118
|
**Message:** Parameter validation failed
|
|
123
119
|
**Description:** One or more required parameters are missing or invalid
|
|
124
120
|
**Resolution:** Review the required parameters and their formats
|
|
125
121
|
|
|
126
|
-
|
|
127
122
|
### NOT_FOUND
|
|
128
123
|
|
|
129
124
|
**Message:** Resource not found
|
|
130
125
|
**Description:** The requested resource does not exist
|
|
131
126
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
132
127
|
|
|
133
|
-
|
|
134
128
|
### PERMISSION_DENIED
|
|
135
129
|
|
|
136
130
|
**Message:** Insufficient permissions
|
|
137
131
|
**Description:** The user does not have permission to perform this action
|
|
138
132
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
139
133
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
134
|
---
|
|
144
135
|
|
|
145
136
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -21,11 +21,13 @@ Lists posts from a WordPress site, with filters.
|
|
|
21
21
|
Simple example of using wp_list_posts
|
|
22
22
|
|
|
23
23
|
**Command:**
|
|
24
|
+
|
|
24
25
|
```bash
|
|
25
26
|
wp_list_posts
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
**Response:**
|
|
30
|
+
|
|
29
31
|
```json
|
|
30
32
|
{
|
|
31
33
|
"success": true,
|
|
@@ -47,6 +49,7 @@ wp_list_posts
|
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
**Error Example (Authentication failure):**
|
|
52
|
+
|
|
50
53
|
```json
|
|
51
54
|
{
|
|
52
55
|
"error": "Authentication failed",
|
|
@@ -54,17 +57,18 @@ wp_list_posts
|
|
|
54
57
|
}
|
|
55
58
|
```
|
|
56
59
|
|
|
57
|
-
|
|
58
60
|
### Advanced post Configuration
|
|
59
61
|
|
|
60
62
|
Comprehensive example using all available parameters
|
|
61
63
|
|
|
62
64
|
**Command:**
|
|
65
|
+
|
|
63
66
|
```bash
|
|
64
67
|
wp_list_posts --per_page="10" --search="wordpress" --status="publish" --categories="example_value" --tags="example_value"
|
|
65
68
|
```
|
|
66
69
|
|
|
67
70
|
**Response:**
|
|
71
|
+
|
|
68
72
|
```json
|
|
69
73
|
{
|
|
70
74
|
"success": true,
|
|
@@ -85,9 +89,6 @@ wp_list_posts --per_page="10" --search="wordpress" --status="publish" --categori
|
|
|
85
89
|
}
|
|
86
90
|
```
|
|
87
91
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
92
|
## WordPress REST API Mapping
|
|
92
93
|
|
|
93
94
|
**Endpoint:** `/wp-json/wp/v2/posts`
|
|
@@ -95,12 +96,10 @@ wp_list_posts --per_page="10" --search="wordpress" --status="publish" --categori
|
|
|
95
96
|
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
|
|
96
97
|
|
|
97
98
|
### WordPress Documentation
|
|
99
|
+
|
|
98
100
|
- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
|
|
99
101
|
- [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
|
|
100
102
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
103
|
## Response Format
|
|
105
104
|
|
|
106
105
|
**Return Type:** `post[]`
|
|
@@ -127,30 +126,24 @@ This tool directly interfaces with the WordPress REST API endpoint above. The re
|
|
|
127
126
|
**Description:** Invalid credentials or insufficient permissions
|
|
128
127
|
**Resolution:** Check your authentication credentials and user permissions
|
|
129
128
|
|
|
130
|
-
|
|
131
129
|
### VALIDATION_ERROR
|
|
132
130
|
|
|
133
131
|
**Message:** Parameter validation failed
|
|
134
132
|
**Description:** One or more required parameters are missing or invalid
|
|
135
133
|
**Resolution:** Review the required parameters and their formats
|
|
136
134
|
|
|
137
|
-
|
|
138
135
|
### NOT_FOUND
|
|
139
136
|
|
|
140
137
|
**Message:** Resource not found
|
|
141
138
|
**Description:** The requested resource does not exist
|
|
142
139
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
143
140
|
|
|
144
|
-
|
|
145
141
|
### PERMISSION_DENIED
|
|
146
142
|
|
|
147
143
|
**Message:** Insufficient permissions
|
|
148
144
|
**Description:** The user does not have permission to perform this action
|
|
149
145
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
150
146
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
147
|
---
|
|
155
148
|
|
|
156
149
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,11 +17,13 @@ Lists tags from a WordPress site.
|
|
|
17
17
|
Simple example of using wp_list_tags
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_list_tags
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
**Response:**
|
|
26
|
+
|
|
25
27
|
```json
|
|
26
28
|
{
|
|
27
29
|
"success": true,
|
|
@@ -43,6 +45,7 @@ wp_list_tags
|
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
**Error Example (Authentication failure):**
|
|
48
|
+
|
|
46
49
|
```json
|
|
47
50
|
{
|
|
48
51
|
"error": "Authentication failed",
|
|
@@ -50,11 +53,6 @@ wp_list_tags
|
|
|
50
53
|
}
|
|
51
54
|
```
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
56
|
## Response Format
|
|
59
57
|
|
|
60
58
|
**Return Type:** `taxonomy[]`
|
|
@@ -81,30 +79,24 @@ wp_list_tags
|
|
|
81
79
|
**Description:** Invalid credentials or insufficient permissions
|
|
82
80
|
**Resolution:** Check your authentication credentials and user permissions
|
|
83
81
|
|
|
84
|
-
|
|
85
82
|
### VALIDATION_ERROR
|
|
86
83
|
|
|
87
84
|
**Message:** Parameter validation failed
|
|
88
85
|
**Description:** One or more required parameters are missing or invalid
|
|
89
86
|
**Resolution:** Review the required parameters and their formats
|
|
90
87
|
|
|
91
|
-
|
|
92
88
|
### NOT_FOUND
|
|
93
89
|
|
|
94
90
|
**Message:** Resource not found
|
|
95
91
|
**Description:** The requested resource does not exist
|
|
96
92
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
97
93
|
|
|
98
|
-
|
|
99
94
|
### PERMISSION_DENIED
|
|
100
95
|
|
|
101
96
|
**Message:** Insufficient permissions
|
|
102
97
|
**Description:** The user does not have permission to perform this action
|
|
103
98
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
100
|
---
|
|
109
101
|
|
|
110
102
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,11 +18,13 @@ Lists users from a WordPress site, with filters.
|
|
|
18
18
|
Simple example of using wp_list_users
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
+
|
|
21
22
|
```bash
|
|
22
23
|
wp_list_users
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
**Response:**
|
|
27
|
+
|
|
26
28
|
```json
|
|
27
29
|
{
|
|
28
30
|
"success": true,
|
|
@@ -44,6 +46,7 @@ wp_list_users
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
**Error Example (Authentication failure):**
|
|
49
|
+
|
|
47
50
|
```json
|
|
48
51
|
{
|
|
49
52
|
"error": "Authentication failed",
|
|
@@ -51,11 +54,6 @@ wp_list_users
|
|
|
51
54
|
}
|
|
52
55
|
```
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
57
|
## Response Format
|
|
60
58
|
|
|
61
59
|
**Return Type:** `user[]`
|
|
@@ -82,30 +80,24 @@ wp_list_users
|
|
|
82
80
|
**Description:** Invalid credentials or insufficient permissions
|
|
83
81
|
**Resolution:** Check your authentication credentials and user permissions
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
### VALIDATION_ERROR
|
|
87
84
|
|
|
88
85
|
**Message:** Parameter validation failed
|
|
89
86
|
**Description:** One or more required parameters are missing or invalid
|
|
90
87
|
**Resolution:** Review the required parameters and their formats
|
|
91
88
|
|
|
92
|
-
|
|
93
89
|
### NOT_FOUND
|
|
94
90
|
|
|
95
91
|
**Message:** Resource not found
|
|
96
92
|
**Description:** The requested resource does not exist
|
|
97
93
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
98
94
|
|
|
99
|
-
|
|
100
95
|
### PERMISSION_DENIED
|
|
101
96
|
|
|
102
97
|
**Message:** Insufficient permissions
|
|
103
98
|
**Description:** The user does not have permission to perform this action
|
|
104
99
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
101
|
---
|
|
110
102
|
|
|
111
103
|
*Generated automatically from tool definitions - Do not edit manually*
|