mcp-wordpress 1.1.7 → 1.2.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.
Files changed (255) hide show
  1. package/README.md +388 -66
  2. package/dist/cache/CacheInvalidation.d.ts +118 -0
  3. package/dist/cache/CacheInvalidation.d.ts.map +1 -0
  4. package/dist/cache/CacheInvalidation.js +349 -0
  5. package/dist/cache/CacheInvalidation.js.map +1 -0
  6. package/dist/cache/CacheManager.d.ts +143 -0
  7. package/dist/cache/CacheManager.d.ts.map +1 -0
  8. package/dist/cache/CacheManager.js +308 -0
  9. package/dist/cache/CacheManager.js.map +1 -0
  10. package/dist/cache/HttpCacheWrapper.d.ts +121 -0
  11. package/dist/cache/HttpCacheWrapper.d.ts.map +1 -0
  12. package/dist/cache/HttpCacheWrapper.js +280 -0
  13. package/dist/cache/HttpCacheWrapper.js.map +1 -0
  14. package/dist/cache/__tests__/CacheInvalidation.test.d.ts +5 -0
  15. package/dist/cache/__tests__/CacheInvalidation.test.d.ts.map +1 -0
  16. package/dist/cache/__tests__/CacheInvalidation.test.js +236 -0
  17. package/dist/cache/__tests__/CacheInvalidation.test.js.map +1 -0
  18. package/dist/cache/__tests__/CacheManager.test.d.ts +5 -0
  19. package/dist/cache/__tests__/CacheManager.test.d.ts.map +1 -0
  20. package/dist/cache/__tests__/CacheManager.test.js +233 -0
  21. package/dist/cache/__tests__/CacheManager.test.js.map +1 -0
  22. package/dist/cache/__tests__/CachedWordPressClient.test.d.ts +5 -0
  23. package/dist/cache/__tests__/CachedWordPressClient.test.d.ts.map +1 -0
  24. package/dist/cache/__tests__/CachedWordPressClient.test.js +228 -0
  25. package/dist/cache/__tests__/CachedWordPressClient.test.js.map +1 -0
  26. package/dist/cache/__tests__/HttpCacheWrapper.test.d.ts +5 -0
  27. package/dist/cache/__tests__/HttpCacheWrapper.test.d.ts.map +1 -0
  28. package/dist/cache/__tests__/HttpCacheWrapper.test.js +296 -0
  29. package/dist/cache/__tests__/HttpCacheWrapper.test.js.map +1 -0
  30. package/dist/cache/index.d.ts +12 -0
  31. package/dist/cache/index.d.ts.map +1 -0
  32. package/dist/cache/index.js +9 -0
  33. package/dist/cache/index.js.map +1 -0
  34. package/dist/client/CachedWordPressClient.d.ts +160 -0
  35. package/dist/client/CachedWordPressClient.d.ts.map +1 -0
  36. package/dist/client/CachedWordPressClient.js +338 -0
  37. package/dist/client/CachedWordPressClient.js.map +1 -0
  38. package/dist/client/WordPressClient.d.ts +81 -0
  39. package/dist/client/WordPressClient.d.ts.map +1 -0
  40. package/dist/client/WordPressClient.js +354 -0
  41. package/dist/client/WordPressClient.js.map +1 -0
  42. package/dist/config/ConfigurationSchema.d.ts +281 -0
  43. package/dist/config/ConfigurationSchema.d.ts.map +1 -0
  44. package/dist/config/ConfigurationSchema.js +205 -0
  45. package/dist/config/ConfigurationSchema.js.map +1 -0
  46. package/dist/config/ServerConfiguration.d.ts +38 -0
  47. package/dist/config/ServerConfiguration.d.ts.map +1 -0
  48. package/dist/config/ServerConfiguration.js +158 -0
  49. package/dist/config/ServerConfiguration.js.map +1 -0
  50. package/dist/docs/DocumentationGenerator.d.ts +184 -0
  51. package/dist/docs/DocumentationGenerator.d.ts.map +1 -0
  52. package/dist/docs/DocumentationGenerator.js +735 -0
  53. package/dist/docs/DocumentationGenerator.js.map +1 -0
  54. package/dist/docs/MarkdownFormatter.d.ts +84 -0
  55. package/dist/docs/MarkdownFormatter.d.ts.map +1 -0
  56. package/dist/docs/MarkdownFormatter.js +448 -0
  57. package/dist/docs/MarkdownFormatter.js.map +1 -0
  58. package/dist/docs/index.d.ts +8 -0
  59. package/dist/docs/index.d.ts.map +1 -0
  60. package/dist/docs/index.js +7 -0
  61. package/dist/docs/index.js.map +1 -0
  62. package/dist/index.d.ts +1 -4
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +12 -212
  65. package/dist/index.js.map +1 -1
  66. package/dist/performance/AnomalyDetector.d.ts +63 -0
  67. package/dist/performance/AnomalyDetector.d.ts.map +1 -0
  68. package/dist/performance/AnomalyDetector.js +222 -0
  69. package/dist/performance/AnomalyDetector.js.map +1 -0
  70. package/dist/performance/BenchmarkAnalyzer.d.ts +67 -0
  71. package/dist/performance/BenchmarkAnalyzer.d.ts.map +1 -0
  72. package/dist/performance/BenchmarkAnalyzer.js +301 -0
  73. package/dist/performance/BenchmarkAnalyzer.js.map +1 -0
  74. package/dist/performance/MetricsCollector.d.ts +139 -0
  75. package/dist/performance/MetricsCollector.d.ts.map +1 -0
  76. package/dist/performance/MetricsCollector.js +320 -0
  77. package/dist/performance/MetricsCollector.js.map +1 -0
  78. package/dist/performance/PerformanceAnalytics.d.ts +162 -0
  79. package/dist/performance/PerformanceAnalytics.d.ts.map +1 -0
  80. package/dist/performance/PerformanceAnalytics.js +554 -0
  81. package/dist/performance/PerformanceAnalytics.js.map +1 -0
  82. package/dist/performance/PerformanceMonitor.d.ts +202 -0
  83. package/dist/performance/PerformanceMonitor.d.ts.map +1 -0
  84. package/dist/performance/PerformanceMonitor.js +478 -0
  85. package/dist/performance/PerformanceMonitor.js.map +1 -0
  86. package/dist/performance/TrendAnalyzer.d.ts +69 -0
  87. package/dist/performance/TrendAnalyzer.d.ts.map +1 -0
  88. package/dist/performance/TrendAnalyzer.js +203 -0
  89. package/dist/performance/TrendAnalyzer.js.map +1 -0
  90. package/dist/performance/index.d.ts +11 -0
  91. package/dist/performance/index.d.ts.map +1 -0
  92. package/dist/performance/index.js +8 -0
  93. package/dist/performance/index.js.map +1 -0
  94. package/dist/security/InputValidator.d.ts +215 -0
  95. package/dist/security/InputValidator.d.ts.map +1 -0
  96. package/dist/security/InputValidator.js +278 -0
  97. package/dist/security/InputValidator.js.map +1 -0
  98. package/dist/security/SecurityConfig.d.ts +129 -0
  99. package/dist/security/SecurityConfig.d.ts.map +1 -0
  100. package/dist/security/SecurityConfig.js +262 -0
  101. package/dist/security/SecurityConfig.js.map +1 -0
  102. package/dist/server/ConnectionTester.d.ts +24 -0
  103. package/dist/server/ConnectionTester.d.ts.map +1 -0
  104. package/dist/server/ConnectionTester.js +61 -0
  105. package/dist/server/ConnectionTester.js.map +1 -0
  106. package/dist/server/ToolRegistry.d.ts +46 -0
  107. package/dist/server/ToolRegistry.d.ts.map +1 -0
  108. package/dist/server/ToolRegistry.js +148 -0
  109. package/dist/server/ToolRegistry.js.map +1 -0
  110. package/dist/tools/BaseToolClass.d.ts +76 -0
  111. package/dist/tools/BaseToolClass.d.ts.map +1 -0
  112. package/dist/tools/BaseToolClass.js +104 -0
  113. package/dist/tools/BaseToolClass.js.map +1 -0
  114. package/dist/tools/BaseToolManager.d.ts +26 -0
  115. package/dist/tools/BaseToolManager.d.ts.map +1 -0
  116. package/dist/tools/BaseToolManager.js +56 -0
  117. package/dist/tools/BaseToolManager.js.map +1 -0
  118. package/dist/tools/base.d.ts +37 -0
  119. package/dist/tools/base.d.ts.map +1 -0
  120. package/dist/tools/base.js +60 -0
  121. package/dist/tools/base.js.map +1 -0
  122. package/dist/tools/cache.d.ts +260 -0
  123. package/dist/tools/cache.d.ts.map +1 -0
  124. package/dist/tools/cache.js +237 -0
  125. package/dist/tools/cache.js.map +1 -0
  126. package/dist/tools/index.d.ts +2 -0
  127. package/dist/tools/index.d.ts.map +1 -1
  128. package/dist/tools/index.js +2 -0
  129. package/dist/tools/index.js.map +1 -1
  130. package/dist/tools/performance.d.ts +63 -0
  131. package/dist/tools/performance.d.ts.map +1 -0
  132. package/dist/tools/performance.js +865 -0
  133. package/dist/tools/performance.js.map +1 -0
  134. package/dist/types/client.d.ts +1 -0
  135. package/dist/types/client.d.ts.map +1 -1
  136. package/dist/types/client.js.map +1 -1
  137. package/dist/utils/toolWrapper.d.ts +4 -0
  138. package/dist/utils/toolWrapper.d.ts.map +1 -1
  139. package/dist/utils/toolWrapper.js +11 -0
  140. package/dist/utils/toolWrapper.js.map +1 -1
  141. package/dist/utils/validation.d.ts +68 -0
  142. package/dist/utils/validation.d.ts.map +1 -0
  143. package/dist/utils/validation.js +185 -0
  144. package/dist/utils/validation.js.map +1 -0
  145. package/docs/CACHING.md +340 -0
  146. package/docs/DOCKER.md +451 -0
  147. package/docs/PERFORMANCE_MONITORING.md +471 -0
  148. package/docs/SECURITY_TESTING.md +393 -0
  149. package/docs/api/README.md +200 -0
  150. package/docs/api/categories/auth.md +40 -0
  151. package/docs/api/categories/cache.md +41 -0
  152. package/docs/api/categories/comment.md +44 -0
  153. package/docs/api/categories/media.md +43 -0
  154. package/docs/api/categories/page.md +43 -0
  155. package/docs/api/categories/performance.md +44 -0
  156. package/docs/api/categories/post.md +43 -0
  157. package/docs/api/categories/site.md +43 -0
  158. package/docs/api/categories/taxonomy.md +47 -0
  159. package/docs/api/categories/user.md +43 -0
  160. package/docs/api/openapi.json +3305 -0
  161. package/docs/api/summary.json +12 -0
  162. package/docs/api/tools/wp_approve_comment.md +98 -0
  163. package/docs/api/tools/wp_cache_clear.md +120 -0
  164. package/docs/api/tools/wp_cache_info.md +119 -0
  165. package/docs/api/tools/wp_cache_stats.md +119 -0
  166. package/docs/api/tools/wp_cache_warm.md +119 -0
  167. package/docs/api/tools/wp_create_application_password.md +102 -0
  168. package/docs/api/tools/wp_create_category.md +102 -0
  169. package/docs/api/tools/wp_create_comment.md +128 -0
  170. package/docs/api/tools/wp_create_page.md +135 -0
  171. package/docs/api/tools/wp_create_post.md +147 -0
  172. package/docs/api/tools/wp_create_tag.md +101 -0
  173. package/docs/api/tools/wp_create_user.md +135 -0
  174. package/docs/api/tools/wp_delete_application_password.md +101 -0
  175. package/docs/api/tools/wp_delete_category.md +100 -0
  176. package/docs/api/tools/wp_delete_comment.md +101 -0
  177. package/docs/api/tools/wp_delete_media.md +108 -0
  178. package/docs/api/tools/wp_delete_page.md +108 -0
  179. package/docs/api/tools/wp_delete_post.md +117 -0
  180. package/docs/api/tools/wp_delete_tag.md +100 -0
  181. package/docs/api/tools/wp_delete_user.md +108 -0
  182. package/docs/api/tools/wp_get_application_passwords.md +103 -0
  183. package/docs/api/tools/wp_get_auth_status.md +101 -0
  184. package/docs/api/tools/wp_get_category.md +103 -0
  185. package/docs/api/tools/wp_get_comment.md +103 -0
  186. package/docs/api/tools/wp_get_current_user.md +101 -0
  187. package/docs/api/tools/wp_get_media.md +103 -0
  188. package/docs/api/tools/wp_get_page.md +103 -0
  189. package/docs/api/tools/wp_get_page_revisions.md +103 -0
  190. package/docs/api/tools/wp_get_post.md +112 -0
  191. package/docs/api/tools/wp_get_post_revisions.md +103 -0
  192. package/docs/api/tools/wp_get_site_settings.md +108 -0
  193. package/docs/api/tools/wp_get_tag.md +103 -0
  194. package/docs/api/tools/wp_get_user.md +103 -0
  195. package/docs/api/tools/wp_list_categories.md +111 -0
  196. package/docs/api/tools/wp_list_comments.md +111 -0
  197. package/docs/api/tools/wp_list_media.md +145 -0
  198. package/docs/api/tools/wp_list_pages.md +145 -0
  199. package/docs/api/tools/wp_list_posts.md +156 -0
  200. package/docs/api/tools/wp_list_tags.md +110 -0
  201. package/docs/api/tools/wp_list_users.md +111 -0
  202. package/docs/api/tools/wp_performance_alerts.md +162 -0
  203. package/docs/api/tools/wp_performance_benchmark.md +160 -0
  204. package/docs/api/tools/wp_performance_export.md +162 -0
  205. package/docs/api/tools/wp_performance_history.md +161 -0
  206. package/docs/api/tools/wp_performance_optimize.md +162 -0
  207. package/docs/api/tools/wp_performance_stats.md +160 -0
  208. package/docs/api/tools/wp_search_site.md +99 -0
  209. package/docs/api/tools/wp_spam_comment.md +98 -0
  210. package/docs/api/tools/wp_switch_auth_method.md +122 -0
  211. package/docs/api/tools/wp_test_auth.md +96 -0
  212. package/docs/api/tools/wp_update_category.md +102 -0
  213. package/docs/api/tools/wp_update_comment.md +127 -0
  214. package/docs/api/tools/wp_update_media.md +129 -0
  215. package/docs/api/tools/wp_update_page.md +135 -0
  216. package/docs/api/tools/wp_update_post.md +144 -0
  217. package/docs/api/tools/wp_update_site_settings.md +127 -0
  218. package/docs/api/tools/wp_update_tag.md +102 -0
  219. package/docs/api/tools/wp_update_user.md +134 -0
  220. package/docs/api/tools/wp_upload_media.md +131 -0
  221. package/docs/api/types/WordPressPost.md +39 -0
  222. package/docs/contract-testing.md +183 -0
  223. package/docs/developer/NPM_AUTH_SETUP.md +3 -3
  224. package/docs/wordpress-rest-api-authentication-troubleshooting.md +218 -0
  225. package/package.json +84 -64
  226. package/src/cache/CacheInvalidation.ts +421 -0
  227. package/src/cache/CacheManager.ts +391 -0
  228. package/src/cache/HttpCacheWrapper.ts +372 -0
  229. package/src/cache/__tests__/CacheInvalidation.test.ts +299 -0
  230. package/src/cache/__tests__/CacheManager.test.ts +300 -0
  231. package/src/cache/__tests__/CachedWordPressClient.test.ts +304 -0
  232. package/src/cache/__tests__/HttpCacheWrapper.test.ts +359 -0
  233. package/src/cache/index.ts +26 -0
  234. package/src/client/CachedWordPressClient.ts +442 -0
  235. package/src/config/ConfigurationSchema.ts +246 -0
  236. package/src/config/ServerConfiguration.ts +215 -0
  237. package/src/docs/DocumentationGenerator.ts +952 -0
  238. package/src/docs/MarkdownFormatter.ts +494 -0
  239. package/src/docs/index.ts +21 -0
  240. package/src/index.ts +14 -274
  241. package/src/performance/MetricsCollector.ts +447 -0
  242. package/src/performance/PerformanceAnalytics.ts +762 -0
  243. package/src/performance/PerformanceMonitor.ts +649 -0
  244. package/src/performance/index.ts +28 -0
  245. package/src/security/InputValidator.ts +319 -0
  246. package/src/security/SecurityConfig.ts +301 -0
  247. package/src/server/ConnectionTester.ts +74 -0
  248. package/src/server/ToolRegistry.ts +194 -0
  249. package/src/tools/BaseToolManager.ts +66 -0
  250. package/src/tools/cache.ts +259 -0
  251. package/src/tools/index.ts +2 -0
  252. package/src/tools/performance.ts +948 -0
  253. package/src/types/client.ts +1 -0
  254. package/src/utils/toolWrapper.ts +11 -0
  255. package/src/utils/validation.ts +259 -0
