mcp-wordpress 1.5.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +332 -61
- package/dist/cache/CacheInvalidation.d.ts.map +1 -1
- package/dist/cache/CacheInvalidation.js +4 -4
- package/dist/cache/CacheInvalidation.js.map +1 -1
- package/dist/client/MockWordPressClient.d.ts +55 -0
- package/dist/client/MockWordPressClient.d.ts.map +1 -0
- package/dist/client/MockWordPressClient.js +369 -0
- package/dist/client/MockWordPressClient.js.map +1 -0
- package/dist/client/api.d.ts +1 -0
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +26 -60
- package/dist/client/api.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.d.ts.map +1 -1
- package/dist/client/managers/AuthenticationManager.js +4 -3
- package/dist/client/managers/AuthenticationManager.js.map +1 -1
- package/dist/config/ConfigurationSchema.d.ts +3 -3
- package/dist/config/ConfigurationSchema.d.ts.map +1 -1
- package/dist/config/ConfigurationSchema.js +7 -24
- package/dist/config/ConfigurationSchema.js.map +1 -1
- package/dist/config/ServerConfiguration.d.ts +8 -0
- package/dist/config/ServerConfiguration.d.ts.map +1 -1
- package/dist/config/ServerConfiguration.js +80 -31
- package/dist/config/ServerConfiguration.js.map +1 -1
- package/dist/docs/DocumentationGenerator.d.ts.map +1 -1
- package/dist/docs/DocumentationGenerator.js +5 -7
- package/dist/docs/DocumentationGenerator.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/dist/security/InputValidator.d.ts.map +1 -1
- package/dist/security/InputValidator.js +3 -11
- package/dist/security/InputValidator.js.map +1 -1
- package/dist/server/ToolRegistry.d.ts +4 -0
- package/dist/server/ToolRegistry.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js +71 -8
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/auth.d.ts.map +1 -1
- package/dist/tools/auth.js +8 -3
- package/dist/tools/auth.js.map +1 -1
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +287 -20
- package/dist/tools/posts.js.map +1 -1
- package/dist/tools/site.d.ts.map +1 -1
- package/dist/tools/site.js +47 -9
- package/dist/tools/site.js.map +1 -1
- package/dist/tools/users.d.ts.map +1 -1
- package/dist/tools/users.js +113 -10
- package/dist/tools/users.js.map +1 -1
- package/dist/utils/enhancedError.d.ts +61 -0
- package/dist/utils/enhancedError.d.ts.map +1 -0
- package/dist/utils/enhancedError.js +221 -0
- package/dist/utils/enhancedError.js.map +1 -0
- package/dist/utils/streaming.d.ts +104 -0
- package/dist/utils/streaming.d.ts.map +1 -0
- package/dist/utils/streaming.js +312 -0
- package/dist/utils/streaming.js.map +1 -0
- package/dist/utils/validation.d.ts +19 -3
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +174 -24
- package/dist/utils/validation.js.map +1 -1
- package/docs/ARCHITECTURE.md +850 -0
- package/docs/CACHING.md +20 -17
- package/docs/CONFIGURATION.md +660 -0
- package/docs/DOCKER.md +61 -60
- package/docs/EVALUATION.md +397 -0
- package/docs/INSTALLATION.md +423 -0
- package/docs/PERFORMANCE_MONITORING.md +17 -15
- package/docs/SECURITY.md +621 -0
- package/docs/SECURITY_TESTING.md +22 -26
- package/docs/TEST_SITE_SETUP.md +136 -0
- package/docs/TROUBLESHOOTING.md +578 -0
- package/docs/api/README.md +76 -91
- package/docs/api/categories/auth.md +0 -2
- package/docs/api/categories/cache.md +0 -2
- package/docs/api/categories/comment.md +0 -2
- package/docs/api/categories/media.md +0 -2
- package/docs/api/categories/page.md +0 -2
- package/docs/api/categories/performance.md +0 -2
- package/docs/api/categories/post.md +0 -2
- package/docs/api/categories/site.md +0 -2
- package/docs/api/categories/taxonomy.md +0 -2
- package/docs/api/categories/user.md +0 -2
- package/docs/api/summary.json +1 -1
- package/docs/api/tools/wp_approve_comment.md +11 -3
- package/docs/api/tools/wp_cache_clear.md +14 -5
- package/docs/api/tools/wp_cache_info.md +14 -5
- package/docs/api/tools/wp_cache_stats.md +14 -5
- package/docs/api/tools/wp_cache_warm.md +14 -5
- package/docs/api/tools/wp_create_application_password.md +11 -3
- package/docs/api/tools/wp_create_category.md +11 -3
- package/docs/api/tools/wp_create_comment.md +14 -5
- package/docs/api/tools/wp_create_page.md +13 -5
- package/docs/api/tools/wp_create_post.md +14 -7
- package/docs/api/tools/wp_create_tag.md +11 -3
- package/docs/api/tools/wp_create_user.md +13 -5
- package/docs/api/tools/wp_delete_application_password.md +11 -3
- package/docs/api/tools/wp_delete_category.md +11 -3
- package/docs/api/tools/wp_delete_comment.md +11 -3
- package/docs/api/tools/wp_delete_media.md +10 -3
- package/docs/api/tools/wp_delete_page.md +10 -3
- package/docs/api/tools/wp_delete_post.md +11 -5
- package/docs/api/tools/wp_delete_tag.md +11 -3
- package/docs/api/tools/wp_delete_user.md +10 -3
- package/docs/api/tools/wp_get_application_passwords.md +11 -3
- package/docs/api/tools/wp_get_auth_status.md +11 -3
- package/docs/api/tools/wp_get_category.md +11 -3
- package/docs/api/tools/wp_get_comment.md +11 -3
- package/docs/api/tools/wp_get_current_user.md +11 -3
- package/docs/api/tools/wp_get_media.md +11 -3
- package/docs/api/tools/wp_get_page.md +11 -3
- package/docs/api/tools/wp_get_page_revisions.md +11 -3
- package/docs/api/tools/wp_get_post.md +12 -5
- package/docs/api/tools/wp_get_post_revisions.md +11 -3
- package/docs/api/tools/wp_get_site_settings.md +10 -3
- package/docs/api/tools/wp_get_tag.md +11 -3
- package/docs/api/tools/wp_get_user.md +11 -3
- package/docs/api/tools/wp_list_categories.md +11 -3
- package/docs/api/tools/wp_list_comments.md +11 -3
- package/docs/api/tools/wp_list_media.md +14 -5
- package/docs/api/tools/wp_list_pages.md +14 -5
- package/docs/api/tools/wp_list_posts.md +15 -7
- package/docs/api/tools/wp_list_tags.md +11 -3
- package/docs/api/tools/wp_list_users.md +11 -3
- package/docs/api/tools/wp_performance_alerts.md +17 -7
- package/docs/api/tools/wp_performance_benchmark.md +17 -7
- package/docs/api/tools/wp_performance_export.md +17 -7
- package/docs/api/tools/wp_performance_history.md +17 -7
- package/docs/api/tools/wp_performance_optimize.md +17 -7
- package/docs/api/tools/wp_performance_stats.md +17 -7
- package/docs/api/tools/wp_search_site.md +11 -3
- package/docs/api/tools/wp_spam_comment.md +11 -3
- package/docs/api/tools/wp_switch_auth_method.md +14 -5
- package/docs/api/tools/wp_test_auth.md +11 -3
- package/docs/api/tools/wp_update_category.md +11 -3
- package/docs/api/tools/wp_update_comment.md +14 -5
- package/docs/api/tools/wp_update_media.md +14 -5
- package/docs/api/tools/wp_update_page.md +13 -5
- package/docs/api/tools/wp_update_post.md +14 -7
- package/docs/api/tools/wp_update_site_settings.md +14 -5
- package/docs/api/tools/wp_update_tag.md +11 -3
- package/docs/api/tools/wp_update_user.md +13 -5
- package/docs/api/tools/wp_upload_media.md +13 -5
- package/docs/api/types/WordPressPost.md +2 -0
- package/docs/code-improvements.md +40 -0
- package/docs/contract-testing.md +1 -1
- package/docs/developer/API_REFERENCE.md +19 -59
- package/docs/developer/ARCHITECTURE.md +8 -11
- package/docs/developer/BUILD_SYSTEM.md +2 -2
- package/docs/developer/CONTRIBUTING.md +3 -5
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
- package/docs/developer/MIGRATION_GUIDE.md +5 -6
- package/docs/developer/README.md +2 -1
- package/docs/developer/REFACTORING.md +9 -15
- package/docs/developer/RELEASE_PROCESS.md +4 -3
- package/docs/developer/TESTING.md +2 -2
- package/docs/examples/claude-desktop-config.md +8 -0
- package/docs/integrations/claude-desktop.md +426 -0
- package/docs/integrations/cline.md +537 -0
- package/docs/integrations/vs-code.md +515 -0
- package/docs/releases/COMMUNITY_ANNOUNCEMENT_v1.1.2.md +30 -23
- package/docs/releases/RELEASE_NOTES_v1.1.2.md +7 -6
- package/docs/testing-configurations.md +11 -0
- package/docs/user-guides/DOCKER_NPM_DTX_SETUP.md +3 -2
- package/docs/user-guides/DOCKER_SETUP.md +3 -2
- package/docs/user-guides/DTX_SETUP.md +6 -5
- package/docs/user-guides/DXT_INSTALLATION.md +4 -4
- package/docs/user-guides/NPM_SETUP.md +4 -2
- package/docs/user-guides/NPX_SETUP.md +4 -2
- package/docs/user-guides/SMITHERY_SETUP.md +402 -0
- package/docs/wordpress-rest-api-authentication-troubleshooting.md +45 -42
- package/package.json +12 -2
- package/src/cache/CacheInvalidation.ts +7 -18
- package/src/client/MockWordPressClient.ts +398 -0
- package/src/client/api.ts +77 -237
- package/src/client/managers/AuthenticationManager.ts +19 -56
- package/src/config/ConfigurationSchema.ts +14 -45
- package/src/config/ServerConfiguration.ts +98 -71
- package/src/docs/DocumentationGenerator.ts +39 -123
- package/src/dxt-entry.cjs +4 -1
- package/src/index.ts +35 -54
- package/src/security/InputValidator.ts +15 -57
- package/src/server/ToolRegistry.ts +88 -17
- package/src/tools/auth.ts +15 -22
- package/src/tools/posts.ts +347 -64
- package/src/tools/site.ts +69 -46
- package/src/tools/users.ts +142 -44
- package/src/utils/enhancedError.ts +248 -0
- package/src/utils/streaming.ts +428 -0
- package/src/utils/validation.ts +253 -92
- package/dist/mcp-wordpress-1.5.2.tgz +0 -0
|
@@ -17,13 +17,11 @@ Get cache statistics for a WordPress site.
|
|
|
17
17
|
Simple example of using wp_cache_stats
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
-
|
|
21
20
|
```bash
|
|
22
21
|
wp_cache_stats
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
**Response:**
|
|
26
|
-
|
|
27
25
|
```json
|
|
28
26
|
{
|
|
29
27
|
"success": true,
|
|
@@ -33,7 +31,6 @@ wp_cache_stats
|
|
|
33
31
|
```
|
|
34
32
|
|
|
35
33
|
**Error Example (Authentication failure):**
|
|
36
|
-
|
|
37
34
|
```json
|
|
38
35
|
{
|
|
39
36
|
"error": "Authentication failed",
|
|
@@ -41,18 +38,17 @@ wp_cache_stats
|
|
|
41
38
|
}
|
|
42
39
|
```
|
|
43
40
|
|
|
41
|
+
|
|
44
42
|
### Multi-Site cache Usage
|
|
45
43
|
|
|
46
44
|
Using wp_cache_stats with specific site targeting
|
|
47
45
|
|
|
48
46
|
**Command:**
|
|
49
|
-
|
|
50
47
|
```bash
|
|
51
48
|
wp_cache_stats --site="site1"
|
|
52
49
|
```
|
|
53
50
|
|
|
54
51
|
**Response:**
|
|
55
|
-
|
|
56
52
|
```json
|
|
57
53
|
{
|
|
58
54
|
"success": true,
|
|
@@ -61,6 +57,13 @@ wp_cache_stats --site="site1"
|
|
|
61
57
|
}
|
|
62
58
|
```
|
|
63
59
|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
64
67
|
## Response Format
|
|
65
68
|
|
|
66
69
|
**Return Type:** `CacheStats`
|
|
@@ -87,24 +90,30 @@ wp_cache_stats --site="site1"
|
|
|
87
90
|
**Description:** Invalid credentials or insufficient permissions
|
|
88
91
|
**Resolution:** Check your authentication credentials and user permissions
|
|
89
92
|
|
|
93
|
+
|
|
90
94
|
### VALIDATION_ERROR
|
|
91
95
|
|
|
92
96
|
**Message:** Parameter validation failed
|
|
93
97
|
**Description:** One or more required parameters are missing or invalid
|
|
94
98
|
**Resolution:** Review the required parameters and their formats
|
|
95
99
|
|
|
100
|
+
|
|
96
101
|
### NOT_FOUND
|
|
97
102
|
|
|
98
103
|
**Message:** Resource not found
|
|
99
104
|
**Description:** The requested resource does not exist
|
|
100
105
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
101
106
|
|
|
107
|
+
|
|
102
108
|
### PERMISSION_DENIED
|
|
103
109
|
|
|
104
110
|
**Message:** Insufficient permissions
|
|
105
111
|
**Description:** The user does not have permission to perform this action
|
|
106
112
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
107
113
|
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
108
117
|
---
|
|
109
118
|
|
|
110
119
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,13 +17,11 @@ Pre-warm cache with essential WordPress data.
|
|
|
17
17
|
Simple example of using wp_cache_warm
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
-
|
|
21
20
|
```bash
|
|
22
21
|
wp_cache_warm
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
**Response:**
|
|
26
|
-
|
|
27
25
|
```json
|
|
28
26
|
{
|
|
29
27
|
"success": true,
|
|
@@ -33,7 +31,6 @@ wp_cache_warm
|
|
|
33
31
|
```
|
|
34
32
|
|
|
35
33
|
**Error Example (Authentication failure):**
|
|
36
|
-
|
|
37
34
|
```json
|
|
38
35
|
{
|
|
39
36
|
"error": "Authentication failed",
|
|
@@ -41,18 +38,17 @@ wp_cache_warm
|
|
|
41
38
|
}
|
|
42
39
|
```
|
|
43
40
|
|
|
41
|
+
|
|
44
42
|
### Multi-Site cache Usage
|
|
45
43
|
|
|
46
44
|
Using wp_cache_warm with specific site targeting
|
|
47
45
|
|
|
48
46
|
**Command:**
|
|
49
|
-
|
|
50
47
|
```bash
|
|
51
48
|
wp_cache_warm --site="site1"
|
|
52
49
|
```
|
|
53
50
|
|
|
54
51
|
**Response:**
|
|
55
|
-
|
|
56
52
|
```json
|
|
57
53
|
{
|
|
58
54
|
"success": true,
|
|
@@ -61,6 +57,13 @@ wp_cache_warm --site="site1"
|
|
|
61
57
|
}
|
|
62
58
|
```
|
|
63
59
|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
64
67
|
## Response Format
|
|
65
68
|
|
|
66
69
|
**Return Type:** `CacheStats`
|
|
@@ -87,24 +90,30 @@ wp_cache_warm --site="site1"
|
|
|
87
90
|
**Description:** Invalid credentials or insufficient permissions
|
|
88
91
|
**Resolution:** Check your authentication credentials and user permissions
|
|
89
92
|
|
|
93
|
+
|
|
90
94
|
### VALIDATION_ERROR
|
|
91
95
|
|
|
92
96
|
**Message:** Parameter validation failed
|
|
93
97
|
**Description:** One or more required parameters are missing or invalid
|
|
94
98
|
**Resolution:** Review the required parameters and their formats
|
|
95
99
|
|
|
100
|
+
|
|
96
101
|
### NOT_FOUND
|
|
97
102
|
|
|
98
103
|
**Message:** Resource not found
|
|
99
104
|
**Description:** The requested resource does not exist
|
|
100
105
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
101
106
|
|
|
107
|
+
|
|
102
108
|
### PERMISSION_DENIED
|
|
103
109
|
|
|
104
110
|
**Message:** Insufficient permissions
|
|
105
111
|
**Description:** The user does not have permission to perform this action
|
|
106
112
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
107
113
|
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
108
117
|
---
|
|
109
118
|
|
|
110
119
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,13 +18,11 @@ Creates a new application password for a user.
|
|
|
18
18
|
Simple example of using wp_create_application_password
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
-
|
|
22
21
|
```bash
|
|
23
22
|
wp_create_application_password --user_id="example_value" --app_name="example_value"
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
**Response:**
|
|
27
|
-
|
|
28
26
|
```json
|
|
29
27
|
{
|
|
30
28
|
"success": true,
|
|
@@ -37,7 +35,6 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
37
35
|
```
|
|
38
36
|
|
|
39
37
|
**Error Example (Authentication failure):**
|
|
40
|
-
|
|
41
38
|
```json
|
|
42
39
|
{
|
|
43
40
|
"error": "Authentication failed",
|
|
@@ -45,6 +42,11 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
45
42
|
}
|
|
46
43
|
```
|
|
47
44
|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
48
50
|
## Response Format
|
|
49
51
|
|
|
50
52
|
**Return Type:** `site`
|
|
@@ -71,24 +73,30 @@ wp_create_application_password --user_id="example_value" --app_name="example_val
|
|
|
71
73
|
**Description:** Invalid credentials or insufficient permissions
|
|
72
74
|
**Resolution:** Check your authentication credentials and user permissions
|
|
73
75
|
|
|
76
|
+
|
|
74
77
|
### VALIDATION_ERROR
|
|
75
78
|
|
|
76
79
|
**Message:** Parameter validation failed
|
|
77
80
|
**Description:** One or more required parameters are missing or invalid
|
|
78
81
|
**Resolution:** Review the required parameters and their formats
|
|
79
82
|
|
|
83
|
+
|
|
80
84
|
### NOT_FOUND
|
|
81
85
|
|
|
82
86
|
**Message:** Resource not found
|
|
83
87
|
**Description:** The requested resource does not exist
|
|
84
88
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
85
89
|
|
|
90
|
+
|
|
86
91
|
### PERMISSION_DENIED
|
|
87
92
|
|
|
88
93
|
**Message:** Insufficient permissions
|
|
89
94
|
**Description:** The user does not have permission to perform this action
|
|
90
95
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
91
96
|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
92
100
|
---
|
|
93
101
|
|
|
94
102
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -18,13 +18,11 @@ Creates a new category.
|
|
|
18
18
|
Simple example of using wp_create_category
|
|
19
19
|
|
|
20
20
|
**Command:**
|
|
21
|
-
|
|
22
21
|
```bash
|
|
23
22
|
wp_create_category --name="example_value"
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
**Response:**
|
|
27
|
-
|
|
28
26
|
```json
|
|
29
27
|
{
|
|
30
28
|
"success": true,
|
|
@@ -37,7 +35,6 @@ wp_create_category --name="example_value"
|
|
|
37
35
|
```
|
|
38
36
|
|
|
39
37
|
**Error Example (Authentication failure):**
|
|
40
|
-
|
|
41
38
|
```json
|
|
42
39
|
{
|
|
43
40
|
"error": "Authentication failed",
|
|
@@ -45,6 +42,11 @@ wp_create_category --name="example_value"
|
|
|
45
42
|
}
|
|
46
43
|
```
|
|
47
44
|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
48
50
|
## Response Format
|
|
49
51
|
|
|
50
52
|
**Return Type:** `taxonomy`
|
|
@@ -71,24 +73,30 @@ wp_create_category --name="example_value"
|
|
|
71
73
|
**Description:** Invalid credentials or insufficient permissions
|
|
72
74
|
**Resolution:** Check your authentication credentials and user permissions
|
|
73
75
|
|
|
76
|
+
|
|
74
77
|
### VALIDATION_ERROR
|
|
75
78
|
|
|
76
79
|
**Message:** Parameter validation failed
|
|
77
80
|
**Description:** One or more required parameters are missing or invalid
|
|
78
81
|
**Resolution:** Review the required parameters and their formats
|
|
79
82
|
|
|
83
|
+
|
|
80
84
|
### NOT_FOUND
|
|
81
85
|
|
|
82
86
|
**Message:** Resource not found
|
|
83
87
|
**Description:** The requested resource does not exist
|
|
84
88
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
85
89
|
|
|
90
|
+
|
|
86
91
|
### PERMISSION_DENIED
|
|
87
92
|
|
|
88
93
|
**Message:** Insufficient permissions
|
|
89
94
|
**Description:** The user does not have permission to perform this action
|
|
90
95
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
91
96
|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
92
100
|
---
|
|
93
101
|
|
|
94
102
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -20,13 +20,11 @@ Creates a new comment on a post.
|
|
|
20
20
|
Simple example of using wp_create_comment
|
|
21
21
|
|
|
22
22
|
**Command:**
|
|
23
|
-
|
|
24
23
|
```bash
|
|
25
24
|
wp_create_comment --post="example_value" --content="This is example content for the post."
|
|
26
25
|
```
|
|
27
26
|
|
|
28
27
|
**Response:**
|
|
29
|
-
|
|
30
28
|
```json
|
|
31
29
|
{
|
|
32
30
|
"success": true,
|
|
@@ -39,7 +37,6 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
39
37
|
```
|
|
40
38
|
|
|
41
39
|
**Error Example (Authentication failure):**
|
|
42
|
-
|
|
43
40
|
```json
|
|
44
41
|
{
|
|
45
42
|
"error": "Authentication failed",
|
|
@@ -47,18 +44,17 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
47
44
|
}
|
|
48
45
|
```
|
|
49
46
|
|
|
47
|
+
|
|
50
48
|
### Advanced comment Configuration
|
|
51
49
|
|
|
52
50
|
Comprehensive example using all available parameters
|
|
53
51
|
|
|
54
52
|
**Command:**
|
|
55
|
-
|
|
56
53
|
```bash
|
|
57
54
|
wp_create_comment --post="example_value" --content="This is example content for the post." --author_name="example_value" --author_email="example_value"
|
|
58
55
|
```
|
|
59
56
|
|
|
60
57
|
**Response:**
|
|
61
|
-
|
|
62
58
|
```json
|
|
63
59
|
{
|
|
64
60
|
"success": true,
|
|
@@ -70,6 +66,13 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
70
66
|
}
|
|
71
67
|
```
|
|
72
68
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
73
76
|
## Response Format
|
|
74
77
|
|
|
75
78
|
**Return Type:** `comment`
|
|
@@ -96,24 +99,30 @@ wp_create_comment --post="example_value" --content="This is example content for
|
|
|
96
99
|
**Description:** Invalid credentials or insufficient permissions
|
|
97
100
|
**Resolution:** Check your authentication credentials and user permissions
|
|
98
101
|
|
|
102
|
+
|
|
99
103
|
### VALIDATION_ERROR
|
|
100
104
|
|
|
101
105
|
**Message:** Parameter validation failed
|
|
102
106
|
**Description:** One or more required parameters are missing or invalid
|
|
103
107
|
**Resolution:** Review the required parameters and their formats
|
|
104
108
|
|
|
109
|
+
|
|
105
110
|
### NOT_FOUND
|
|
106
111
|
|
|
107
112
|
**Message:** Resource not found
|
|
108
113
|
**Description:** The requested resource does not exist
|
|
109
114
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
110
115
|
|
|
116
|
+
|
|
111
117
|
### PERMISSION_DENIED
|
|
112
118
|
|
|
113
119
|
**Message:** Insufficient permissions
|
|
114
120
|
**Description:** The user does not have permission to perform this action
|
|
115
121
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
116
122
|
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
117
126
|
---
|
|
118
127
|
|
|
119
128
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -19,13 +19,11 @@ Creates a new page.
|
|
|
19
19
|
Simple example of using wp_create_page
|
|
20
20
|
|
|
21
21
|
**Command:**
|
|
22
|
-
|
|
23
22
|
```bash
|
|
24
23
|
wp_create_page --title="Example Post Title"
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
**Response:**
|
|
28
|
-
|
|
29
27
|
```json
|
|
30
28
|
{
|
|
31
29
|
"success": true,
|
|
@@ -38,7 +36,6 @@ wp_create_page --title="Example Post Title"
|
|
|
38
36
|
```
|
|
39
37
|
|
|
40
38
|
**Error Example (Authentication failure):**
|
|
41
|
-
|
|
42
39
|
```json
|
|
43
40
|
{
|
|
44
41
|
"error": "Authentication failed",
|
|
@@ -46,18 +43,17 @@ wp_create_page --title="Example Post Title"
|
|
|
46
43
|
}
|
|
47
44
|
```
|
|
48
45
|
|
|
46
|
+
|
|
49
47
|
### Advanced page Configuration
|
|
50
48
|
|
|
51
49
|
Comprehensive example using all available parameters
|
|
52
50
|
|
|
53
51
|
**Command:**
|
|
54
|
-
|
|
55
52
|
```bash
|
|
56
53
|
wp_create_page --title="Example Post Title" --content="This is example content for the post." --status="publish"
|
|
57
54
|
```
|
|
58
55
|
|
|
59
56
|
**Response:**
|
|
60
|
-
|
|
61
57
|
```json
|
|
62
58
|
{
|
|
63
59
|
"success": true,
|
|
@@ -69,6 +65,11 @@ wp_create_page --title="Example Post Title" --content="This is example content f
|
|
|
69
65
|
}
|
|
70
66
|
```
|
|
71
67
|
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
72
73
|
## Required Permissions
|
|
73
74
|
|
|
74
75
|
This tool requires the following WordPress user capabilities:
|
|
@@ -78,6 +79,7 @@ This tool requires the following WordPress user capabilities:
|
|
|
78
79
|
|
|
79
80
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
80
81
|
|
|
82
|
+
|
|
81
83
|
## Response Format
|
|
82
84
|
|
|
83
85
|
**Return Type:** `page`
|
|
@@ -104,24 +106,30 @@ This tool requires the following WordPress user capabilities:
|
|
|
104
106
|
**Description:** Invalid credentials or insufficient permissions
|
|
105
107
|
**Resolution:** Check your authentication credentials and user permissions
|
|
106
108
|
|
|
109
|
+
|
|
107
110
|
### VALIDATION_ERROR
|
|
108
111
|
|
|
109
112
|
**Message:** Parameter validation failed
|
|
110
113
|
**Description:** One or more required parameters are missing or invalid
|
|
111
114
|
**Resolution:** Review the required parameters and their formats
|
|
112
115
|
|
|
116
|
+
|
|
113
117
|
### NOT_FOUND
|
|
114
118
|
|
|
115
119
|
**Message:** Resource not found
|
|
116
120
|
**Description:** The requested resource does not exist
|
|
117
121
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
118
122
|
|
|
123
|
+
|
|
119
124
|
### PERMISSION_DENIED
|
|
120
125
|
|
|
121
126
|
**Message:** Insufficient permissions
|
|
122
127
|
**Description:** The user does not have permission to perform this action
|
|
123
128
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
124
129
|
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
125
133
|
---
|
|
126
134
|
|
|
127
135
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -22,13 +22,11 @@ Creates a new post.
|
|
|
22
22
|
Simple example of using wp_create_post
|
|
23
23
|
|
|
24
24
|
**Command:**
|
|
25
|
-
|
|
26
25
|
```bash
|
|
27
26
|
wp_create_post --title="Example Post Title"
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
**Response:**
|
|
31
|
-
|
|
32
30
|
```json
|
|
33
31
|
{
|
|
34
32
|
"success": true,
|
|
@@ -41,7 +39,6 @@ wp_create_post --title="Example Post Title"
|
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
**Error Example (Authentication failure):**
|
|
44
|
-
|
|
45
42
|
```json
|
|
46
43
|
{
|
|
47
44
|
"error": "Authentication failed",
|
|
@@ -49,18 +46,17 @@ wp_create_post --title="Example Post Title"
|
|
|
49
46
|
}
|
|
50
47
|
```
|
|
51
48
|
|
|
49
|
+
|
|
52
50
|
### Advanced post Configuration
|
|
53
51
|
|
|
54
52
|
Comprehensive example using all available parameters
|
|
55
53
|
|
|
56
54
|
**Command:**
|
|
57
|
-
|
|
58
55
|
```bash
|
|
59
56
|
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"
|
|
60
57
|
```
|
|
61
58
|
|
|
62
59
|
**Response:**
|
|
63
|
-
|
|
64
60
|
```json
|
|
65
61
|
{
|
|
66
62
|
"success": true,
|
|
@@ -72,17 +68,21 @@ wp_create_post --title="Example Post Title" --content="This is example content f
|
|
|
72
68
|
}
|
|
73
69
|
```
|
|
74
70
|
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
75
74
|
## WordPress REST API Mapping
|
|
76
75
|
|
|
77
76
|
**Endpoint:** `/wp-json/wp/v2/posts`
|
|
78
77
|
|
|
79
|
-
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
|
|
78
|
+
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
|
|
79
|
+
parameters are determined by WordPress core functionality.
|
|
80
80
|
|
|
81
81
|
### WordPress Documentation
|
|
82
|
-
|
|
83
82
|
- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
|
|
84
83
|
- [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
|
|
85
84
|
|
|
85
|
+
|
|
86
86
|
## Required Permissions
|
|
87
87
|
|
|
88
88
|
This tool requires the following WordPress user capabilities:
|
|
@@ -92,6 +92,7 @@ This tool requires the following WordPress user capabilities:
|
|
|
92
92
|
|
|
93
93
|
**Note:** The authenticated user must have these capabilities to successfully execute this tool.
|
|
94
94
|
|
|
95
|
+
|
|
95
96
|
## Response Format
|
|
96
97
|
|
|
97
98
|
**Return Type:** `post`
|
|
@@ -118,24 +119,30 @@ This tool requires the following WordPress user capabilities:
|
|
|
118
119
|
**Description:** Invalid credentials or insufficient permissions
|
|
119
120
|
**Resolution:** Check your authentication credentials and user permissions
|
|
120
121
|
|
|
122
|
+
|
|
121
123
|
### VALIDATION_ERROR
|
|
122
124
|
|
|
123
125
|
**Message:** Parameter validation failed
|
|
124
126
|
**Description:** One or more required parameters are missing or invalid
|
|
125
127
|
**Resolution:** Review the required parameters and their formats
|
|
126
128
|
|
|
129
|
+
|
|
127
130
|
### NOT_FOUND
|
|
128
131
|
|
|
129
132
|
**Message:** Resource not found
|
|
130
133
|
**Description:** The requested resource does not exist
|
|
131
134
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
132
135
|
|
|
136
|
+
|
|
133
137
|
### PERMISSION_DENIED
|
|
134
138
|
|
|
135
139
|
**Message:** Insufficient permissions
|
|
136
140
|
**Description:** The user does not have permission to perform this action
|
|
137
141
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
138
142
|
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
139
146
|
---
|
|
140
147
|
|
|
141
148
|
*Generated automatically from tool definitions - Do not edit manually*
|
|
@@ -17,13 +17,11 @@ Creates a new tag.
|
|
|
17
17
|
Simple example of using wp_create_tag
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
-
|
|
21
20
|
```bash
|
|
22
21
|
wp_create_tag --name="example_value"
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
**Response:**
|
|
26
|
-
|
|
27
25
|
```json
|
|
28
26
|
{
|
|
29
27
|
"success": true,
|
|
@@ -36,7 +34,6 @@ wp_create_tag --name="example_value"
|
|
|
36
34
|
```
|
|
37
35
|
|
|
38
36
|
**Error Example (Authentication failure):**
|
|
39
|
-
|
|
40
37
|
```json
|
|
41
38
|
{
|
|
42
39
|
"error": "Authentication failed",
|
|
@@ -44,6 +41,11 @@ wp_create_tag --name="example_value"
|
|
|
44
41
|
}
|
|
45
42
|
```
|
|
46
43
|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
47
49
|
## Response Format
|
|
48
50
|
|
|
49
51
|
**Return Type:** `taxonomy`
|
|
@@ -70,24 +72,30 @@ wp_create_tag --name="example_value"
|
|
|
70
72
|
**Description:** Invalid credentials or insufficient permissions
|
|
71
73
|
**Resolution:** Check your authentication credentials and user permissions
|
|
72
74
|
|
|
75
|
+
|
|
73
76
|
### VALIDATION_ERROR
|
|
74
77
|
|
|
75
78
|
**Message:** Parameter validation failed
|
|
76
79
|
**Description:** One or more required parameters are missing or invalid
|
|
77
80
|
**Resolution:** Review the required parameters and their formats
|
|
78
81
|
|
|
82
|
+
|
|
79
83
|
### NOT_FOUND
|
|
80
84
|
|
|
81
85
|
**Message:** Resource not found
|
|
82
86
|
**Description:** The requested resource does not exist
|
|
83
87
|
**Resolution:** Verify the resource ID and ensure it exists
|
|
84
88
|
|
|
89
|
+
|
|
85
90
|
### PERMISSION_DENIED
|
|
86
91
|
|
|
87
92
|
**Message:** Insufficient permissions
|
|
88
93
|
**Description:** The user does not have permission to perform this action
|
|
89
94
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
90
95
|
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
91
99
|
---
|
|
92
100
|
|
|
93
101
|
*Generated automatically from tool definitions - Do not edit manually*
|