mcp-wordpress 2.10.0 → 2.10.2
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 +17 -19
- package/bin/mcp-wordpress.js +3 -3
- package/bin/setup.js +140 -141
- package/bin/status.js +112 -114
- package/dist/client/MockWordPressClient.d.ts.map +1 -1
- package/dist/client/MockWordPressClient.js.map +1 -1
- package/dist/client/SEOWordPressClient.d.ts.map +1 -1
- package/dist/client/SEOWordPressClient.js +16 -14
- package/dist/client/SEOWordPressClient.js.map +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +6 -6
- package/dist/client/managers/AuthManager.d.ts.map +1 -1
- package/dist/client/managers/AuthManager.js +2 -2
- package/dist/client/managers/AuthManager.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.js +1 -1
- package/dist/client/managers/JWTAuthImplementation.d.ts.map +1 -1
- package/dist/client/managers/JWTAuthImplementation.js +7 -7
- package/dist/client/managers/JWTAuthImplementation.js.map +1 -1
- package/dist/client/managers/composed/MigrationAdapter.js +1 -1
- package/dist/client/managers/composed/index.d.ts +2 -2
- package/dist/client/managers/composed/index.d.ts.map +1 -1
- package/dist/client/managers/composed/index.js +1 -1
- package/dist/client/managers/composed/index.js.map +1 -1
- package/dist/client/managers/implementations/ErrorHandlerImpl.d.ts.map +1 -1
- package/dist/client/managers/implementations/ErrorHandlerImpl.js +2 -4
- package/dist/client/managers/implementations/ErrorHandlerImpl.js.map +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.d.ts.map +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.js +1 -1
- package/dist/client/managers/implementations/ParameterValidatorImpl.js.map +1 -1
- package/dist/client/managers/interfaces/ManagerInterfaces.d.ts.map +1 -1
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +3 -3
- package/dist/docs/MarkdownFormatter.d.ts.map +1 -1
- package/dist/docs/MarkdownFormatter.js +7 -7
- package/dist/docs/MarkdownFormatter.js.map +1 -1
- package/dist/performance/PerformanceAnalytics.d.ts.map +1 -1
- package/dist/performance/PerformanceAnalytics.js +3 -1
- package/dist/performance/PerformanceAnalytics.js.map +1 -1
- package/dist/security/InputValidator.js +1 -1
- package/dist/security/SecurityCIPipeline.js +1 -1
- package/dist/security/SecurityCIPipeline.js.map +1 -1
- package/dist/security/SecurityConfig.d.ts.map +1 -1
- package/dist/security/SecurityConfig.js +6 -2
- package/dist/security/SecurityConfig.js.map +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +2 -2
- package/dist/tools/cache.d.ts.map +1 -1
- package/dist/tools/cache.js.map +1 -1
- package/dist/tools/comments.d.ts.map +1 -1
- package/dist/tools/comments.js.map +1 -1
- package/dist/tools/performance.d.ts.map +1 -1
- package/dist/tools/performance.js.map +1 -1
- package/dist/tools/posts/PostHandlers.d.ts.map +1 -1
- package/dist/tools/posts/PostHandlers.js.map +1 -1
- package/dist/tools/seo/SEOTools.d.ts.map +1 -1
- package/dist/tools/seo/SEOTools.js.map +1 -1
- package/dist/tools/seo/analyzers/ContentAnalyzer.d.ts.map +1 -1
- package/dist/tools/seo/analyzers/ContentAnalyzer.js.map +1 -1
- package/dist/types/enhanced.d.ts +17 -17
- package/dist/types/enhanced.d.ts.map +1 -1
- package/dist/types/enhanced.js +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/requests.d.ts +16 -16
- package/dist/types/tools.d.ts +46 -46
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +7 -7
- package/docs/ARCHITECTURE.md +17 -17
- package/docs/BADGE_UPDATES.md +11 -11
- package/docs/CACHING.md +2 -0
- package/docs/CI_CD_IMPROVEMENTS.md +8 -5
- package/docs/CONFIGURATION.md +76 -46
- package/docs/DOCKER_PUBLISHING_TROUBLESHOOTING.md +11 -2
- package/docs/EVALUATION.md +16 -21
- package/docs/INCREMENTAL_COVERAGE.md +7 -3
- package/docs/INSTALLATION.md +33 -19
- package/docs/PUBLISHING-TROUBLESHOOTING.md +3 -2
- package/docs/SECURITY.md +17 -15
- package/docs/SECURITY_TESTING.md +3 -0
- package/docs/TROUBLESHOOTING.md +85 -36
- package/docs/api/README.md +118 -125
- package/docs/api/categories/auth.md +3 -1
- package/docs/api/categories/cache.md +3 -1
- package/docs/api/categories/comment.md +3 -1
- package/docs/api/categories/media.md +3 -1
- package/docs/api/categories/page.md +3 -1
- package/docs/api/categories/performance.md +3 -1
- package/docs/api/categories/post.md +3 -1
- package/docs/api/categories/site.md +3 -1
- package/docs/api/categories/taxonomy.md +3 -1
- package/docs/api/categories/user.md +3 -1
- package/docs/api/openapi.json +114 -410
- package/docs/api/summary.json +1 -1
- package/docs/api/tools/wp_approve_comment.md +13 -25
- package/docs/api/tools/wp_cache_clear.md +17 -30
- package/docs/api/tools/wp_cache_info.md +16 -29
- package/docs/api/tools/wp_cache_stats.md +16 -29
- package/docs/api/tools/wp_cache_warm.md +16 -29
- package/docs/api/tools/wp_create_application_password.md +14 -26
- package/docs/api/tools/wp_create_category.md +14 -26
- package/docs/api/tools/wp_create_comment.md +18 -31
- package/docs/api/tools/wp_create_page.md +17 -29
- package/docs/api/tools/wp_create_post.md +25 -30
- package/docs/api/tools/wp_create_tag.md +13 -25
- package/docs/api/tools/wp_create_user.md +18 -30
- package/docs/api/tools/wp_delete_application_password.md +14 -26
- package/docs/api/tools/wp_delete_category.md +13 -25
- package/docs/api/tools/wp_delete_comment.md +14 -26
- package/docs/api/tools/wp_delete_media.md +14 -25
- package/docs/api/tools/wp_delete_page.md +14 -25
- package/docs/api/tools/wp_delete_post.md +17 -25
- package/docs/api/tools/wp_delete_tag.md +13 -25
- package/docs/api/tools/wp_delete_user.md +14 -25
- package/docs/api/tools/wp_get_application_passwords.md +13 -25
- package/docs/api/tools/wp_get_auth_status.md +12 -24
- package/docs/api/tools/wp_get_category.md +13 -25
- package/docs/api/tools/wp_get_comment.md +13 -25
- package/docs/api/tools/wp_get_current_user.md +17 -30
- package/docs/api/tools/wp_get_media.md +13 -25
- package/docs/api/tools/wp_get_page.md +13 -25
- package/docs/api/tools/wp_get_page_revisions.md +13 -25
- package/docs/api/tools/wp_get_post.md +16 -25
- package/docs/api/tools/wp_get_post_revisions.md +13 -25
- package/docs/api/tools/wp_get_site_settings.md +12 -23
- package/docs/api/tools/wp_get_tag.md +13 -25
- package/docs/api/tools/wp_get_user.md +13 -25
- package/docs/api/tools/wp_list_categories.md +15 -27
- package/docs/api/tools/wp_list_comments.md +15 -27
- package/docs/api/tools/wp_list_media.md +18 -31
- package/docs/api/tools/wp_list_pages.md +18 -31
- package/docs/api/tools/wp_list_posts.md +29 -41
- package/docs/api/tools/wp_list_tags.md +14 -26
- package/docs/api/tools/wp_list_users.md +20 -34
- package/docs/api/tools/wp_performance_alerts.md +22 -36
- package/docs/api/tools/wp_performance_benchmark.md +20 -34
- package/docs/api/tools/wp_performance_export.md +22 -36
- package/docs/api/tools/wp_performance_history.md +21 -35
- package/docs/api/tools/wp_performance_optimize.md +22 -36
- package/docs/api/tools/wp_performance_stats.md +20 -34
- package/docs/api/tools/wp_search_site.md +18 -32
- package/docs/api/tools/wp_spam_comment.md +13 -25
- package/docs/api/tools/wp_switch_auth_method.md +18 -31
- package/docs/api/tools/wp_test_auth.md +15 -30
- package/docs/api/tools/wp_update_category.md +14 -26
- package/docs/api/tools/wp_update_comment.md +17 -30
- package/docs/api/tools/wp_update_media.md +19 -32
- package/docs/api/tools/wp_update_page.md +18 -30
- package/docs/api/tools/wp_update_post.md +21 -30
- package/docs/api/tools/wp_update_site_settings.md +18 -31
- package/docs/api/tools/wp_update_tag.md +14 -26
- package/docs/api/tools/wp_update_user.md +17 -29
- package/docs/api/tools/wp_upload_media.md +20 -32
- package/docs/api/types/WordPressPost.md +8 -15
- package/docs/code-improvements.md +1 -0
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
- package/docs/developer/MAINTENANCE.md +4 -0
- package/docs/developer/NPM_AUTH_SETUP.md +3 -0
- package/docs/developer/RELEASE_PROCESS.md +1 -0
- package/docs/examples/multi-site-setup.md +2 -0
- package/docs/integrations/claude-desktop.md +14 -5
- package/docs/integrations/cline.md +1 -0
- package/docs/user-guides/DTX_SETUP.md +9 -8
- package/docs/user-guides/NPX_SETUP.md +5 -9
- package/docs/user-guides/SMITHERY_SETUP.md +5 -0
- package/docs/v2.2.0-resolution-demo.md +17 -2
- package/package.json +2 -1
- package/src/cache/__tests__/CacheManager.test.ts +4 -8
- package/src/client/MockWordPressClient.ts +5 -1
- package/src/client/SEOWordPressClient.ts +30 -26
- package/src/client/index.ts +6 -6
- package/src/client/managers/AuthManager.ts +16 -8
- package/src/client/managers/AuthenticationManager.ts +2 -2
- package/src/client/managers/JWTAuthImplementation.ts +24 -27
- package/src/client/managers/ManagersIndex.ts +1 -1
- package/src/client/managers/composed/MigrationAdapter.ts +1 -1
- package/src/client/managers/composed/index.ts +7 -7
- package/src/client/managers/implementations/ErrorHandlerImpl.ts +12 -26
- package/src/client/managers/implementations/ParameterValidatorImpl.ts +49 -49
- package/src/client/managers/interfaces/ManagerInterfaces.ts +13 -9
- package/src/config/index.ts +3 -3
- package/src/docs/MarkdownFormatter.ts +13 -9
- package/src/performance/PerformanceAnalytics.ts +9 -3
- package/src/security/InputValidator.ts +1 -1
- package/src/security/SecurityCIPipeline.ts +1 -1
- package/src/security/SecurityConfig.ts +9 -3
- package/src/server/index.ts +2 -2
- package/src/tools/cache.ts +3 -1
- package/src/tools/comments.ts +3 -1
- package/src/tools/performance.ts +7 -3
- package/src/tools/posts/PostHandlers.ts +3 -1
- package/src/tools/seo/SEOTools.ts +6 -2
- package/src/tools/seo/analyzers/ContentAnalyzer.ts +9 -3
- package/src/types/enhanced.ts +34 -34
- package/src/types/index.ts +13 -11
- package/src/types/requests.ts +19 -19
- package/src/types/tools.ts +137 -84
- package/src/utils/index.ts +7 -7
|
@@ -6,9 +6,9 @@ Retrieves a single page by its ID.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ----------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The unique identifier for the page. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -17,11 +17,13 @@ Retrieves a single page by its ID.
|
|
|
17
17
|
Simple example of using wp_get_page
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_page --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_page --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_page --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
49
|
## Response Format
|
|
52
50
|
|
|
53
51
|
**Return Type:** `page`
|
|
@@ -70,34 +68,24 @@ wp_get_page --id="123"
|
|
|
70
68
|
|
|
71
69
|
### AUTHENTICATION_FAILED
|
|
72
70
|
|
|
73
|
-
**Message:** Authentication failed
|
|
74
|
-
|
|
75
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
76
|
-
|
|
71
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
72
|
+
Check your authentication credentials and user permissions
|
|
77
73
|
|
|
78
74
|
### VALIDATION_ERROR
|
|
79
75
|
|
|
80
|
-
**Message:** Parameter validation failed
|
|
81
|
-
**Description:** One or more required parameters are missing or invalid
|
|
76
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
82
77
|
**Resolution:** Review the required parameters and their formats
|
|
83
78
|
|
|
84
|
-
|
|
85
79
|
### NOT_FOUND
|
|
86
80
|
|
|
87
|
-
**Message:** Resource not found
|
|
88
|
-
|
|
89
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
|
-
|
|
81
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
82
|
+
resource ID and ensure it exists
|
|
91
83
|
|
|
92
84
|
### PERMISSION_DENIED
|
|
93
85
|
|
|
94
|
-
**Message:** Insufficient permissions
|
|
95
|
-
**Description:** The user does not have permission to perform this action
|
|
86
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
96
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
89
|
---
|
|
102
90
|
|
|
103
|
-
|
|
91
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,9 +6,9 @@ Retrieves revisions for a specific page.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ---------------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The ID of the page to get revisions for. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -17,11 +17,13 @@ Retrieves revisions for a specific page.
|
|
|
17
17
|
Simple example of using wp_get_page_revisions
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_page_revisions --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_page_revisions --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_page_revisions --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
49
|
## Response Format
|
|
52
50
|
|
|
53
51
|
**Return Type:** `page`
|
|
@@ -70,34 +68,24 @@ wp_get_page_revisions --id="123"
|
|
|
70
68
|
|
|
71
69
|
### AUTHENTICATION_FAILED
|
|
72
70
|
|
|
73
|
-
**Message:** Authentication failed
|
|
74
|
-
|
|
75
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
76
|
-
|
|
71
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
72
|
+
Check your authentication credentials and user permissions
|
|
77
73
|
|
|
78
74
|
### VALIDATION_ERROR
|
|
79
75
|
|
|
80
|
-
**Message:** Parameter validation failed
|
|
81
|
-
**Description:** One or more required parameters are missing or invalid
|
|
76
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
82
77
|
**Resolution:** Review the required parameters and their formats
|
|
83
78
|
|
|
84
|
-
|
|
85
79
|
### NOT_FOUND
|
|
86
80
|
|
|
87
|
-
**Message:** Resource not found
|
|
88
|
-
|
|
89
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
|
-
|
|
81
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
82
|
+
resource ID and ensure it exists
|
|
91
83
|
|
|
92
84
|
### PERMISSION_DENIED
|
|
93
85
|
|
|
94
|
-
**Message:** Insufficient permissions
|
|
95
|
-
**Description:** The user does not have permission to perform this action
|
|
86
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
96
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
89
|
---
|
|
102
90
|
|
|
103
|
-
|
|
91
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,9 +6,9 @@ Retrieves detailed information about a single post including metadata, content s
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ----------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The unique identifier for the post. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -17,11 +17,13 @@ Retrieves detailed information about a single post including metadata, content s
|
|
|
17
17
|
Simple example of using wp_get_post
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_post --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_post --id="123"
|
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
**Error Example (Authentication failure):**
|
|
41
|
+
|
|
39
42
|
```json
|
|
40
43
|
{
|
|
41
44
|
"error": "Authentication failed",
|
|
@@ -43,20 +46,18 @@ wp_get_post --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
49
|
## WordPress REST API Mapping
|
|
48
50
|
|
|
49
51
|
**Endpoint:** `/wp-json/wp/v2/posts/{id}`
|
|
50
52
|
|
|
51
|
-
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters
|
|
53
|
+
This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters
|
|
54
|
+
are determined by WordPress core functionality.
|
|
52
55
|
|
|
53
56
|
### WordPress Documentation
|
|
57
|
+
|
|
54
58
|
- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
|
|
55
59
|
- [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
|
|
56
60
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
61
|
## Response Format
|
|
61
62
|
|
|
62
63
|
**Return Type:** `post`
|
|
@@ -79,34 +80,24 @@ This tool directly interfaces with the WordPress REST API endpoint above. The re
|
|
|
79
80
|
|
|
80
81
|
### AUTHENTICATION_FAILED
|
|
81
82
|
|
|
82
|
-
**Message:** Authentication failed
|
|
83
|
-
|
|
84
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
85
|
-
|
|
83
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
84
|
+
Check your authentication credentials and user permissions
|
|
86
85
|
|
|
87
86
|
### VALIDATION_ERROR
|
|
88
87
|
|
|
89
|
-
**Message:** Parameter validation failed
|
|
90
|
-
**Description:** One or more required parameters are missing or invalid
|
|
88
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
91
89
|
**Resolution:** Review the required parameters and their formats
|
|
92
90
|
|
|
93
|
-
|
|
94
91
|
### NOT_FOUND
|
|
95
92
|
|
|
96
|
-
**Message:** Resource not found
|
|
97
|
-
|
|
98
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
99
|
-
|
|
93
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
94
|
+
resource ID and ensure it exists
|
|
100
95
|
|
|
101
96
|
### PERMISSION_DENIED
|
|
102
97
|
|
|
103
|
-
**Message:** Insufficient permissions
|
|
104
|
-
**Description:** The user does not have permission to perform this action
|
|
98
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
105
99
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
106
100
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
101
|
---
|
|
111
102
|
|
|
112
|
-
|
|
103
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,9 +6,9 @@ Retrieves the revision history for a specific post showing author and modificati
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ---------------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The ID of the post to get revisions for. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -17,11 +17,13 @@ Retrieves the revision history for a specific post showing author and modificati
|
|
|
17
17
|
Simple example of using wp_get_post_revisions
|
|
18
18
|
|
|
19
19
|
**Command:**
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
wp_get_post_revisions --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_post_revisions --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_post_revisions --id="123"
|
|
|
43
46
|
}
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
49
|
## Response Format
|
|
52
50
|
|
|
53
51
|
**Return Type:** `post`
|
|
@@ -70,34 +68,24 @@ wp_get_post_revisions --id="123"
|
|
|
70
68
|
|
|
71
69
|
### AUTHENTICATION_FAILED
|
|
72
70
|
|
|
73
|
-
**Message:** Authentication failed
|
|
74
|
-
|
|
75
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
76
|
-
|
|
71
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
72
|
+
Check your authentication credentials and user permissions
|
|
77
73
|
|
|
78
74
|
### VALIDATION_ERROR
|
|
79
75
|
|
|
80
|
-
**Message:** Parameter validation failed
|
|
81
|
-
**Description:** One or more required parameters are missing or invalid
|
|
76
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
82
77
|
**Resolution:** Review the required parameters and their formats
|
|
83
78
|
|
|
84
|
-
|
|
85
79
|
### NOT_FOUND
|
|
86
80
|
|
|
87
|
-
**Message:** Resource not found
|
|
88
|
-
|
|
89
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
|
-
|
|
81
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
82
|
+
resource ID and ensure it exists
|
|
91
83
|
|
|
92
84
|
### PERMISSION_DENIED
|
|
93
85
|
|
|
94
|
-
**Message:** Insufficient permissions
|
|
95
|
-
**Description:** The user does not have permission to perform this action
|
|
86
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
96
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
89
|
---
|
|
102
90
|
|
|
103
|
-
|
|
91
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,7 +6,7 @@ Retrieves the general settings for a WordPress site.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
_No parameters required._
|
|
10
10
|
|
|
11
11
|
## Examples
|
|
12
12
|
|
|
@@ -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
|
-
wp_get_site_settings
|
|
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`
|
|
@@ -75,34 +74,24 @@ This tool requires the following WordPress user capabilities:
|
|
|
75
74
|
|
|
76
75
|
### AUTHENTICATION_FAILED
|
|
77
76
|
|
|
78
|
-
**Message:** Authentication failed
|
|
79
|
-
|
|
80
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
81
|
-
|
|
77
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
78
|
+
Check your authentication credentials and user permissions
|
|
82
79
|
|
|
83
80
|
### VALIDATION_ERROR
|
|
84
81
|
|
|
85
|
-
**Message:** Parameter validation failed
|
|
86
|
-
**Description:** One or more required parameters are missing or invalid
|
|
82
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
87
83
|
**Resolution:** Review the required parameters and their formats
|
|
88
84
|
|
|
89
|
-
|
|
90
85
|
### NOT_FOUND
|
|
91
86
|
|
|
92
|
-
**Message:** Resource not found
|
|
93
|
-
|
|
94
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
95
|
-
|
|
87
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
88
|
+
resource ID and ensure it exists
|
|
96
89
|
|
|
97
90
|
### PERMISSION_DENIED
|
|
98
91
|
|
|
99
|
-
**Message:** Insufficient permissions
|
|
100
|
-
**Description:** The user does not have permission to perform this action
|
|
92
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
101
93
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
102
94
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
95
|
---
|
|
107
96
|
|
|
108
|
-
|
|
97
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,9 +6,9 @@ Retrieves a single tag by its ID.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ---------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The unique identifier for the tag. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -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`
|
|
@@ -70,34 +68,24 @@ wp_get_tag --id="123"
|
|
|
70
68
|
|
|
71
69
|
### AUTHENTICATION_FAILED
|
|
72
70
|
|
|
73
|
-
**Message:** Authentication failed
|
|
74
|
-
|
|
75
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
76
|
-
|
|
71
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
72
|
+
Check your authentication credentials and user permissions
|
|
77
73
|
|
|
78
74
|
### VALIDATION_ERROR
|
|
79
75
|
|
|
80
|
-
**Message:** Parameter validation failed
|
|
81
|
-
**Description:** One or more required parameters are missing or invalid
|
|
76
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
82
77
|
**Resolution:** Review the required parameters and their formats
|
|
83
78
|
|
|
84
|
-
|
|
85
79
|
### NOT_FOUND
|
|
86
80
|
|
|
87
|
-
**Message:** Resource not found
|
|
88
|
-
|
|
89
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
|
-
|
|
81
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
82
|
+
resource ID and ensure it exists
|
|
91
83
|
|
|
92
84
|
### PERMISSION_DENIED
|
|
93
85
|
|
|
94
|
-
**Message:** Insufficient permissions
|
|
95
|
-
**Description:** The user does not have permission to perform this action
|
|
86
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
96
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
89
|
---
|
|
102
90
|
|
|
103
|
-
|
|
91
|
+
_Generated automatically from tool definitions - Do not edit manually_
|
|
@@ -6,9 +6,9 @@ Retrieves a single user by their ID.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
| Parameter | Type
|
|
10
|
-
|
|
11
|
-
| `id`
|
|
9
|
+
| Parameter | Type | Required | Description | Default | Examples |
|
|
10
|
+
| --------- | -------- | -------- | ----------------------------------- | ------- | ------------ |
|
|
11
|
+
| `id` | `number` | ✅ | The unique identifier for the user. | - | `123`, `456` |
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
@@ -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`
|
|
@@ -70,34 +68,24 @@ wp_get_user --id="123"
|
|
|
70
68
|
|
|
71
69
|
### AUTHENTICATION_FAILED
|
|
72
70
|
|
|
73
|
-
**Message:** Authentication failed
|
|
74
|
-
|
|
75
|
-
**Resolution:** Check your authentication credentials and user permissions
|
|
76
|
-
|
|
71
|
+
**Message:** Authentication failed **Description:** Invalid credentials or insufficient permissions **Resolution:**
|
|
72
|
+
Check your authentication credentials and user permissions
|
|
77
73
|
|
|
78
74
|
### VALIDATION_ERROR
|
|
79
75
|
|
|
80
|
-
**Message:** Parameter validation failed
|
|
81
|
-
**Description:** One or more required parameters are missing or invalid
|
|
76
|
+
**Message:** Parameter validation failed **Description:** One or more required parameters are missing or invalid
|
|
82
77
|
**Resolution:** Review the required parameters and their formats
|
|
83
78
|
|
|
84
|
-
|
|
85
79
|
### NOT_FOUND
|
|
86
80
|
|
|
87
|
-
**Message:** Resource not found
|
|
88
|
-
|
|
89
|
-
**Resolution:** Verify the resource ID and ensure it exists
|
|
90
|
-
|
|
81
|
+
**Message:** Resource not found **Description:** The requested resource does not exist **Resolution:** Verify the
|
|
82
|
+
resource ID and ensure it exists
|
|
91
83
|
|
|
92
84
|
### PERMISSION_DENIED
|
|
93
85
|
|
|
94
|
-
**Message:** Insufficient permissions
|
|
95
|
-
**Description:** The user does not have permission to perform this action
|
|
86
|
+
**Message:** Insufficient permissions **Description:** The user does not have permission to perform this action
|
|
96
87
|
**Resolution:** Contact an administrator to grant the necessary permissions
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
89
|
---
|
|
102
90
|
|
|
103
|
-
|
|
91
|
+
_Generated automatically from tool definitions - Do not edit manually_
|