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
package/docs/TROUBLESHOOTING.md
CHANGED
|
@@ -27,12 +27,12 @@ npm run test:performance
|
|
|
27
27
|
|
|
28
28
|
### Common Issue Categories
|
|
29
29
|
|
|
30
|
-
| Issue Type
|
|
31
|
-
|
|
32
|
-
| **[Connection](#-connection-issues)**
|
|
33
|
-
| **[Authentication](#-authentication-issues)**
|
|
34
|
-
| **[Tools](#️-tool-issues)**
|
|
35
|
-
| **[Performance](#-performance-issues)**
|
|
30
|
+
| Issue Type | Symptoms | Quick Fix |
|
|
31
|
+
| ---------------------------------------------- | ----------------------- | ----------------------- |
|
|
32
|
+
| **[Connection](#-connection-issues)** | Can't reach WordPress | Check URL and network |
|
|
33
|
+
| **[Authentication](#-authentication-issues)** | Login failures | Verify credentials |
|
|
34
|
+
| **[Tools](#️-tool-issues)** | Commands not working | Check permissions |
|
|
35
|
+
| **[Performance](#-performance-issues)** | Slow responses | Enable caching |
|
|
36
36
|
| **[Claude Desktop](#️-claude-desktop-issues)** | Not appearing in Claude | Restart and reconfigure |
|
|
37
37
|
|
|
38
38
|
## 🌐 Connection Issues
|
|
@@ -40,11 +40,13 @@ npm run test:performance
|
|
|
40
40
|
### Issue: "Cannot connect to WordPress"
|
|
41
41
|
|
|
42
42
|
**Symptoms:**
|
|
43
|
+
|
|
43
44
|
- Connection timeout errors
|
|
44
45
|
- "Site not reachable" messages
|
|
45
46
|
- Network-related failures
|
|
46
47
|
|
|
47
48
|
**Diagnosis:**
|
|
49
|
+
|
|
48
50
|
```bash
|
|
49
51
|
# Test WordPress REST API manually
|
|
50
52
|
curl -i https://your-site.com/wp-json/wp/v2/
|
|
@@ -56,30 +58,33 @@ curl -i https://your-site.com/wp-json/wp/v2/
|
|
|
56
58
|
**Solutions:**
|
|
57
59
|
|
|
58
60
|
1. **Verify WordPress URL Format**
|
|
61
|
+
|
|
59
62
|
```bash
|
|
60
63
|
# ✅ Correct formats
|
|
61
64
|
https://yoursite.com
|
|
62
65
|
https://www.yoursite.com
|
|
63
66
|
https://blog.yoursite.com
|
|
64
|
-
|
|
67
|
+
|
|
65
68
|
# ❌ Incorrect formats
|
|
66
69
|
yoursite.com # Missing protocol
|
|
67
70
|
https://yoursite.com/ # Trailing slash
|
|
68
71
|
```
|
|
69
72
|
|
|
70
73
|
2. **Check WordPress REST API**
|
|
74
|
+
|
|
71
75
|
- Go to **Settings** → **Permalinks** in WordPress admin
|
|
72
76
|
- Click "Save Changes" to refresh rewrite rules
|
|
73
77
|
- Verify REST API is not disabled by plugins
|
|
74
78
|
|
|
75
79
|
3. **Network and Firewall**
|
|
80
|
+
|
|
76
81
|
```bash
|
|
77
82
|
# Test connectivity
|
|
78
83
|
ping yoursite.com
|
|
79
|
-
|
|
84
|
+
|
|
80
85
|
# Test HTTPS
|
|
81
86
|
curl -I https://yoursite.com
|
|
82
|
-
|
|
87
|
+
|
|
83
88
|
# Test specific port if needed
|
|
84
89
|
telnet yoursite.com 443
|
|
85
90
|
```
|
|
@@ -94,10 +99,12 @@ curl -i https://your-site.com/wp-json/wp/v2/
|
|
|
94
99
|
### Issue: "SSL Certificate Error"
|
|
95
100
|
|
|
96
101
|
**Symptoms:**
|
|
102
|
+
|
|
97
103
|
- SSL verification failures
|
|
98
104
|
- Certificate warnings
|
|
99
105
|
|
|
100
106
|
**Solutions:**
|
|
107
|
+
|
|
101
108
|
```bash
|
|
102
109
|
# For development only - disable SSL verification
|
|
103
110
|
export NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
@@ -111,11 +118,13 @@ export NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
|
111
118
|
### Issue: "Authentication failed"
|
|
112
119
|
|
|
113
120
|
**Symptoms:**
|
|
121
|
+
|
|
114
122
|
- 401 Unauthorized errors
|
|
115
123
|
- "Invalid credentials" messages
|
|
116
124
|
- Login repeatedly fails
|
|
117
125
|
|
|
118
126
|
**Diagnosis:**
|
|
127
|
+
|
|
119
128
|
```bash
|
|
120
129
|
# Test authentication manually
|
|
121
130
|
curl -u "username:app-password" https://your-site.com/wp-json/wp/v2/users/me
|
|
@@ -127,10 +136,11 @@ curl -u "username:app-password" https://your-site.com/wp-json/wp/v2/users/me
|
|
|
127
136
|
**Solutions:**
|
|
128
137
|
|
|
129
138
|
1. **Application Password Format**
|
|
139
|
+
|
|
130
140
|
```bash
|
|
131
141
|
# ✅ Correct format (with spaces)
|
|
132
142
|
WORDPRESS_APP_PASSWORD="AbCd EfGh IjKl MnOp QrSt UvWx"
|
|
133
|
-
|
|
143
|
+
|
|
134
144
|
# ❌ Incorrect formats
|
|
135
145
|
WORDPRESS_APP_PASSWORD=AbCdEfGhIjKlMnOpQrStUvWx # No spaces
|
|
136
146
|
WORDPRESS_APP_PASSWORD='AbCd EfGh...' # Single quotes
|
|
@@ -138,12 +148,14 @@ curl -u "username:app-password" https://your-site.com/wp-json/wp/v2/users/me
|
|
|
138
148
|
```
|
|
139
149
|
|
|
140
150
|
2. **Regenerate Application Password**
|
|
151
|
+
|
|
141
152
|
- WordPress Admin → Users → Profile
|
|
142
153
|
- Delete old application password
|
|
143
154
|
- Create new one: "MCP WordPress Server"
|
|
144
155
|
- Copy the exact password shown (with spaces)
|
|
145
156
|
|
|
146
157
|
3. **Check WordPress User Permissions**
|
|
158
|
+
|
|
147
159
|
```text
|
|
148
160
|
# Minimum role requirements:
|
|
149
161
|
- Read operations: Subscriber
|
|
@@ -162,12 +174,14 @@ curl -u "username:app-password" https://your-site.com/wp-json/wp/v2/users/me
|
|
|
162
174
|
### Issue: "Permission denied for operation"
|
|
163
175
|
|
|
164
176
|
**Symptoms:**
|
|
177
|
+
|
|
165
178
|
- Some tools work, others fail
|
|
166
179
|
- "Insufficient permissions" errors
|
|
167
180
|
|
|
168
181
|
**Solutions:**
|
|
169
182
|
|
|
170
183
|
1. **Check User Role Requirements**
|
|
184
|
+
|
|
171
185
|
```bash
|
|
172
186
|
# Test user capabilities
|
|
173
187
|
curl -u "username:app-password" \
|
|
@@ -175,25 +189,23 @@ curl -u "username:app-password" https://your-site.com/wp-json/wp/v2/users/me
|
|
|
175
189
|
jq '.capabilities'
|
|
176
190
|
```
|
|
177
191
|
|
|
178
|
-
2. **Role-Based Access Matrix**
|
|
179
|
-
|
|
|
180
|
-
|
|
181
|
-
|
|
|
182
|
-
| Create posts | ❌ | ✅ | ✅ | ✅ |
|
|
183
|
-
| Edit others' posts | ❌ | ❌ | ✅ | ✅ |
|
|
184
|
-
| Manage users | ❌ | ❌ | ❌ | ✅ |
|
|
185
|
-
| Site settings | ❌ | ❌ | ❌ | ✅ |
|
|
192
|
+
2. **Role-Based Access Matrix** | Operation | Subscriber | Author | Editor | Admin |
|
|
193
|
+
|-----------|------------|--------|--------|-------| | Read posts | ✅ | ✅ | ✅ | ✅ | | Create posts | ❌ | ✅ | ✅
|
|
194
|
+
| ✅ | | Edit others' posts | ❌ | ❌ | ✅ | ✅ | | Manage users | ❌ | ❌ | ❌ | ✅ | | Site settings | ❌ | ❌ | ❌
|
|
195
|
+
| ✅ |
|
|
186
196
|
|
|
187
197
|
## 🛠️ Tool Issues
|
|
188
198
|
|
|
189
199
|
### Issue: "Tool not found" or "Command failed"
|
|
190
200
|
|
|
191
201
|
**Symptoms:**
|
|
202
|
+
|
|
192
203
|
- Specific WordPress tools don't work
|
|
193
204
|
- "Unknown tool" errors
|
|
194
205
|
- Tools missing from Claude
|
|
195
206
|
|
|
196
207
|
**Diagnosis:**
|
|
208
|
+
|
|
197
209
|
```bash
|
|
198
210
|
# List available tools
|
|
199
211
|
npm run test:tools
|
|
@@ -206,6 +218,7 @@ DEBUG=true npm run dev
|
|
|
206
218
|
**Solutions:**
|
|
207
219
|
|
|
208
220
|
1. **Verify Tool Registration**
|
|
221
|
+
|
|
209
222
|
```bash
|
|
210
223
|
# Check all tools are loaded
|
|
211
224
|
npm run status | grep "tools available"
|
|
@@ -213,6 +226,7 @@ DEBUG=true npm run dev
|
|
|
213
226
|
```
|
|
214
227
|
|
|
215
228
|
2. **Test Individual Tool Categories**
|
|
229
|
+
|
|
216
230
|
```text
|
|
217
231
|
# In Claude, test each category:
|
|
218
232
|
"List my WordPress posts" # Posts tools
|
|
@@ -222,11 +236,12 @@ DEBUG=true npm run dev
|
|
|
222
236
|
```
|
|
223
237
|
|
|
224
238
|
3. **Check Multi-Site Configuration**
|
|
239
|
+
|
|
225
240
|
```bash
|
|
226
241
|
# If using multi-site, always specify site parameter
|
|
227
242
|
# ✅ Correct
|
|
228
243
|
wp_list_posts --site="main-site"
|
|
229
|
-
|
|
244
|
+
|
|
230
245
|
# ❌ Incorrect (will fail with multiple sites)
|
|
231
246
|
wp_list_posts
|
|
232
247
|
```
|
|
@@ -234,16 +249,18 @@ DEBUG=true npm run dev
|
|
|
234
249
|
### Issue: "Invalid parameters" errors
|
|
235
250
|
|
|
236
251
|
**Symptoms:**
|
|
252
|
+
|
|
237
253
|
- Tools reject valid-looking parameters
|
|
238
254
|
- Type validation errors
|
|
239
255
|
|
|
240
256
|
**Solutions:**
|
|
241
257
|
|
|
242
258
|
1. **Check Parameter Types**
|
|
259
|
+
|
|
243
260
|
```text
|
|
244
261
|
# ✅ Correct parameter types
|
|
245
262
|
wp_create_post --title="My Post" --content="Content here"
|
|
246
|
-
|
|
263
|
+
|
|
247
264
|
# ❌ Incorrect (missing quotes for strings)
|
|
248
265
|
wp_create_post --title=My Post --content=Content here
|
|
249
266
|
```
|
|
@@ -260,11 +277,13 @@ DEBUG=true npm run dev
|
|
|
260
277
|
### Issue: Slow response times
|
|
261
278
|
|
|
262
279
|
**Symptoms:**
|
|
280
|
+
|
|
263
281
|
- Tools take a long time to respond
|
|
264
282
|
- Timeout errors
|
|
265
283
|
- Claude appears to hang
|
|
266
284
|
|
|
267
285
|
**Diagnosis:**
|
|
286
|
+
|
|
268
287
|
```bash
|
|
269
288
|
# Check performance metrics
|
|
270
289
|
npm run test:performance
|
|
@@ -279,26 +298,29 @@ npm run cache:stats
|
|
|
279
298
|
**Solutions:**
|
|
280
299
|
|
|
281
300
|
1. **Enable Caching**
|
|
301
|
+
|
|
282
302
|
```bash
|
|
283
303
|
# Ensure caching is enabled (default)
|
|
284
304
|
# Remove this line if present:
|
|
285
305
|
# DISABLE_CACHE=true
|
|
286
|
-
|
|
306
|
+
|
|
287
307
|
# Check cache performance
|
|
288
308
|
npm run cache:stats
|
|
289
309
|
```
|
|
290
310
|
|
|
291
311
|
2. **WordPress Optimization**
|
|
312
|
+
|
|
292
313
|
- Install caching plugin (W3 Total Cache, WP Rocket)
|
|
293
314
|
- Optimize database and images
|
|
294
315
|
- Use CDN for media files
|
|
295
316
|
- Upgrade hosting if necessary
|
|
296
317
|
|
|
297
318
|
3. **Network Optimization**
|
|
319
|
+
|
|
298
320
|
```bash
|
|
299
321
|
# Test network latency
|
|
300
322
|
ping your-site.com
|
|
301
|
-
|
|
323
|
+
|
|
302
324
|
# Test WordPress response time
|
|
303
325
|
time curl -s https://your-site.com/wp-json/wp/v2/ > /dev/null
|
|
304
326
|
```
|
|
@@ -306,6 +328,7 @@ npm run cache:stats
|
|
|
306
328
|
### Issue: Memory or CPU high usage
|
|
307
329
|
|
|
308
330
|
**Symptoms:**
|
|
331
|
+
|
|
309
332
|
- System becomes slow
|
|
310
333
|
- High resource usage
|
|
311
334
|
- Crashes or restarts
|
|
@@ -313,20 +336,22 @@ npm run cache:stats
|
|
|
313
336
|
**Solutions:**
|
|
314
337
|
|
|
315
338
|
1. **Monitor Resource Usage**
|
|
339
|
+
|
|
316
340
|
```bash
|
|
317
341
|
# Check memory usage
|
|
318
342
|
npm run test:performance | grep memory
|
|
319
|
-
|
|
343
|
+
|
|
320
344
|
# Monitor during operation
|
|
321
345
|
top -p $(pgrep node)
|
|
322
346
|
```
|
|
323
347
|
|
|
324
348
|
2. **Optimize Configuration**
|
|
349
|
+
|
|
325
350
|
```bash
|
|
326
351
|
# Reduce cache size if memory is limited
|
|
327
352
|
# Edit configuration:
|
|
328
353
|
CACHE_MAX_SIZE=100 # Reduce from default 1000
|
|
329
|
-
|
|
354
|
+
|
|
330
355
|
# Disable performance monitoring in production
|
|
331
356
|
DISABLE_PERFORMANCE_MONITORING=true
|
|
332
357
|
```
|
|
@@ -336,6 +361,7 @@ npm run cache:stats
|
|
|
336
361
|
### Issue: "WordPress tools not appearing in Claude"
|
|
337
362
|
|
|
338
363
|
**Symptoms:**
|
|
364
|
+
|
|
339
365
|
- Claude doesn't recognize WordPress commands
|
|
340
366
|
- No WordPress functionality available
|
|
341
367
|
- "I don't have access to WordPress" responses
|
|
@@ -343,19 +369,22 @@ npm run cache:stats
|
|
|
343
369
|
**Solutions:**
|
|
344
370
|
|
|
345
371
|
1. **Restart Claude Desktop**
|
|
372
|
+
|
|
346
373
|
```bash
|
|
347
374
|
# Always restart Claude Desktop after configuration changes
|
|
348
375
|
# This ensures MCP server connections are refreshed
|
|
349
376
|
```
|
|
350
377
|
|
|
351
378
|
2. **Check Configuration File**
|
|
352
|
-
|
|
379
|
+
|
|
353
380
|
**For DXT Extension:**
|
|
381
|
+
|
|
354
382
|
- Verify extension is enabled in Claude Desktop
|
|
355
383
|
- Check configuration in Extensions settings
|
|
356
384
|
- Reinstall DXT if necessary
|
|
357
385
|
|
|
358
386
|
**For NPX/NPM Method:**
|
|
387
|
+
|
|
359
388
|
```json
|
|
360
389
|
// Verify Claude Desktop config file format
|
|
361
390
|
{
|
|
@@ -374,18 +403,21 @@ npm run cache:stats
|
|
|
374
403
|
```
|
|
375
404
|
|
|
376
405
|
3. **Verify Configuration File Location**
|
|
377
|
-
|
|
406
|
+
|
|
378
407
|
**macOS:**
|
|
408
|
+
|
|
379
409
|
```bash
|
|
380
410
|
~/Library/Application Support/Claude/claude_desktop_config.json
|
|
381
411
|
```
|
|
382
|
-
|
|
412
|
+
|
|
383
413
|
**Windows:**
|
|
414
|
+
|
|
384
415
|
```bash
|
|
385
416
|
%APPDATA%\Claude\claude_desktop_config.json
|
|
386
417
|
```
|
|
387
|
-
|
|
418
|
+
|
|
388
419
|
**Linux:**
|
|
420
|
+
|
|
389
421
|
```bash
|
|
390
422
|
~/.config/claude_desktop_config.json
|
|
391
423
|
```
|
|
@@ -393,39 +425,43 @@ npm run cache:stats
|
|
|
393
425
|
### Issue: "Server connection failed"
|
|
394
426
|
|
|
395
427
|
**Symptoms:**
|
|
428
|
+
|
|
396
429
|
- Claude shows "MCP server connection failed"
|
|
397
430
|
- Server appears to start but then disconnects
|
|
398
431
|
|
|
399
432
|
**Solutions:**
|
|
400
433
|
|
|
401
434
|
1. **Check Server Logs**
|
|
435
|
+
|
|
402
436
|
```bash
|
|
403
437
|
# Run server manually to see errors
|
|
404
438
|
DEBUG=true npx -y mcp-wordpress
|
|
405
|
-
|
|
439
|
+
|
|
406
440
|
# Look for specific error messages
|
|
407
441
|
# Common issues: missing dependencies, port conflicts
|
|
408
442
|
```
|
|
409
443
|
|
|
410
444
|
2. **JSON-RPC Protocol Issues**
|
|
445
|
+
|
|
411
446
|
```bash
|
|
412
447
|
# Recent fix for DXT: JSON parsing errors
|
|
413
448
|
# Update to latest version
|
|
414
449
|
curl -L -o mcp-wordpress.dxt \
|
|
415
450
|
https://github.com/docdyhr/mcp-wordpress/releases/latest/download/\
|
|
416
451
|
mcp-wordpress.dxt
|
|
417
|
-
|
|
452
|
+
|
|
418
453
|
# Reinstall DXT extension
|
|
419
454
|
```
|
|
420
455
|
|
|
421
456
|
3. **Environment Issues**
|
|
457
|
+
|
|
422
458
|
```bash
|
|
423
459
|
# Test Node.js version
|
|
424
460
|
node --version # Should be 16+
|
|
425
|
-
|
|
461
|
+
|
|
426
462
|
# Test npm access
|
|
427
463
|
npm --version
|
|
428
|
-
|
|
464
|
+
|
|
429
465
|
# Clear npm cache if needed
|
|
430
466
|
npm cache clean --force
|
|
431
467
|
```
|
|
@@ -435,16 +471,18 @@ npm run cache:stats
|
|
|
435
471
|
### Issue: Container won't start
|
|
436
472
|
|
|
437
473
|
**Symptoms:**
|
|
474
|
+
|
|
438
475
|
- Docker container exits immediately
|
|
439
476
|
- "Configuration missing" errors
|
|
440
477
|
|
|
441
478
|
**Solutions:**
|
|
442
479
|
|
|
443
480
|
1. **Check Environment Variables**
|
|
481
|
+
|
|
444
482
|
```bash
|
|
445
483
|
# Verify all required variables are set
|
|
446
484
|
docker run --rm docdyhr/mcp-wordpress:latest env | grep WORDPRESS
|
|
447
|
-
|
|
485
|
+
|
|
448
486
|
# Should show:
|
|
449
487
|
# WORDPRESS_SITE_URL=...
|
|
450
488
|
# WORDPRESS_USERNAME=...
|
|
@@ -452,10 +490,11 @@ npm run cache:stats
|
|
|
452
490
|
```
|
|
453
491
|
|
|
454
492
|
2. **Check Container Logs**
|
|
493
|
+
|
|
455
494
|
```bash
|
|
456
495
|
# View container logs
|
|
457
496
|
docker logs mcp-wordpress
|
|
458
|
-
|
|
497
|
+
|
|
459
498
|
# Follow logs in real-time
|
|
460
499
|
docker logs -f mcp-wordpress
|
|
461
500
|
```
|
|
@@ -471,11 +510,13 @@ npm run cache:stats
|
|
|
471
510
|
### Enable Debug Mode
|
|
472
511
|
|
|
473
512
|
1. **Environment Variable**
|
|
513
|
+
|
|
474
514
|
```bash
|
|
475
515
|
DEBUG=true npm run dev
|
|
476
516
|
```
|
|
477
517
|
|
|
478
518
|
2. **For Claude Desktop DXT**
|
|
519
|
+
|
|
479
520
|
- Enable "Debug Mode" in extension settings
|
|
480
521
|
- Check Claude Desktop console for detailed logs
|
|
481
522
|
|
|
@@ -522,8 +563,9 @@ tail -f /path/to/wordpress/wp-content/debug.log
|
|
|
522
563
|
|
|
523
564
|
When reporting issues, include this information:
|
|
524
565
|
|
|
525
|
-
|
|
566
|
+
````markdown
|
|
526
567
|
### Environment
|
|
568
|
+
|
|
527
569
|
- **Installation Method**: DXT/NPX/NPM/Docker
|
|
528
570
|
- **Version**: [Check with npm list mcp-wordpress]
|
|
529
571
|
- **Node.js Version**: [node --version]
|
|
@@ -531,27 +573,33 @@ When reporting issues, include this information:
|
|
|
531
573
|
- **Claude Desktop Version**: [If applicable]
|
|
532
574
|
|
|
533
575
|
### WordPress Details
|
|
576
|
+
|
|
534
577
|
- **WordPress Version**: [Check in WP admin]
|
|
535
578
|
- **User Role**: [Administrator/Editor/etc.]
|
|
536
579
|
- **Authentication Method**: [app-password/jwt/basic]
|
|
537
580
|
- **REST API URL**: [https://site.com/wp-json/wp/v2/]
|
|
538
581
|
|
|
539
582
|
### Issue Description
|
|
583
|
+
|
|
540
584
|
- **What you were trying to do**:
|
|
541
585
|
- **What happened instead**:
|
|
542
586
|
- **Error messages** (exact text):
|
|
543
587
|
- **Steps to reproduce**:
|
|
544
588
|
|
|
545
589
|
### Debug Information
|
|
590
|
+
|
|
546
591
|
```bash
|
|
547
592
|
# Output of diagnostic commands
|
|
548
593
|
npm run health
|
|
549
594
|
npm run status
|
|
550
595
|
DEBUG=true [command that failed]
|
|
551
596
|
```
|
|
597
|
+
````
|
|
552
598
|
|
|
553
599
|
### Configuration
|
|
600
|
+
|
|
554
601
|
[Include relevant configuration, redacting sensitive information]
|
|
602
|
+
|
|
555
603
|
```text
|
|
556
604
|
|
|
557
605
|
## 🆘 Getting Help
|
|
@@ -576,4 +624,5 @@ For enterprise users or complex integrations:
|
|
|
576
624
|
|
|
577
625
|
---
|
|
578
626
|
|
|
579
|
-
**Still having issues?** [Open a GitHub issue](https://github.com/docdyhr/mcp-wordpress/issues/new) with the debugging information above, and we'll help you resolve it!
|
|
627
|
+
**Still having issues?** [Open a GitHub issue](https://github.com/docdyhr/mcp-wordpress/issues/new) with the debugging information above, and we'll help you resolve it!
|
|
628
|
+
```
|