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.
Files changed (190) hide show
  1. package/README.md +332 -61
  2. package/dist/cache/CacheInvalidation.d.ts.map +1 -1
  3. package/dist/cache/CacheInvalidation.js +4 -4
  4. package/dist/cache/CacheInvalidation.js.map +1 -1
  5. package/dist/client/MockWordPressClient.d.ts +55 -0
  6. package/dist/client/MockWordPressClient.d.ts.map +1 -0
  7. package/dist/client/MockWordPressClient.js +369 -0
  8. package/dist/client/MockWordPressClient.js.map +1 -0
  9. package/dist/client/api.d.ts +1 -0
  10. package/dist/client/api.d.ts.map +1 -1
  11. package/dist/client/api.js +26 -60
  12. package/dist/client/api.js.map +1 -1
  13. package/dist/client/managers/AuthenticationManager.d.ts.map +1 -1
  14. package/dist/client/managers/AuthenticationManager.js +4 -3
  15. package/dist/client/managers/AuthenticationManager.js.map +1 -1
  16. package/dist/config/ConfigurationSchema.d.ts +3 -3
  17. package/dist/config/ConfigurationSchema.d.ts.map +1 -1
  18. package/dist/config/ConfigurationSchema.js +7 -24
  19. package/dist/config/ConfigurationSchema.js.map +1 -1
  20. package/dist/config/ServerConfiguration.d.ts +8 -0
  21. package/dist/config/ServerConfiguration.d.ts.map +1 -1
  22. package/dist/config/ServerConfiguration.js +80 -31
  23. package/dist/config/ServerConfiguration.js.map +1 -1
  24. package/dist/docs/DocumentationGenerator.d.ts.map +1 -1
  25. package/dist/docs/DocumentationGenerator.js +5 -7
  26. package/dist/docs/DocumentationGenerator.js.map +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +33 -29
  29. package/dist/index.js.map +1 -1
  30. package/dist/security/InputValidator.d.ts.map +1 -1
  31. package/dist/security/InputValidator.js +3 -11
  32. package/dist/security/InputValidator.js.map +1 -1
  33. package/dist/server/ToolRegistry.d.ts +4 -0
  34. package/dist/server/ToolRegistry.d.ts.map +1 -1
  35. package/dist/server/ToolRegistry.js +71 -8
  36. package/dist/server/ToolRegistry.js.map +1 -1
  37. package/dist/tools/auth.d.ts.map +1 -1
  38. package/dist/tools/auth.js +8 -3
  39. package/dist/tools/auth.js.map +1 -1
  40. package/dist/tools/posts.d.ts.map +1 -1
  41. package/dist/tools/posts.js +287 -20
  42. package/dist/tools/posts.js.map +1 -1
  43. package/dist/tools/site.d.ts.map +1 -1
  44. package/dist/tools/site.js +47 -9
  45. package/dist/tools/site.js.map +1 -1
  46. package/dist/tools/users.d.ts.map +1 -1
  47. package/dist/tools/users.js +113 -10
  48. package/dist/tools/users.js.map +1 -1
  49. package/dist/utils/enhancedError.d.ts +61 -0
  50. package/dist/utils/enhancedError.d.ts.map +1 -0
  51. package/dist/utils/enhancedError.js +221 -0
  52. package/dist/utils/enhancedError.js.map +1 -0
  53. package/dist/utils/streaming.d.ts +104 -0
  54. package/dist/utils/streaming.d.ts.map +1 -0
  55. package/dist/utils/streaming.js +312 -0
  56. package/dist/utils/streaming.js.map +1 -0
  57. package/dist/utils/validation.d.ts +19 -3
  58. package/dist/utils/validation.d.ts.map +1 -1
  59. package/dist/utils/validation.js +174 -24
  60. package/dist/utils/validation.js.map +1 -1
  61. package/docs/ARCHITECTURE.md +850 -0
  62. package/docs/CACHING.md +20 -17
  63. package/docs/CONFIGURATION.md +660 -0
  64. package/docs/DOCKER.md +61 -60
  65. package/docs/EVALUATION.md +397 -0
  66. package/docs/INSTALLATION.md +423 -0
  67. package/docs/PERFORMANCE_MONITORING.md +17 -15
  68. package/docs/SECURITY.md +621 -0
  69. package/docs/SECURITY_TESTING.md +22 -26
  70. package/docs/TEST_SITE_SETUP.md +136 -0
  71. package/docs/TROUBLESHOOTING.md +578 -0
  72. package/docs/api/README.md +76 -91
  73. package/docs/api/categories/auth.md +0 -2
  74. package/docs/api/categories/cache.md +0 -2
  75. package/docs/api/categories/comment.md +0 -2
  76. package/docs/api/categories/media.md +0 -2
  77. package/docs/api/categories/page.md +0 -2
  78. package/docs/api/categories/performance.md +0 -2
  79. package/docs/api/categories/post.md +0 -2
  80. package/docs/api/categories/site.md +0 -2
  81. package/docs/api/categories/taxonomy.md +0 -2
  82. package/docs/api/categories/user.md +0 -2
  83. package/docs/api/summary.json +1 -1
  84. package/docs/api/tools/wp_approve_comment.md +11 -3
  85. package/docs/api/tools/wp_cache_clear.md +14 -5
  86. package/docs/api/tools/wp_cache_info.md +14 -5
  87. package/docs/api/tools/wp_cache_stats.md +14 -5
  88. package/docs/api/tools/wp_cache_warm.md +14 -5
  89. package/docs/api/tools/wp_create_application_password.md +11 -3
  90. package/docs/api/tools/wp_create_category.md +11 -3
  91. package/docs/api/tools/wp_create_comment.md +14 -5
  92. package/docs/api/tools/wp_create_page.md +13 -5
  93. package/docs/api/tools/wp_create_post.md +14 -7
  94. package/docs/api/tools/wp_create_tag.md +11 -3
  95. package/docs/api/tools/wp_create_user.md +13 -5
  96. package/docs/api/tools/wp_delete_application_password.md +11 -3
  97. package/docs/api/tools/wp_delete_category.md +11 -3
  98. package/docs/api/tools/wp_delete_comment.md +11 -3
  99. package/docs/api/tools/wp_delete_media.md +10 -3
  100. package/docs/api/tools/wp_delete_page.md +10 -3
  101. package/docs/api/tools/wp_delete_post.md +11 -5
  102. package/docs/api/tools/wp_delete_tag.md +11 -3
  103. package/docs/api/tools/wp_delete_user.md +10 -3
  104. package/docs/api/tools/wp_get_application_passwords.md +11 -3
  105. package/docs/api/tools/wp_get_auth_status.md +11 -3
  106. package/docs/api/tools/wp_get_category.md +11 -3
  107. package/docs/api/tools/wp_get_comment.md +11 -3
  108. package/docs/api/tools/wp_get_current_user.md +11 -3
  109. package/docs/api/tools/wp_get_media.md +11 -3
  110. package/docs/api/tools/wp_get_page.md +11 -3
  111. package/docs/api/tools/wp_get_page_revisions.md +11 -3
  112. package/docs/api/tools/wp_get_post.md +12 -5
  113. package/docs/api/tools/wp_get_post_revisions.md +11 -3
  114. package/docs/api/tools/wp_get_site_settings.md +10 -3
  115. package/docs/api/tools/wp_get_tag.md +11 -3
  116. package/docs/api/tools/wp_get_user.md +11 -3
  117. package/docs/api/tools/wp_list_categories.md +11 -3
  118. package/docs/api/tools/wp_list_comments.md +11 -3
  119. package/docs/api/tools/wp_list_media.md +14 -5
  120. package/docs/api/tools/wp_list_pages.md +14 -5
  121. package/docs/api/tools/wp_list_posts.md +15 -7
  122. package/docs/api/tools/wp_list_tags.md +11 -3
  123. package/docs/api/tools/wp_list_users.md +11 -3
  124. package/docs/api/tools/wp_performance_alerts.md +17 -7
  125. package/docs/api/tools/wp_performance_benchmark.md +17 -7
  126. package/docs/api/tools/wp_performance_export.md +17 -7
  127. package/docs/api/tools/wp_performance_history.md +17 -7
  128. package/docs/api/tools/wp_performance_optimize.md +17 -7
  129. package/docs/api/tools/wp_performance_stats.md +17 -7
  130. package/docs/api/tools/wp_search_site.md +11 -3
  131. package/docs/api/tools/wp_spam_comment.md +11 -3
  132. package/docs/api/tools/wp_switch_auth_method.md +14 -5
  133. package/docs/api/tools/wp_test_auth.md +11 -3
  134. package/docs/api/tools/wp_update_category.md +11 -3
  135. package/docs/api/tools/wp_update_comment.md +14 -5
  136. package/docs/api/tools/wp_update_media.md +14 -5
  137. package/docs/api/tools/wp_update_page.md +13 -5
  138. package/docs/api/tools/wp_update_post.md +14 -7
  139. package/docs/api/tools/wp_update_site_settings.md +14 -5
  140. package/docs/api/tools/wp_update_tag.md +11 -3
  141. package/docs/api/tools/wp_update_user.md +13 -5
  142. package/docs/api/tools/wp_upload_media.md +13 -5
  143. package/docs/api/types/WordPressPost.md +2 -0
  144. package/docs/code-improvements.md +40 -0
  145. package/docs/contract-testing.md +1 -1
  146. package/docs/developer/API_REFERENCE.md +19 -59
  147. package/docs/developer/ARCHITECTURE.md +8 -11
  148. package/docs/developer/BUILD_SYSTEM.md +2 -2
  149. package/docs/developer/CONTRIBUTING.md +3 -5
  150. package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
  151. package/docs/developer/MIGRATION_GUIDE.md +5 -6
  152. package/docs/developer/README.md +2 -1
  153. package/docs/developer/REFACTORING.md +9 -15
  154. package/docs/developer/RELEASE_PROCESS.md +4 -3
  155. package/docs/developer/TESTING.md +2 -2
  156. package/docs/examples/claude-desktop-config.md +8 -0
  157. package/docs/integrations/claude-desktop.md +426 -0
  158. package/docs/integrations/cline.md +537 -0
  159. package/docs/integrations/vs-code.md +515 -0
  160. package/docs/releases/COMMUNITY_ANNOUNCEMENT_v1.1.2.md +30 -23
  161. package/docs/releases/RELEASE_NOTES_v1.1.2.md +7 -6
  162. package/docs/testing-configurations.md +11 -0
  163. package/docs/user-guides/DOCKER_NPM_DTX_SETUP.md +3 -2
  164. package/docs/user-guides/DOCKER_SETUP.md +3 -2
  165. package/docs/user-guides/DTX_SETUP.md +6 -5
  166. package/docs/user-guides/DXT_INSTALLATION.md +4 -4
  167. package/docs/user-guides/NPM_SETUP.md +4 -2
  168. package/docs/user-guides/NPX_SETUP.md +4 -2
  169. package/docs/user-guides/SMITHERY_SETUP.md +402 -0
  170. package/docs/wordpress-rest-api-authentication-troubleshooting.md +45 -42
  171. package/package.json +12 -2
  172. package/src/cache/CacheInvalidation.ts +7 -18
  173. package/src/client/MockWordPressClient.ts +398 -0
  174. package/src/client/api.ts +77 -237
  175. package/src/client/managers/AuthenticationManager.ts +19 -56
  176. package/src/config/ConfigurationSchema.ts +14 -45
  177. package/src/config/ServerConfiguration.ts +98 -71
  178. package/src/docs/DocumentationGenerator.ts +39 -123
  179. package/src/dxt-entry.cjs +4 -1
  180. package/src/index.ts +35 -54
  181. package/src/security/InputValidator.ts +15 -57
  182. package/src/server/ToolRegistry.ts +88 -17
  183. package/src/tools/auth.ts +15 -22
  184. package/src/tools/posts.ts +347 -64
  185. package/src/tools/site.ts +69 -46
  186. package/src/tools/users.ts +142 -44
  187. package/src/utils/enhancedError.ts +248 -0
  188. package/src/utils/streaming.ts +428 -0
  189. package/src/utils/validation.ts +253 -92
  190. package/dist/mcp-wordpress-1.5.2.tgz +0 -0