@@ -0,0 +1,144 @@
1
+ # wp_update_post
2
+
3
+ ![post](https://img.shields.io/badge/category-post-lightgrey)
4
+
5
+ Updates an existing post.
6
+
7
+ ## Parameters
8
+
9
+ | Parameter | Type | Required | Description | Default | Examples |
10
+ |-----------|------|----------|-------------|---------|----------|
11
+ | `id` | `number` | ✅ | The ID of the post to update. | - | `123`, `456` |
12
+ | `title` | `string` | ❌ | The new title for the post. | - | `My Blog Post`, `Hello World` |
13
+ | `content` | `string` | ❌ | The new content for the post, in HTML format. | - | `<p>Post content here</p>`, `This is my post content` |
14
+ | `status` | `string` | ❌ | The new status for the post. | `publish` | `example` |
15
+
16
+ ## Examples
17
+
18
+ ### Basic post Usage
19
+
20
+ Simple example of using wp_update_post
21
+
22
+ **Command:**
23
+ ```bash
24
+ wp_update_post --id="123"
25
+ ```
26
+
27
+ **Response:**
28
+ ```json
29
+ {
30
+ "success": true,
31
+ "data": {
32
+ "id": 123,
33
+ "title": "Created/Updated successfully",
34
+ "status": "publish"
35
+ }
36
+ }
37
+ ```
38
+
39
+ **Error Example (Authentication failure):**
40
+ ```json
41
+ {
42
+ "error": "Authentication failed",
43
+ "message": "Invalid credentials or insufficient permissions"
44
+ }
45
+ ```
46
+
47
+
48
+ ### Advanced post Configuration
49
+
50
+ Comprehensive example using all available parameters
51
+
52
+ **Command:**
53
+ ```bash
54
+ wp_update_post --id="123" --title="Example Post Title" --content="This is example content for the post." --status="publish"
55
+ ```
56
+
57
+ **Response:**
58
+ ```json
59
+ {
60
+ "success": true,
61
+ "data": {
62
+ "id": 123,
63
+ "title": "Created/Updated successfully",
64
+ "status": "publish"
65
+ }
66
+ }
67
+ ```
68
+
69
+
70
+
71
+
72
+ ## WordPress REST API Mapping
73
+
74
+ **Endpoint:** `/wp-json/wp/v2/posts/{id}`
75
+
76
+ 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
+ ### WordPress Documentation
79
+ - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
80
+ - [Endpoint Reference](https://developer.wordpress.org/rest-api/reference/)
81
+
82
+
83
+ ## Required Permissions
84
+
85
+ This tool requires the following WordPress user capabilities:
86
+
87
+ - `edit_posts`
88
+
89
+ **Note:** The authenticated user must have these capabilities to successfully execute this tool.
90
+
91
+
92
+ ## Response Format
93
+
94
+ **Return Type:** `post`
95
+
96
+ ```json
97
+ {
98
+ "success": true,
99
+ "data": {
100
+ // post response data
101
+ },
102
+ "metadata": {
103
+ "timestamp": "2024-01-01T00:00:00.000Z",
104
+ "tool": "wp_update_post",
105
+ "site": "site1"
106
+ }
107
+ }
108
+ ```
109
+
110
+ ## Error Handling
111
+
112
+ ### AUTHENTICATION_FAILED
113
+
114
+ **Message:** Authentication failed
115
+ **Description:** Invalid credentials or insufficient permissions
116
+ **Resolution:** Check your authentication credentials and user permissions
117
+
118
+
119
+ ### VALIDATION_ERROR
120
+
121
+ **Message:** Parameter validation failed
122
+ **Description:** One or more required parameters are missing or invalid
123
+ **Resolution:** Review the required parameters and their formats
124
+
125
+
126
+ ### NOT_FOUND
127
+
128
+ **Message:** Resource not found
129
+ **Description:** The requested resource does not exist
130
+ **Resolution:** Verify the resource ID and ensure it exists
131
+
132
+
133
+ ### PERMISSION_DENIED
134
+
135
+ **Message:** Insufficient permissions
136
+ **Description:** The user does not have permission to perform this action
137
+ **Resolution:** Contact an administrator to grant the necessary permissions
138
+
139
+
140
+
141
+
142
+ ---
143
+
144
+ *Generated automatically from tool definitions - Do not edit manually*
@@ -0,0 +1,127 @@
1
+ # wp_update_site_settings
2
+
3
+ ![site](https://img.shields.io/badge/category-site-lightblue)
4
+
5
+ Updates one or more general settings for a WordPress site.
6
+
7
+ ## Parameters
8
+
9
+ | Parameter | Type | Required | Description | Default | Examples |
10
+ |-----------|------|----------|-------------|---------|----------|
11
+ | `title` | `string` | ❌ | The title of the site. | - | `My Blog Post`, `Hello World` |
12
+ | `description` | `string` | ❌ | The tagline or description of the site. | - | `example` |
13
+ | `timezone` | `string` | ❌ | A city in the same timezone, e.g., 'America/New_York'. | - | `example` |
14
+
15
+ ## Examples
16
+
17
+ ### Basic site Usage
18
+
19
+ Simple example of using wp_update_site_settings
20
+
21
+ **Command:**
22
+ ```bash
23
+ wp_update_site_settings
24
+ ```
25
+
26
+ **Response:**
27
+ ```json
28
+ {
29
+ "success": true,
30
+ "data": {
31
+ "id": 123,
32
+ "title": "Created/Updated successfully",
33
+ "status": "publish"
34
+ }
35
+ }
36
+ ```
37
+
38
+ **Error Example (Authentication failure):**
39
+ ```json
40
+ {
41
+ "error": "Authentication failed",
42
+ "message": "Invalid credentials or insufficient permissions"
43
+ }
44
+ ```
45
+
46
+
47
+ ### Advanced site Configuration
48
+
49
+ Comprehensive example using all available parameters
50
+
51
+ **Command:**
52
+ ```bash
53
+ wp_update_site_settings --title="Example Post Title" --description="example_value" --timezone="example_value"
54
+ ```
55
+
56
+ **Response:**
57
+ ```json
58
+ {
59
+ "success": true,
60
+ "data": {
61
+ "id": 123,
62
+ "title": "Created/Updated successfully",
63
+ "status": "publish"
64
+ }
65
+ }
66
+ ```
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+ ## Response Format
76
+
77
+ **Return Type:** `site`
78
+
79
+ ```json
80
+ {
81
+ "success": true,
82
+ "data": {
83
+ // site response data
84
+ },
85
+ "metadata": {
86
+ "timestamp": "2024-01-01T00:00:00.000Z",
87
+ "tool": "wp_update_site_settings",
88
+ "site": "site1"
89
+ }
90
+ }
91
+ ```
92
+
93
+ ## Error Handling
94
+
95
+ ### AUTHENTICATION_FAILED
96
+
97
+ **Message:** Authentication failed
98
+ **Description:** Invalid credentials or insufficient permissions
99
+ **Resolution:** Check your authentication credentials and user permissions
100
+
101
+
102
+ ### VALIDATION_ERROR
103
+
104
+ **Message:** Parameter validation failed
105
+ **Description:** One or more required parameters are missing or invalid
106
+ **Resolution:** Review the required parameters and their formats
107
+
108
+
109
+ ### NOT_FOUND
110
+
111
+ **Message:** Resource not found
112
+ **Description:** The requested resource does not exist
113
+ **Resolution:** Verify the resource ID and ensure it exists
114
+
115
+
116
+ ### PERMISSION_DENIED
117
+
118
+ **Message:** Insufficient permissions
119
+ **Description:** The user does not have permission to perform this action
120
+ **Resolution:** Contact an administrator to grant the necessary permissions
121
+
122
+
123
+
124
+
125
+ ---
126
+
127
+ *Generated automatically from tool definitions - Do not edit manually*
@@ -0,0 +1,102 @@
1
+ # wp_update_tag
2
+
3
+ ![taxonomy](https://img.shields.io/badge/category-taxonomy-lightgrey)
4
+
5
+ Updates an existing tag.
6
+
7
+ ## Parameters
8
+
9
+ | Parameter | Type | Required | Description | Default | Examples |
10
+ |-----------|------|----------|-------------|---------|----------|
11
+ | `id` | `number` | ✅ | The ID of the tag to update. | - | `123`, `456` |
12
+ | `name` | `string` | ❌ | The new name for the tag. | - | `example` |
13
+
14
+ ## Examples
15
+
16
+ ### Basic taxonomy Usage
17
+
18
+ Simple example of using wp_update_tag
19
+
20
+ **Command:**
21
+ ```bash
22
+ wp_update_tag --id="123"
23
+ ```
24
+
25
+ **Response:**
26
+ ```json
27
+ {
28
+ "success": true,
29
+ "data": {
30
+ "id": 123,
31
+ "title": "Created/Updated successfully",
32
+ "status": "publish"
33
+ }
34
+ }
35
+ ```
36
+
37
+ **Error Example (Authentication failure):**
38
+ ```json
39
+ {
40
+ "error": "Authentication failed",
41
+ "message": "Invalid credentials or insufficient permissions"
42
+ }
43
+ ```
44
+
45
+
46
+
47
+
48
+
49
+
50
+ ## Response Format
51
+
52
+ **Return Type:** `taxonomy`
53
+
54
+ ```json
55
+ {
56
+ "success": true,
57
+ "data": {
58
+ // taxonomy response data
59
+ },
60
+ "metadata": {
61
+ "timestamp": "2024-01-01T00:00:00.000Z",
62
+ "tool": "wp_update_tag",
63
+ "site": "site1"
64
+ }
65
+ }
66
+ ```
67
+
68
+ ## Error Handling
69
+
70
+ ### AUTHENTICATION_FAILED
71
+
72
+ **Message:** Authentication failed
73
+ **Description:** Invalid credentials or insufficient permissions
74
+ **Resolution:** Check your authentication credentials and user permissions
75
+
76
+
77
+ ### VALIDATION_ERROR
78
+
79
+ **Message:** Parameter validation failed
80
+ **Description:** One or more required parameters are missing or invalid
81
+ **Resolution:** Review the required parameters and their formats
82
+
83
+
84
+ ### NOT_FOUND
85
+
86
+ **Message:** Resource not found
87
+ **Description:** The requested resource does not exist
88
+ **Resolution:** Verify the resource ID and ensure it exists
89
+
90
+
91
+ ### PERMISSION_DENIED
92
+
93
+ **Message:** Insufficient permissions
94
+ **Description:** The user does not have permission to perform this action
95
+ **Resolution:** Contact an administrator to grant the necessary permissions
96
+
97
+
98
+
99
+
100
+ ---
101
+
102
+ *Generated automatically from tool definitions - Do not edit manually*
@@ -0,0 +1,134 @@
1
+ # wp_update_user
2
+
3
+ ![user](https://img.shields.io/badge/category-user-lightgrey)
4
+
5
+ Updates an existing user.
6
+
7
+ ## Parameters
8
+
9
+ | Parameter | Type | Required | Description | Default | Examples |
10
+ |-----------|------|----------|-------------|---------|----------|
11
+ | `id` | `number` | ✅ | The ID of the user to update. | - | `123`, `456` |
12
+ | `email` | `string` | ❌ | The new email address for the user. | - | `user@example.com`, `admin@site.com` |
13
+ | `name` | `string` | ❌ | The new display name for the user. | - | `example` |
14
+
15
+ ## Examples
16
+
17
+ ### Basic user Usage
18
+
19
+ Simple example of using wp_update_user
20
+
21
+ **Command:**
22
+ ```bash
23
+ wp_update_user --id="123"
24
+ ```
25
+
26
+ **Response:**
27
+ ```json
28
+ {
29
+ "success": true,
30
+ "data": {
31
+ "id": 123,
32
+ "title": "Created/Updated successfully",
33
+ "status": "publish"
34
+ }
35
+ }
36
+ ```
37
+
38
+ **Error Example (Authentication failure):**
39
+ ```json
40
+ {
41
+ "error": "Authentication failed",
42
+ "message": "Invalid credentials or insufficient permissions"
43
+ }
44
+ ```
45
+
46
+
47
+ ### Advanced user Configuration
48
+
49
+ Comprehensive example using all available parameters
50
+
51
+ **Command:**
52
+ ```bash
53
+ wp_update_user --id="123" --email="user@example.com" --name="example_value"
54
+ ```
55
+
56
+ **Response:**
57
+ ```json
58
+ {
59
+ "success": true,
60
+ "data": {
61
+ "id": 123,
62
+ "title": "Created/Updated successfully",
63
+ "status": "publish"
64
+ }
65
+ }
66
+ ```
67
+
68
+
69
+
70
+
71
+
72
+
73
+ ## Required Permissions
74
+
75
+ This tool requires the following WordPress user capabilities:
76
+
77
+ - `edit_users`
78
+
79
+ **Note:** The authenticated user must have these capabilities to successfully execute this tool.
80
+
81
+
82
+ ## Response Format
83
+
84
+ **Return Type:** `user`
85
+
86
+ ```json
87
+ {
88
+ "success": true,
89
+ "data": {
90
+ // user response data
91
+ },
92
+ "metadata": {
93
+ "timestamp": "2024-01-01T00:00:00.000Z",
94
+ "tool": "wp_update_user",
95
+ "site": "site1"
96
+ }
97
+ }
98
+ ```
99
+
100
+ ## Error Handling
101
+
102
+ ### AUTHENTICATION_FAILED
103
+
104
+ **Message:** Authentication failed
105
+ **Description:** Invalid credentials or insufficient permissions
106
+ **Resolution:** Check your authentication credentials and user permissions
107
+
108
+
109
+ ### VALIDATION_ERROR
110
+
111
+ **Message:** Parameter validation failed
112
+ **Description:** One or more required parameters are missing or invalid
113
+ **Resolution:** Review the required parameters and their formats
114
+
115
+
116
+ ### NOT_FOUND
117
+
118
+ **Message:** Resource not found
119
+ **Description:** The requested resource does not exist
120
+ **Resolution:** Verify the resource ID and ensure it exists
121
+
122
+
123
+ ### PERMISSION_DENIED
124
+
125
+ **Message:** Insufficient permissions
126
+ **Description:** The user does not have permission to perform this action
127
+ **Resolution:** Contact an administrator to grant the necessary permissions
128
+
129
+
130
+
131
+
132
+ ---
133
+
134
+ *Generated automatically from tool definitions - Do not edit manually*
@@ -0,0 +1,131 @@
1
+ # wp_upload_media
2
+
3
+ ![media](https://img.shields.io/badge/category-media-purple)
4
+
5
+ Uploads a file to the WordPress media library.
6
+
7
+ ## Parameters
8
+
9
+ | Parameter | Type | Required | Description | Default | Examples |
10
+ |-----------|------|----------|-------------|---------|----------|
11
+ | `file_path` | `string` | ✅ | The local, absolute path to the file to upload. | - | `example` |
12
+ | `title` | `string` | ❌ | The title for the media item. | - | `My Blog Post`, `Hello World` |
13
+ | `alt_text` | `string` | ❌ | Alternative text for the media item (for accessibility). | - | `example` |
14
+ | `caption` | `string` | ❌ | The caption for the media item. | - | `example` |
15
+ | `description` | `string` | ❌ | The description for the media item. | - | `example` |
16
+ | `post` | `number` | ❌ | The ID of a post to attach this media to. | - | `example` |
17
+
18
+ ## Examples
19
+
20
+ ### Basic media Usage
21
+
22
+ Simple example of using wp_upload_media
23
+
24
+ **Command:**
25
+ ```bash
26
+ wp_upload_media --file_path="example_value"
27
+ ```
28
+
29
+ **Response:**
30
+ ```json
31
+ {
32
+ "success": true,
33
+ "data": {},
34
+ "message": "wp_upload_media executed successfully"
35
+ }
36
+ ```
37
+
38
+ **Error Example (Authentication failure):**
39
+ ```json
40
+ {
41
+ "error": "Authentication failed",
42
+ "message": "Invalid credentials or insufficient permissions"
43
+ }
44
+ ```
45
+
46
+
47
+ ### Advanced media Configuration
48
+
49
+ Comprehensive example using all available parameters
50
+
51
+ **Command:**
52
+ ```bash
53
+ wp_upload_media --file_path="example_value" --title="Example Post Title" --alt_text="example_value" --caption="example_value" --description="example_value" --post="example_value"
54
+ ```
55
+
56
+ **Response:**
57
+ ```json
58
+ {
59
+ "success": true,
60
+ "data": {},
61
+ "message": "wp_upload_media executed successfully"
62
+ }
63
+ ```
64
+
65
+
66
+
67
+
68
+
69
+
70
+ ## Required Permissions
71
+
72
+ This tool requires the following WordPress user capabilities:
73
+
74
+ - `upload_files`
75
+
76
+ **Note:** The authenticated user must have these capabilities to successfully execute this tool.
77
+
78
+
79
+ ## Response Format
80
+
81
+ **Return Type:** `object`
82
+
83
+ ```json
84
+ {
85
+ "success": true,
86
+ "data": {
87
+ // object response data
88
+ },
89
+ "metadata": {
90
+ "timestamp": "2024-01-01T00:00:00.000Z",
91
+ "tool": "wp_upload_media",
92
+ "site": "site1"
93
+ }
94
+ }
95
+ ```
96
+
97
+ ## Error Handling
98
+
99
+ ### AUTHENTICATION_FAILED
100
+
101
+ **Message:** Authentication failed
102
+ **Description:** Invalid credentials or insufficient permissions
103
+ **Resolution:** Check your authentication credentials and user permissions
104
+
105
+
106
+ ### VALIDATION_ERROR
107
+
108
+ **Message:** Parameter validation failed
109
+ **Description:** One or more required parameters are missing or invalid
110
+ **Resolution:** Review the required parameters and their formats
111
+
112
+
113
+ ### NOT_FOUND
114
+
115
+ **Message:** Resource not found
116
+ **Description:** The requested resource does not exist
117
+ **Resolution:** Verify the resource ID and ensure it exists
118
+
119
+
120
+ ### PERMISSION_DENIED
121
+
122
+ **Message:** Insufficient permissions
123
+ **Description:** The user does not have permission to perform this action
124
+ **Resolution:** Contact an administrator to grant the necessary permissions
125
+
126
+
127
+
128
+
129
+ ---
130
+
131
+ *Generated automatically from tool definitions - Do not edit manually*
@@ -0,0 +1,39 @@
1
+ # WordPressPost
2
+
3
+ WordPress blog post object
4
+
5
+ **WordPress Source:** `/wp-json/wp/v2/posts`
6
+
7
+ ## Properties
8
+
9
+ | Property | Type | Required | Description |
10
+ |----------|------|----------|-------------|
11
+ | `id` | `number` | ✅ | Unique identifier |
12
+ | `title` | `string` | ✅ | Post title |
13
+ | `content` | `string` | ✅ | Post content |
14
+ | `status` | `string` | ✅ | Publication status |
15
+
16
+ ## Example
17
+
18
+ ```json
19
+ {
20
+ "id": 123,
21
+ "title": "Welcome to WordPress",
22
+ "content": "<p>This is your first post. Edit or delete it to get started!</p>",
23
+ "status": "publish",
24
+ "date": "2024-01-01T00:00:00Z",
25
+ "author": 1,
26
+ "categories": [
27
+ 1
28
+ ],
29
+ "tags": [
30
+ 1,
31
+ 2
32
+ ],
33
+ "featured_media": 0,
34
+ "excerpt": "A sample WordPress post",
35
+ "slug": "welcome-to-wordpress"
36
+ }
37
+ ```
38
+
39
+