@@ -0,0 +1,423 @@
1
+ # Installation Guide
2
+
3
+ Complete installation guide for MCP WordPress Server with all supported methods.
4
+
5
+ ## 🎯 Choose Your Installation Method
6
+
7
+ | Method | Best For | Setup Time | Difficulty |
8
+ |--------|----------|------------|------------|
9
+ | **[DXT Extension](#-dxt-extension-recommended)** | Most users | 2 minutes | Beginner |
10
+ | **[NPX](#-npx-quick-start)** | Power users | 5 minutes | Beginner |
11
+ | **[Smithery](#-smithery-package-manager)** | MCP users | 3 minutes | Beginner |
12
+ | **[NPM Global](#-npm-global-installation)** | Developers | 10 minutes | Intermediate |
13
+ | **[Docker](#-docker-deployment)** | Production | 15 minutes | Intermediate |
14
+ | **[Development](#️-development-setup)** | Contributors | 20 minutes | Advanced |
15
+
16
+ ## 🏆 DXT Extension (Recommended)
17
+
18
+ The easiest way to get started with WordPress MCP in Claude Desktop.
19
+
20
+ ### Prerequisites
21
+ - Claude Desktop application
22
+ - WordPress site with REST API enabled
23
+ - WordPress Application Password
24
+
25
+ ### Installation Steps
26
+
27
+ 1. **Download DXT Package**
28
+ ```bash
29
+ # Download the latest DXT package
30
+ curl -L -o mcp-wordpress.dxt https://github.com/docdyhr/mcp-wordpress/raw/main/mcp-wordpress.dxt
31
+ ```
32
+
33
+ 2. **Install in Claude Desktop**
34
+ - Open Claude Desktop
35
+ - Go to Extensions menu
36
+ - Click "Install Extension"
37
+ - Select the downloaded `mcp-wordpress.dxt` file
38
+
39
+ 3. **Configure WordPress Connection**
40
+ - Enter your WordPress site URL
41
+ - Provide your WordPress username
42
+ - Add your Application Password
43
+ - Test the connection
44
+
45
+ ### Creating WordPress Application Password
46
+
47
+ 1. Log into your WordPress admin panel
48
+ 2. Go to **Users** → **Profile**
49
+ 3. Scroll to **Application Passwords** section
50
+ 4. Enter name: "Claude Desktop MCP"
51
+ 5. Click **Add New Application Password**
52
+ 6. Copy the generated password (format: `xxxx xxxx xxxx xxxx xxxx xxxx`)
53
+
54
+ **📖 [Complete DXT Setup Guide →](integrations/claude-desktop.md)**
55
+
56
+ ## ⚡ NPX Quick Start
57
+
58
+ Best for users who want the latest version without installation.
59
+
60
+ ### NPX Prerequisites
61
+ - Node.js 16+ and npm
62
+ - WordPress site with REST API enabled
63
+ - WordPress Application Password
64
+
65
+ ### Installation
66
+
67
+ ```bash
68
+ # Run directly with NPX (always uses latest version)
69
+ npx -y mcp-wordpress
70
+
71
+ # Interactive setup wizard
72
+ npm run setup
73
+ ```
74
+
75
+ ### Claude Desktop Configuration
76
+
77
+ Add to your Claude Desktop config:
78
+
79
+ ```json
80
+ {
81
+ "mcpServers": {
82
+ "mcp-wordpress": {
83
+ "command": "npx",
84
+ "args": ["-y", "mcp-wordpress"],
85
+ "env": {
86
+ "WORDPRESS_SITE_URL": "https://your-site.com",
87
+ "WORDPRESS_USERNAME": "your-username",
88
+ "WORDPRESS_APP_PASSWORD": "your-app-password"
89
+ }
90
+ }
91
+ }
92
+ }
93
+ ```
94
+
95
+ **📖 [Complete NPX Setup Guide →](user-guides/NPX_SETUP.md)**
96
+
97
+ ## 📦 Smithery Package Manager
98
+
99
+ Smithery is a dedicated package manager for MCP servers, providing easy installation and management.
100
+
101
+ ### Prerequisites
102
+ - Smithery package manager installed
103
+ - Claude Desktop application
104
+ - WordPress site with REST API enabled
105
+ - WordPress Application Password
106
+
107
+ ### Installation
108
+
109
+ ```bash
110
+ # Install mcp-wordpress via Smithery
111
+ smithery install mcp-wordpress
112
+
113
+ # Verify installation
114
+ smithery list | grep mcp-wordpress
115
+ ```
116
+
117
+ ### Configuration
118
+
119
+ ```bash
120
+ # Configure the WordPress connection
121
+ smithery configure mcp-wordpress
122
+
123
+ # Start the MCP server
124
+ smithery start mcp-wordpress
125
+
126
+ # Check status
127
+ smithery status mcp-wordpress
128
+ ```
129
+
130
+ ### Claude Desktop Integration
131
+
132
+ Smithery automatically configures Claude Desktop integration. After installation:
133
+
134
+ 1. **Restart Claude Desktop**
135
+ 2. **Test WordPress functionality**
136
+ ```text
137
+ "List my WordPress posts"
138
+ ```
139
+
140
+ ### Smithery Commands
141
+
142
+ ```bash
143
+ # Install package
144
+ smithery install mcp-wordpress
145
+
146
+ # Update to latest version
147
+ smithery update mcp-wordpress
148
+
149
+ # Configure settings
150
+ smithery configure mcp-wordpress
151
+
152
+ # Start/stop server
153
+ smithery start mcp-wordpress
154
+ smithery stop mcp-wordpress
155
+
156
+ # View logs
157
+ smithery logs mcp-wordpress
158
+
159
+ # Remove package
160
+ smithery remove mcp-wordpress
161
+ ```
162
+
163
+ **📖 [Complete Smithery Setup Guide →](user-guides/SMITHERY_SETUP.md)**
164
+
165
+ ## 📦 NPM Global Installation
166
+
167
+ For developers who prefer global npm packages.
168
+
169
+ ### NPM Installation
170
+
171
+ ```bash
172
+ # Install globally
173
+ npm install -g mcp-wordpress
174
+
175
+ # Verify installation
176
+ mcp-wordpress --version
177
+
178
+ # Run setup wizard
179
+ mcp-wordpress setup
180
+ ```
181
+
182
+ ### Configuration
183
+
184
+ Create `.env` file or configure environment variables:
185
+
186
+ ```bash
187
+ # Copy example configuration
188
+ cp .env.example .env
189
+
190
+ # Edit configuration
191
+ WORDPRESS_SITE_URL=https://your-site.com
192
+ WORDPRESS_USERNAME=your-username
193
+ WORDPRESS_APP_PASSWORD=your-app-password
194
+ WORDPRESS_AUTH_METHOD=app-password
195
+ ```
196
+
197
+ **📖 [Complete NPM Setup Guide →](user-guides/NPM_SETUP.md)**
198
+
199
+ ## 🐳 Docker Deployment
200
+
201
+ Production-ready containerized deployment.
202
+
203
+ ### Docker Prerequisites
204
+ - Docker 20.10+
205
+ - Docker Compose (optional)
206
+
207
+ ### Quick Start
208
+
209
+ ```bash
210
+ # Run with Docker
211
+ docker run -d \
212
+ --name mcp-wordpress \
213
+ -e WORDPRESS_SITE_URL=https://your-site.com \
214
+ -e WORDPRESS_USERNAME=your-username \
215
+ -e WORDPRESS_APP_PASSWORD="your-app-password" \
216
+ docdyhr/mcp-wordpress:latest
217
+
218
+ # Check logs
219
+ docker logs mcp-wordpress
220
+ ```
221
+
222
+ ### Docker Compose
223
+
224
+ ```yaml
225
+ version: '3.8'
226
+ services:
227
+ mcp-wordpress:
228
+ image: docdyhr/mcp-wordpress:latest
229
+ environment:
230
+ - WORDPRESS_SITE_URL=https://your-site.com
231
+ - WORDPRESS_USERNAME=your-username
232
+ - WORDPRESS_APP_PASSWORD=your-app-password
233
+ restart: unless-stopped
234
+ volumes:
235
+ - ./config:/app/config
236
+ ```
237
+
238
+ **📖 [Complete Docker Setup Guide →](user-guides/DOCKER_SETUP.md)**
239
+
240
+ ## 🛠️ Development Setup
241
+
242
+ For contributors and custom development.
243
+
244
+ ### Development Prerequisites
245
+ - Node.js 18+
246
+ - npm or yarn
247
+ - Git
248
+
249
+ ### Development Installation
250
+
251
+ ```bash
252
+ # Clone repository
253
+ git clone https://github.com/docdyhr/mcp-wordpress.git
254
+ cd mcp-wordpress
255
+
256
+ # Install dependencies
257
+ npm install
258
+
259
+ # Build project
260
+ npm run build
261
+
262
+ # Run tests
263
+ npm test
264
+
265
+ # Start development server
266
+ npm run dev
267
+ ```
268
+
269
+ ### Development Configuration
270
+
271
+ ```bash
272
+ # Copy example environment
273
+ cp .env.example .env
274
+
275
+ # Configure for development
276
+ NODE_ENV=development
277
+ DEBUG=true
278
+ WORDPRESS_SITE_URL=https://your-dev-site.com
279
+ WORDPRESS_USERNAME=dev-user
280
+ WORDPRESS_APP_PASSWORD=dev-password
281
+ ```
282
+
283
+ **📖 [Complete Development Guide →](developer/DEVELOPMENT.md)**
284
+
285
+ ## 🔧 Configuration Options
286
+
287
+ ### Environment Variables
288
+
289
+ | Variable | Required | Default | Description |
290
+ |----------|----------|---------|-------------|
291
+ | `WORDPRESS_SITE_URL` | Yes | - | WordPress site URL |
292
+ | `WORDPRESS_USERNAME` | Yes | - | WordPress username |
293
+ | `WORDPRESS_APP_PASSWORD` | Yes | - | Application password |
294
+ | `WORDPRESS_AUTH_METHOD` | No | `app-password` | Authentication method |
295
+ | `NODE_ENV` | No | `production` | Environment mode |
296
+ | `DEBUG` | No | `false` | Enable debug logging |
297
+ | `DISABLE_CACHE` | No | `false` | Disable caching |
298
+
299
+ ### Multi-Site Configuration
300
+
301
+ For managing multiple WordPress sites, create `mcp-wordpress.config.json`:
302
+
303
+ ```json
304
+ {
305
+ "sites": [
306
+ {
307
+ "id": "main-site",
308
+ "name": "Main WordPress Site",
309
+ "config": {
310
+ "WORDPRESS_SITE_URL": "https://site1.com",
311
+ "WORDPRESS_USERNAME": "admin",
312
+ "WORDPRESS_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
313
+ }
314
+ },
315
+ {
316
+ "id": "client-blog",
317
+ "name": "Client Blog",
318
+ "config": {
319
+ "WORDPRESS_SITE_URL": "https://client-blog.com",
320
+ "WORDPRESS_USERNAME": "editor",
321
+ "WORDPRESS_APP_PASSWORD": "yyyy yyyy yyyy yyyy yyyy yyyy"
322
+ }
323
+ }
324
+ ]
325
+ }
326
+ ```
327
+
328
+ **📖 [Complete Configuration Guide →](CONFIGURATION.md)**
329
+
330
+ ## ✅ Verification
331
+
332
+ ### Test Installation
333
+
334
+ ```bash
335
+ # Check connection status
336
+ npm run status
337
+
338
+ # Test basic functionality
339
+ npm run test:tools
340
+
341
+ # Run health check
342
+ npm run health
343
+ ```
344
+
345
+ ### Verify Claude Desktop Integration
346
+
347
+ 1. Restart Claude Desktop after configuration
348
+ 2. Type: "List my WordPress posts"
349
+ 3. Should see your WordPress content
350
+
351
+ ### Common Verification Issues
352
+
353
+ **Tools not appearing in Claude:**
354
+ - Restart Claude Desktop
355
+ - Check configuration file syntax
356
+ - Verify environment variables
357
+
358
+ **Connection failed:**
359
+ - Test WordPress REST API: `curl https://your-site.com/wp-json/wp/v2/`
360
+ - Verify Application Password format
361
+ - Check WordPress permissions
362
+
363
+ ## 🆘 Troubleshooting
364
+
365
+ ### Common Issues
366
+
367
+ 1. **"Cannot connect to WordPress"**
368
+ - Verify `WORDPRESS_SITE_URL` format
369
+ - Check if WordPress REST API is enabled
370
+ - Test manually: `curl https://your-site.com/wp-json/wp/v2/`
371
+
372
+ 2. **"Authentication failed"**
373
+ - Verify Application Password format (with spaces)
374
+ - Check WordPress user permissions
375
+ - Ensure Application Passwords are enabled
376
+
377
+ 3. **"Tools not working in Claude"**
378
+ - Restart Claude Desktop
379
+ - Check configuration file location
380
+ - Verify JSON syntax
381
+
382
+ 4. **Performance issues**
383
+ - Enable caching: remove `DISABLE_CACHE=true`
384
+ - Check WordPress hosting performance
385
+ - Monitor with: `npm run performance:stats`
386
+
387
+ **📖 [Complete Troubleshooting Guide →](TROUBLESHOOTING.md)**
388
+
389
+ ## 🔐 Security Considerations
390
+
391
+ ### WordPress Security
392
+ - Use Application Passwords (recommended)
393
+ - Create dedicated MCP user with minimal permissions
394
+ - Enable HTTPS for production
395
+ - Regular security updates
396
+
397
+ ### MCP Server Security
398
+ - Keep dependencies updated
399
+ - Use environment variables for secrets
400
+ - Enable firewall rules for Docker deployments
401
+ - Monitor access logs
402
+
403
+ **📖 [Complete Security Guide →](SECURITY.md)**
404
+
405
+ ## 🚀 Next Steps
406
+
407
+ After successful installation:
408
+
409
+ 1. **[Explore Tools](api/README.md)** - Discover all 59 available tools
410
+ 2. **[Configure Multi-Site](CONFIGURATION.md#multi-site-setup)** - Manage multiple WordPress sites
411
+ 3. **[Performance Optimization](PERFORMANCE_MONITORING.md)** - Optimize for production
412
+ 4. **[Integration Examples](../examples/)** - See real-world usage examples
413
+
414
+ ## 🆘 Getting Help
415
+
416
+ - **[GitHub Issues](https://github.com/docdyhr/mcp-wordpress/issues)** - Bug reports and feature requests
417
+ - **[GitHub Discussions](https://github.com/docdyhr/mcp-wordpress/discussions)** - Community help and questions
418
+ - **[Documentation](README.md)** - Complete documentation index
419
+
420
+ ---
421
+
422
+ **Found an issue with this guide?** [Edit on GitHub](https://github.com/docdyhr/mcp-wordpress/edit/main/docs/INSTALLATION.md) or
423
+ [open an issue](https://github.com/docdyhr/mcp-wordpress/issues/new).
@@ -1,13 +1,14 @@
1
1
  # Performance Monitoring System
2
2
 
3
- The MCP WordPress Server includes a comprehensive performance monitoring system that provides real-time insights, historical analysis, and optimization recommendations for your WordPress API operations.
3
+ The MCP WordPress Server includes a comprehensive performance monitoring system that provides real-time insights,
4
+ historical analysis, and optimization recommendations for your WordPress API operations.
4
5
 
5
6
  ## 🎯 Overview
6
7
 
7
8
  The performance monitoring system consists of three main components:
8
9
 
9
10
  - **PerformanceMonitor**: Core metrics collection and alerting
10
- - **MetricsCollector**: Real-time data gathering and client integration
11
+ - **MetricsCollector**: Real-time data gathering and client integration
11
12
  - **PerformanceAnalytics**: Advanced analysis, trends, and predictions
12
13
 
13
14
  ## 🚀 Key Features
@@ -330,12 +331,12 @@ Configure alert thresholds in your monitoring setup:
330
331
  ```javascript
331
332
  const monitor = new PerformanceMonitor({
332
333
  alertThresholds: {
333
- responseTime: 2000, // 2 seconds
334
- errorRate: 0.05, // 5%
335
- cacheHitRate: 0.8, // 80%
336
- memoryUsage: 80, // 80%
337
- cpuUsage: 80 // 80%
338
- }
334
+ responseTime: 2000, // 2 seconds
335
+ errorRate: 0.05, // 5%
336
+ cacheHitRate: 0.8, // 80%
337
+ memoryUsage: 80, // 80%
338
+ cpuUsage: 80, // 80%
339
+ },
339
340
  });
340
341
  ```
341
342
 
@@ -390,7 +391,7 @@ wp_performance_export --format=json --includeAnalytics=true
390
391
 
391
392
  ```javascript
392
393
  const config = {
393
- collectInterval: 30000, // 30 seconds
394
+ collectInterval: 30000, // 30 seconds
394
395
  retentionPeriod: 24 * 60 * 60 * 1000, // 24 hours
395
396
  enableRealTimeMonitoring: true,
396
397
  enableHistoricalData: true,
@@ -400,8 +401,8 @@ const config = {
400
401
  errorRate: 0.05,
401
402
  cacheHitRate: 0.8,
402
403
  memoryUsage: 80,
403
- cpuUsage: 80
404
- }
404
+ cpuUsage: 80,
405
+ },
405
406
  };
406
407
  ```
407
408
 
@@ -414,7 +415,7 @@ const config = {
414
415
  enableToolTracking: true,
415
416
  enableRequestInterception: true,
416
417
  enableCacheIntegration: true,
417
- enableSystemMetrics: true
418
+ enableSystemMetrics: true,
418
419
  };
419
420
  ```
420
421
 
@@ -426,7 +427,7 @@ const config = {
426
427
  enableAnomalyDetection: true,
427
428
  enableTrendAnalysis: true,
428
429
  lookbackPeriod: 24 * 60 * 60 * 1000, // 24 hours
429
- sensitivityLevel: 'medium' // low, medium, high
430
+ sensitivityLevel: "medium", // low, medium, high
430
431
  };
431
432
  ```
432
433
 
@@ -509,11 +510,12 @@ wp_performance_optimize --focus=scaling
509
510
  To contribute to the performance monitoring system:
510
511
 
511
512
  1. **Add new metrics** in `PerformanceMonitor.ts`
512
- 2. **Enhance analytics** in `PerformanceAnalytics.ts`
513
+ 2. **Enhance analytics** in `PerformanceAnalytics.ts`
513
514
  3. **Create new tools** in `tools/performance.ts`
514
515
  4. **Add tests** in `scripts/test-performance-monitoring.js`
515
516
  5. **Update documentation** in this file
516
517
 
517
518
  ---
518
519
 
519
- **🚀 The performance monitoring system helps you maintain optimal WordPress MCP server performance with real-time insights, intelligent analysis, and actionable recommendations.**
520
+ **🚀 The performance monitoring system helps you maintain optimal WordPress MCP server performance with real-time
521
+ insights, intelligent analysis, and actionable recommendations.**