mcp-wordpress 1.5.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +332 -61
- package/dist/cache/CacheInvalidation.d.ts.map +1 -1
- package/dist/cache/CacheInvalidation.js +4 -4
- package/dist/cache/CacheInvalidation.js.map +1 -1
- package/dist/client/MockWordPressClient.d.ts +55 -0
- package/dist/client/MockWordPressClient.d.ts.map +1 -0
- package/dist/client/MockWordPressClient.js +369 -0
- package/dist/client/MockWordPressClient.js.map +1 -0
- package/dist/client/api.d.ts +1 -0
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +26 -60
- package/dist/client/api.js.map +1 -1
- package/dist/client/managers/AuthenticationManager.d.ts.map +1 -1
- package/dist/client/managers/AuthenticationManager.js +4 -3
- package/dist/client/managers/AuthenticationManager.js.map +1 -1
- package/dist/config/ConfigurationSchema.d.ts +3 -3
- package/dist/config/ConfigurationSchema.d.ts.map +1 -1
- package/dist/config/ConfigurationSchema.js +7 -24
- package/dist/config/ConfigurationSchema.js.map +1 -1
- package/dist/config/ServerConfiguration.d.ts +8 -0
- package/dist/config/ServerConfiguration.d.ts.map +1 -1
- package/dist/config/ServerConfiguration.js +80 -31
- package/dist/config/ServerConfiguration.js.map +1 -1
- package/dist/docs/DocumentationGenerator.d.ts.map +1 -1
- package/dist/docs/DocumentationGenerator.js +5 -7
- package/dist/docs/DocumentationGenerator.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/dist/security/InputValidator.d.ts.map +1 -1
- package/dist/security/InputValidator.js +3 -11
- package/dist/security/InputValidator.js.map +1 -1
- package/dist/server/ToolRegistry.d.ts +4 -0
- package/dist/server/ToolRegistry.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js +71 -8
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/auth.d.ts.map +1 -1
- package/dist/tools/auth.js +8 -3
- package/dist/tools/auth.js.map +1 -1
- package/dist/tools/posts.d.ts.map +1 -1
- package/dist/tools/posts.js +287 -20
- package/dist/tools/posts.js.map +1 -1
- package/dist/tools/site.d.ts.map +1 -1
- package/dist/tools/site.js +47 -9
- package/dist/tools/site.js.map +1 -1
- package/dist/tools/users.d.ts.map +1 -1
- package/dist/tools/users.js +113 -10
- package/dist/tools/users.js.map +1 -1
- package/dist/utils/enhancedError.d.ts +61 -0
- package/dist/utils/enhancedError.d.ts.map +1 -0
- package/dist/utils/enhancedError.js +221 -0
- package/dist/utils/enhancedError.js.map +1 -0
- package/dist/utils/streaming.d.ts +104 -0
- package/dist/utils/streaming.d.ts.map +1 -0
- package/dist/utils/streaming.js +312 -0
- package/dist/utils/streaming.js.map +1 -0
- package/dist/utils/validation.d.ts +19 -3
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +174 -24
- package/dist/utils/validation.js.map +1 -1
- package/docs/ARCHITECTURE.md +850 -0
- package/docs/CACHING.md +20 -17
- package/docs/CONFIGURATION.md +660 -0
- package/docs/DOCKER.md +61 -60
- package/docs/EVALUATION.md +397 -0
- package/docs/INSTALLATION.md +423 -0
- package/docs/PERFORMANCE_MONITORING.md +17 -15
- package/docs/SECURITY.md +621 -0
- package/docs/SECURITY_TESTING.md +22 -26
- package/docs/TEST_SITE_SETUP.md +136 -0
- package/docs/TROUBLESHOOTING.md +578 -0
- package/docs/api/README.md +76 -91
- package/docs/api/categories/auth.md +0 -2
- package/docs/api/categories/cache.md +0 -2
- package/docs/api/categories/comment.md +0 -2
- package/docs/api/categories/media.md +0 -2
- package/docs/api/categories/page.md +0 -2
- package/docs/api/categories/performance.md +0 -2
- package/docs/api/categories/post.md +0 -2
- package/docs/api/categories/site.md +0 -2
- package/docs/api/categories/taxonomy.md +0 -2
- package/docs/api/categories/user.md +0 -2
- package/docs/api/summary.json +1 -1
- package/docs/api/tools/wp_approve_comment.md +11 -3
- package/docs/api/tools/wp_cache_clear.md +14 -5
- package/docs/api/tools/wp_cache_info.md +14 -5
- package/docs/api/tools/wp_cache_stats.md +14 -5
- package/docs/api/tools/wp_cache_warm.md +14 -5
- package/docs/api/tools/wp_create_application_password.md +11 -3
- package/docs/api/tools/wp_create_category.md +11 -3
- package/docs/api/tools/wp_create_comment.md +14 -5
- package/docs/api/tools/wp_create_page.md +13 -5
- package/docs/api/tools/wp_create_post.md +14 -7
- package/docs/api/tools/wp_create_tag.md +11 -3
- package/docs/api/tools/wp_create_user.md +13 -5
- package/docs/api/tools/wp_delete_application_password.md +11 -3
- package/docs/api/tools/wp_delete_category.md +11 -3
- package/docs/api/tools/wp_delete_comment.md +11 -3
- package/docs/api/tools/wp_delete_media.md +10 -3
- package/docs/api/tools/wp_delete_page.md +10 -3
- package/docs/api/tools/wp_delete_post.md +11 -5
- package/docs/api/tools/wp_delete_tag.md +11 -3
- package/docs/api/tools/wp_delete_user.md +10 -3
- package/docs/api/tools/wp_get_application_passwords.md +11 -3
- package/docs/api/tools/wp_get_auth_status.md +11 -3
- package/docs/api/tools/wp_get_category.md +11 -3
- package/docs/api/tools/wp_get_comment.md +11 -3
- package/docs/api/tools/wp_get_current_user.md +11 -3
- package/docs/api/tools/wp_get_media.md +11 -3
- package/docs/api/tools/wp_get_page.md +11 -3
- package/docs/api/tools/wp_get_page_revisions.md +11 -3
- package/docs/api/tools/wp_get_post.md +12 -5
- package/docs/api/tools/wp_get_post_revisions.md +11 -3
- package/docs/api/tools/wp_get_site_settings.md +10 -3
- package/docs/api/tools/wp_get_tag.md +11 -3
- package/docs/api/tools/wp_get_user.md +11 -3
- package/docs/api/tools/wp_list_categories.md +11 -3
- package/docs/api/tools/wp_list_comments.md +11 -3
- package/docs/api/tools/wp_list_media.md +14 -5
- package/docs/api/tools/wp_list_pages.md +14 -5
- package/docs/api/tools/wp_list_posts.md +15 -7
- package/docs/api/tools/wp_list_tags.md +11 -3
- package/docs/api/tools/wp_list_users.md +11 -3
- package/docs/api/tools/wp_performance_alerts.md +17 -7
- package/docs/api/tools/wp_performance_benchmark.md +17 -7
- package/docs/api/tools/wp_performance_export.md +17 -7
- package/docs/api/tools/wp_performance_history.md +17 -7
- package/docs/api/tools/wp_performance_optimize.md +17 -7
- package/docs/api/tools/wp_performance_stats.md +17 -7
- package/docs/api/tools/wp_search_site.md +11 -3
- package/docs/api/tools/wp_spam_comment.md +11 -3
- package/docs/api/tools/wp_switch_auth_method.md +14 -5
- package/docs/api/tools/wp_test_auth.md +11 -3
- package/docs/api/tools/wp_update_category.md +11 -3
- package/docs/api/tools/wp_update_comment.md +14 -5
- package/docs/api/tools/wp_update_media.md +14 -5
- package/docs/api/tools/wp_update_page.md +13 -5
- package/docs/api/tools/wp_update_post.md +14 -7
- package/docs/api/tools/wp_update_site_settings.md +14 -5
- package/docs/api/tools/wp_update_tag.md +11 -3
- package/docs/api/tools/wp_update_user.md +13 -5
- package/docs/api/tools/wp_upload_media.md +13 -5
- package/docs/api/types/WordPressPost.md +2 -0
- package/docs/code-improvements.md +40 -0
- package/docs/contract-testing.md +1 -1
- package/docs/developer/API_REFERENCE.md +19 -59
- package/docs/developer/ARCHITECTURE.md +8 -11
- package/docs/developer/BUILD_SYSTEM.md +2 -2
- package/docs/developer/CONTRIBUTING.md +3 -5
- package/docs/developer/GITHUB_ACTIONS_SETUP.md +2 -2
- package/docs/developer/MIGRATION_GUIDE.md +5 -6
- package/docs/developer/README.md +2 -1
- package/docs/developer/REFACTORING.md +9 -15
- package/docs/developer/RELEASE_PROCESS.md +4 -3
- package/docs/developer/TESTING.md +2 -2
- package/docs/examples/claude-desktop-config.md +8 -0
- package/docs/integrations/claude-desktop.md +426 -0
- package/docs/integrations/cline.md +537 -0
- package/docs/integrations/vs-code.md +515 -0
- package/docs/releases/COMMUNITY_ANNOUNCEMENT_v1.1.2.md +30 -23
- package/docs/releases/RELEASE_NOTES_v1.1.2.md +7 -6
- package/docs/testing-configurations.md +11 -0
- package/docs/user-guides/DOCKER_NPM_DTX_SETUP.md +3 -2
- package/docs/user-guides/DOCKER_SETUP.md +3 -2
- package/docs/user-guides/DTX_SETUP.md +6 -5
- package/docs/user-guides/DXT_INSTALLATION.md +4 -4
- package/docs/user-guides/NPM_SETUP.md +4 -2
- package/docs/user-guides/NPX_SETUP.md +4 -2
- package/docs/user-guides/SMITHERY_SETUP.md +402 -0
- package/docs/wordpress-rest-api-authentication-troubleshooting.md +45 -42
- package/package.json +12 -2
- package/src/cache/CacheInvalidation.ts +7 -18
- package/src/client/MockWordPressClient.ts +398 -0
- package/src/client/api.ts +77 -237
- package/src/client/managers/AuthenticationManager.ts +19 -56
- package/src/config/ConfigurationSchema.ts +14 -45
- package/src/config/ServerConfiguration.ts +98 -71
- package/src/docs/DocumentationGenerator.ts +39 -123
- package/src/dxt-entry.cjs +4 -1
- package/src/index.ts +35 -54
- package/src/security/InputValidator.ts +15 -57
- package/src/server/ToolRegistry.ts +88 -17
- package/src/tools/auth.ts +15 -22
- package/src/tools/posts.ts +347 -64
- package/src/tools/site.ts +69 -46
- package/src/tools/users.ts +142 -44
- package/src/utils/enhancedError.ts +248 -0
- package/src/utils/streaming.ts +428 -0
- package/src/utils/validation.ts +253 -92
- package/dist/mcp-wordpress-1.5.2.tgz +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
This document outlines the technical debt refactoring performed to improve code quality, maintainability, and
|
|
5
|
+
This document outlines the technical debt refactoring performed to improve code quality, maintainability, and
|
|
6
|
+
performance.
|
|
6
7
|
|
|
7
8
|
## Issues Addressed
|
|
8
9
|
|
|
@@ -170,10 +171,7 @@ import { WordPressClient } from "./client/api.js";
|
|
|
170
171
|
|
|
171
172
|
// New way (recommended for internal development)
|
|
172
173
|
import { WordPressClient } from "./client/WordPressClient.js";
|
|
173
|
-
import {
|
|
174
|
-
AuthenticationManager,
|
|
175
|
-
RequestManager,
|
|
176
|
-
} from "./client/managers/index.js";
|
|
174
|
+
import { AuthenticationManager, RequestManager } from "./client/managers/index.js";
|
|
177
175
|
```
|
|
178
176
|
|
|
179
177
|
### For Tool Development
|
|
@@ -184,13 +182,10 @@ New tools can leverage standardized patterns:
|
|
|
184
182
|
import { withErrorHandling, validators } from "../utils/toolWrapper.js";
|
|
185
183
|
|
|
186
184
|
// Standardized error handling
|
|
187
|
-
const handleGetPost = withErrorHandling(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return await client.getPost(params.id);
|
|
192
|
-
},
|
|
193
|
-
);
|
|
185
|
+
const handleGetPost = withErrorHandling("Failed to get post", async (client, params) => {
|
|
186
|
+
validators.requireId(params);
|
|
187
|
+
return await client.getPost(params.id);
|
|
188
|
+
});
|
|
194
189
|
```
|
|
195
190
|
|
|
196
191
|
## Future Improvements
|
|
@@ -215,9 +210,8 @@ const handleGetPost = withErrorHandling(
|
|
|
215
210
|
|
|
216
211
|
## Conclusion
|
|
217
212
|
|
|
218
|
-
This refactoring addresses the major technical debt items while maintaining full backward compatibility.
|
|
219
|
-
|
|
220
|
-
enhancements.
|
|
213
|
+
This refactoring addresses the major technical debt items while maintaining full backward compatibility. The codebase is
|
|
214
|
+
now more maintainable, testable, and performant, setting a solid foundation for future enhancements.
|
|
221
215
|
|
|
222
216
|
**Key Achievements**:
|
|
223
217
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Release Process Guide
|
|
2
2
|
|
|
3
|
-
Complete guide to the automated release pipeline, semantic versioning, and deployment process for the MCP WordPress
|
|
3
|
+
Complete guide to the automated release pipeline, semantic versioning, and deployment process for the MCP WordPress
|
|
4
|
+
Server.
|
|
4
5
|
|
|
5
6
|
## 🚀 Release Pipeline Overview
|
|
6
7
|
|
|
@@ -524,5 +525,5 @@ For breaking changes, create migration guides in `docs/developer/MIGRATION_GUIDE
|
|
|
524
525
|
|
|
525
526
|
---
|
|
526
527
|
|
|
527
|
-
**Planning a release?** This automated system ensures consistent, reliable releases while maintaining high
|
|
528
|
-
|
|
528
|
+
**Planning a release?** This automated system ensures consistent, reliable releases while maintaining high quality
|
|
529
|
+
standards. Every release is tested, verified, and documented automatically.
|
|
@@ -730,5 +730,5 @@ describe("Debug Example", () => {
|
|
|
730
730
|
|
|
731
731
|
---
|
|
732
732
|
|
|
733
|
-
**Need help with testing?** This comprehensive testing infrastructure ensures code quality, security,
|
|
734
|
-
|
|
733
|
+
**Need help with testing?** This comprehensive testing infrastructure ensures code quality, security, and performance.
|
|
734
|
+
All tests are designed to be fast, reliable, and maintainable.
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Claude Desktop Integration Guide
|
|
2
|
+
|
|
3
|
+
Complete guide for integrating MCP WordPress Server with Claude Desktop using the DXT extension.
|
|
4
|
+
|
|
5
|
+
## 🎯 Overview
|
|
6
|
+
|
|
7
|
+
The WordPress MCP DXT extension provides the **easiest way** to integrate WordPress management with Claude
|
|
8
|
+
Desktop. No command line, no configuration files - just click and configure.
|
|
9
|
+
|
|
10
|
+
### Why Choose DXT Extension?
|
|
11
|
+
|
|
12
|
+
| Feature | DXT Extension | NPX Method |
|
|
13
|
+
|---------|---------------|------------|
|
|
14
|
+
| **Installation** | 2 clicks | Command line setup |
|
|
15
|
+
| **Configuration** | Built-in UI | Manual JSON editing |
|
|
16
|
+
| **Updates** | Automatic | Manual |
|
|
17
|
+
| **Security** | Encrypted storage | Environment variables |
|
|
18
|
+
| **Multi-site** | Single site only | Unlimited sites |
|
|
19
|
+
|
|
20
|
+
## 🚀 Quick Installation
|
|
21
|
+
|
|
22
|
+
### Step 1: Download DXT Package
|
|
23
|
+
|
|
24
|
+
**Option A: Direct Download**
|
|
25
|
+
|
|
26
|
+
- Click here: [`mcp-wordpress.dxt`](https://github.com/docdyhr/mcp-wordpress/raw/main/mcp-wordpress.dxt) (2.6MB)
|
|
27
|
+
|
|
28
|
+
**Option B: Command Line**
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
curl -L -o mcp-wordpress.dxt https://github.com/docdyhr/mcp-wordpress/raw/main/mcp-wordpress.dxt
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Step 2: Install in Claude Desktop
|
|
35
|
+
|
|
36
|
+
1. **Open Claude Desktop**
|
|
37
|
+
2. **Navigate to Extensions**
|
|
38
|
+
- Click the gear icon (⚙️) in the top-right
|
|
39
|
+
- Select "Extensions" from the menu
|
|
40
|
+
3. **Install Extension**
|
|
41
|
+
- Click "Install Extension" button
|
|
42
|
+
- Select the downloaded `mcp-wordpress.dxt` file
|
|
43
|
+
- Wait for installation to complete
|
|
44
|
+
|
|
45
|
+
### Step 3: Configure WordPress Connection
|
|
46
|
+
|
|
47
|
+
1. **Extension Settings**
|
|
48
|
+
- Find "WordPress MCP Server" in your extensions list
|
|
49
|
+
- Click the settings/configuration button
|
|
50
|
+
|
|
51
|
+
2. **Enter WordPress Details**
|
|
52
|
+
- **Site URL**: Your WordPress site URL (e.g., `https://yoursite.com`)
|
|
53
|
+
- **Username**: Your WordPress username
|
|
54
|
+
- **Application Password**: Generated WordPress app password
|
|
55
|
+
- **Authentication Method**: Leave as "app-password" (recommended)
|
|
56
|
+
|
|
57
|
+
3. **Test Connection**
|
|
58
|
+
- Click "Test Connection" to verify setup
|
|
59
|
+
- You should see a success message
|
|
60
|
+
|
|
61
|
+
## 🔑 WordPress Application Password Setup
|
|
62
|
+
|
|
63
|
+
### Creating Application Password
|
|
64
|
+
|
|
65
|
+
1. **Log into WordPress Admin**
|
|
66
|
+
- Go to your WordPress admin panel
|
|
67
|
+
- Navigate to **Users** → **Your Profile**
|
|
68
|
+
|
|
69
|
+
2. **Generate Application Password**
|
|
70
|
+
- Scroll down to **Application Passwords** section
|
|
71
|
+
- In the "New Application Password Name" field, enter: `Claude Desktop MCP`
|
|
72
|
+
- Click **Add New Application Password**
|
|
73
|
+
|
|
74
|
+
3. **Copy the Password**
|
|
75
|
+
- WordPress will show a password like: `AbCd EfGh IjKl MnOp QrSt UvWx`
|
|
76
|
+
- **Important**: Copy this exactly with spaces
|
|
77
|
+
- You won't be able to see this password again
|
|
78
|
+
|
|
79
|
+
### Application Password Security
|
|
80
|
+
|
|
81
|
+
- **Never share** your application password
|
|
82
|
+
- **Regenerate regularly** for security
|
|
83
|
+
- **Use specific names** to track different applications
|
|
84
|
+
- **Revoke unused passwords** immediately
|
|
85
|
+
|
|
86
|
+
## ⚙️ DXT Configuration Options
|
|
87
|
+
|
|
88
|
+
### User Configuration Fields
|
|
89
|
+
|
|
90
|
+
The DXT extension provides these configuration options:
|
|
91
|
+
|
|
92
|
+
| Field | Required | Description | Example |
|
|
93
|
+
|-------|----------|-------------|---------|
|
|
94
|
+
| **WordPress Site URL** | Yes | Full URL to your WordPress site | `https://mysite.com` |
|
|
95
|
+
| **WordPress Username** | Yes | Your WordPress username | `admin` |
|
|
96
|
+
| **WordPress Application Password** | Yes | Generated app password | `AbCd EfGh IjKl MnOp QrSt UvWx` |
|
|
97
|
+
| **Authentication Method** | No | Auth method (default: app-password) | `app-password` |
|
|
98
|
+
| **Debug Mode** | No | Enable verbose logging | `false` |
|
|
99
|
+
|
|
100
|
+
### Advanced Configuration
|
|
101
|
+
|
|
102
|
+
For advanced users, the DXT extension supports:
|
|
103
|
+
|
|
104
|
+
- **Encrypted credential storage** via OS keychain
|
|
105
|
+
- **Automatic error recovery** with retry logic
|
|
106
|
+
- **Performance monitoring** and optimization
|
|
107
|
+
- **Cache management** for improved speed
|
|
108
|
+
|
|
109
|
+
## 🧪 Testing Your Installation
|
|
110
|
+
|
|
111
|
+
### Basic Functionality Test
|
|
112
|
+
|
|
113
|
+
1. **Restart Claude Desktop**
|
|
114
|
+
- Close and reopen Claude Desktop after configuration
|
|
115
|
+
- This ensures the extension loads properly
|
|
116
|
+
|
|
117
|
+
2. **Test with Simple Command**
|
|
118
|
+
Try typing in Claude:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
"List my recent WordPress posts"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
3. **Expected Response**
|
|
125
|
+
- Claude should connect to your WordPress site
|
|
126
|
+
- You should see a list of your recent posts
|
|
127
|
+
- Each post should show title, status, and date
|
|
128
|
+
|
|
129
|
+
### Advanced Testing
|
|
130
|
+
|
|
131
|
+
**Test Different Tool Categories:**
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
# Content Management
|
|
135
|
+
"Show me my WordPress site settings"
|
|
136
|
+
"List all my WordPress users"
|
|
137
|
+
"Check my recent comments"
|
|
138
|
+
|
|
139
|
+
# Performance Monitoring
|
|
140
|
+
"Show WordPress cache statistics"
|
|
141
|
+
"Check my site performance metrics"
|
|
142
|
+
|
|
143
|
+
# Media Management
|
|
144
|
+
"List recent media uploads"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## 🎯 Real-World Usage Examples
|
|
148
|
+
|
|
149
|
+
### Content Creation Workflow
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
👤 "Help me create a blog post about sustainable living with SEO optimization"
|
|
153
|
+
|
|
154
|
+
🤖 Claude will:
|
|
155
|
+
1. Generate SEO-optimized content
|
|
156
|
+
2. Create the post in WordPress
|
|
157
|
+
3. Add appropriate categories and tags
|
|
158
|
+
4. Set featured image if provided
|
|
159
|
+
5. Schedule or publish as requested
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Site Management Tasks
|
|
163
|
+
|
|
164
|
+
```text
|
|
165
|
+
👤 "Analyze my WordPress site performance and suggest improvements"
|
|
166
|
+
|
|
167
|
+
🤖 Claude will:
|
|
168
|
+
1. Check cache statistics
|
|
169
|
+
2. Review performance metrics
|
|
170
|
+
3. Analyze content structure
|
|
171
|
+
4. Provide optimization recommendations
|
|
172
|
+
5. Implement suggested changes if approved
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Bulk Operations
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
👤 "Update all posts from 2023 to include my new author bio"
|
|
179
|
+
|
|
180
|
+
🤖 Claude will:
|
|
181
|
+
1. List all posts from 2023
|
|
182
|
+
2. Show current author bios
|
|
183
|
+
3. Update each post with new bio
|
|
184
|
+
4. Confirm changes and provide summary
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## 🔧 Troubleshooting
|
|
188
|
+
|
|
189
|
+
### Common Issues and Solutions
|
|
190
|
+
|
|
191
|
+
#### 1. Extension Not Loading
|
|
192
|
+
|
|
193
|
+
**Symptoms:**
|
|
194
|
+
|
|
195
|
+
- WordPress tools don't appear in Claude
|
|
196
|
+
- "Extension failed to load" message
|
|
197
|
+
|
|
198
|
+
**Solutions:**
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
# Check if DXT package is corrupted
|
|
202
|
+
ls -la mcp-wordpress.dxt
|
|
203
|
+
|
|
204
|
+
# Re-download if file size seems wrong
|
|
205
|
+
curl -L -o mcp-wordpress.dxt https://github.com/docdyhr/mcp-wordpress/raw/main/mcp-wordpress.dxt
|
|
206
|
+
|
|
207
|
+
# Reinstall extension
|
|
208
|
+
# Remove from Claude Desktop and reinstall
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### 2. Connection Failures
|
|
212
|
+
|
|
213
|
+
**Symptoms:**
|
|
214
|
+
|
|
215
|
+
- "Cannot connect to WordPress" errors
|
|
216
|
+
- "Authentication failed" messages
|
|
217
|
+
|
|
218
|
+
**Solutions:**
|
|
219
|
+
|
|
220
|
+
1. **Verify WordPress URL**
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
# Test if WordPress REST API is accessible
|
|
224
|
+
curl https://yoursite.com/wp-json/wp/v2/
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
2. **Check Application Password**
|
|
228
|
+
- Ensure password includes spaces: `AbCd EfGh IjKl MnOp`
|
|
229
|
+
- Regenerate if unsure about format
|
|
230
|
+
- Verify WordPress user has sufficient permissions
|
|
231
|
+
|
|
232
|
+
3. **WordPress Configuration**
|
|
233
|
+
- Ensure REST API is enabled
|
|
234
|
+
- Check if Application Passwords are enabled
|
|
235
|
+
- Verify user role has necessary permissions
|
|
236
|
+
|
|
237
|
+
#### 3. Tools Not Working
|
|
238
|
+
|
|
239
|
+
**Symptoms:**
|
|
240
|
+
|
|
241
|
+
- Some WordPress tools return errors
|
|
242
|
+
- Partial functionality only
|
|
243
|
+
|
|
244
|
+
**Solutions:**
|
|
245
|
+
|
|
246
|
+
1. **Check WordPress Permissions**
|
|
247
|
+
|
|
248
|
+
```text
|
|
249
|
+
# Test specific permission in Claude
|
|
250
|
+
"Test my WordPress authentication status"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
2. **WordPress User Role Requirements**
|
|
254
|
+
|
|
255
|
+
| Tool Category | Minimum Role |
|
|
256
|
+
|---------------|--------------|
|
|
257
|
+
| **Read Operations** | Subscriber |
|
|
258
|
+
| **Posts/Pages** | Author |
|
|
259
|
+
| **Media** | Author |
|
|
260
|
+
| **Users** | Editor |
|
|
261
|
+
| **Site Settings** | Administrator |
|
|
262
|
+
|
|
263
|
+
#### 4. Performance Issues
|
|
264
|
+
|
|
265
|
+
**Symptoms:**
|
|
266
|
+
|
|
267
|
+
- Slow response times
|
|
268
|
+
- Timeout errors
|
|
269
|
+
|
|
270
|
+
**Solutions:**
|
|
271
|
+
|
|
272
|
+
1. **Enable Caching**
|
|
273
|
+
- DXT extension has built-in caching
|
|
274
|
+
- Check cache statistics: `"Show WordPress cache stats"`
|
|
275
|
+
|
|
276
|
+
2. **WordPress Optimization**
|
|
277
|
+
- Use caching plugins on WordPress
|
|
278
|
+
- Optimize database and media files
|
|
279
|
+
- Consider upgrading hosting
|
|
280
|
+
|
|
281
|
+
### Debug Mode
|
|
282
|
+
|
|
283
|
+
Enable debug mode for detailed troubleshooting:
|
|
284
|
+
|
|
285
|
+
1. **In DXT Configuration**
|
|
286
|
+
- Set "Debug Mode" to `true`
|
|
287
|
+
- Save configuration
|
|
288
|
+
|
|
289
|
+
2. **Check Debug Output**
|
|
290
|
+
- Look for detailed logs in Claude Desktop
|
|
291
|
+
- Check for specific error messages
|
|
292
|
+
|
|
293
|
+
## 🔄 Updates and Maintenance
|
|
294
|
+
|
|
295
|
+
### Automatic Updates
|
|
296
|
+
|
|
297
|
+
The DXT extension includes automatic update capabilities:
|
|
298
|
+
|
|
299
|
+
- **Background Updates**: New versions download automatically
|
|
300
|
+
- **Change Notifications**: You'll be notified of important updates
|
|
301
|
+
- **Rollback Support**: Ability to rollback if issues occur
|
|
302
|
+
|
|
303
|
+
### Manual Updates
|
|
304
|
+
|
|
305
|
+
To manually update:
|
|
306
|
+
|
|
307
|
+
1. **Download Latest Version**
|
|
308
|
+
- Get newest `mcp-wordpress.dxt` from GitHub
|
|
309
|
+
- Check release notes for changes
|
|
310
|
+
|
|
311
|
+
2. **Replace Extension**
|
|
312
|
+
- Remove current extension from Claude Desktop
|
|
313
|
+
- Install new DXT package
|
|
314
|
+
- Reconfigure if necessary (settings usually persist)
|
|
315
|
+
|
|
316
|
+
### Version Compatibility
|
|
317
|
+
|
|
318
|
+
| DXT Version | Claude Desktop | WordPress |
|
|
319
|
+
|-------------|----------------|-----------|
|
|
320
|
+
| **v1.5.3+** | Latest | 5.0+ |
|
|
321
|
+
| **v1.4.x** | 0.8+ | 5.0+ |
|
|
322
|
+
| **v1.3.x** | 0.7+ | 5.0+ |
|
|
323
|
+
|
|
324
|
+
## 🆚 DXT vs Alternative Methods
|
|
325
|
+
|
|
326
|
+
### When to Use DXT Extension
|
|
327
|
+
|
|
328
|
+
✅ **Best for:**
|
|
329
|
+
|
|
330
|
+
- Non-technical users
|
|
331
|
+
- Single WordPress site
|
|
332
|
+
- Easy setup and maintenance
|
|
333
|
+
- Built-in security and updates
|
|
334
|
+
|
|
335
|
+
### When to Use NPX Method
|
|
336
|
+
|
|
337
|
+
✅ **Best for:**
|
|
338
|
+
|
|
339
|
+
- Multiple WordPress sites
|
|
340
|
+
- Command line comfort
|
|
341
|
+
- Custom configuration needs
|
|
342
|
+
- Development environments
|
|
343
|
+
|
|
344
|
+
### Migration Between Methods
|
|
345
|
+
|
|
346
|
+
**From DXT to NPX:**
|
|
347
|
+
|
|
348
|
+
1. Note your current DXT configuration
|
|
349
|
+
2. Remove DXT extension from Claude Desktop
|
|
350
|
+
3. Follow NPX setup guide with same credentials
|
|
351
|
+
4. Configure multi-site if needed
|
|
352
|
+
|
|
353
|
+
**From NPX to DXT:**
|
|
354
|
+
|
|
355
|
+
1. Note your current NPX configuration
|
|
356
|
+
2. Remove NPX from Claude Desktop config
|
|
357
|
+
3. Install DXT extension
|
|
358
|
+
4. Enter same WordPress credentials
|
|
359
|
+
|
|
360
|
+
## 🎓 Advanced Features
|
|
361
|
+
|
|
362
|
+
### Built-in Tool Discovery
|
|
363
|
+
|
|
364
|
+
The DXT extension includes intelligent tool discovery:
|
|
365
|
+
|
|
366
|
+
```text
|
|
367
|
+
# Ask Claude about available tools
|
|
368
|
+
"What WordPress tools are available?"
|
|
369
|
+
"Show me tools for managing WordPress media"
|
|
370
|
+
"What performance monitoring tools do you have?"
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Context-Aware Assistance
|
|
374
|
+
|
|
375
|
+
Claude understands WordPress context with DXT:
|
|
376
|
+
|
|
377
|
+
```text
|
|
378
|
+
# WordPress-specific help
|
|
379
|
+
"Help me optimize my WordPress site for speed"
|
|
380
|
+
"What's the best way to manage WordPress comments?"
|
|
381
|
+
"Show me WordPress security best practices"
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### Integration with Claude's Knowledge
|
|
385
|
+
|
|
386
|
+
DXT combines with Claude's knowledge for enhanced assistance:
|
|
387
|
+
|
|
388
|
+
```text
|
|
389
|
+
# Content strategy with WordPress integration
|
|
390
|
+
"Analyze my WordPress posts and suggest a content calendar"
|
|
391
|
+
"Help me improve my WordPress site's SEO"
|
|
392
|
+
"Create a social media strategy based on my WordPress content"
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
## 🆘 Getting Help
|
|
396
|
+
|
|
397
|
+
### Support Resources
|
|
398
|
+
|
|
399
|
+
1. **Documentation**
|
|
400
|
+
- [Complete Documentation](../README.md)
|
|
401
|
+
- [Troubleshooting Guide](../TROUBLESHOOTING.md)
|
|
402
|
+
- [API Reference](../api/README.md)
|
|
403
|
+
|
|
404
|
+
2. **Community Support**
|
|
405
|
+
- [GitHub Discussions](https://github.com/docdyhr/mcp-wordpress/discussions)
|
|
406
|
+
- [Issue Tracker](https://github.com/docdyhr/mcp-wordpress/issues)
|
|
407
|
+
|
|
408
|
+
3. **Professional Support**
|
|
409
|
+
- For enterprise needs
|
|
410
|
+
- Custom integrations
|
|
411
|
+
- Priority support
|
|
412
|
+
|
|
413
|
+
### Reporting Issues
|
|
414
|
+
|
|
415
|
+
When reporting DXT-related issues, include:
|
|
416
|
+
|
|
417
|
+
1. **DXT Version**: Check in Claude Desktop extensions
|
|
418
|
+
2. **WordPress Version**: From WordPress admin
|
|
419
|
+
3. **Error Messages**: Exact text of any errors
|
|
420
|
+
4. **Steps to Reproduce**: What you were trying to do
|
|
421
|
+
5. **Configuration**: WordPress role, site type, etc.
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
**Ready to get started?** [Download the DXT extension](https://github.com/docdyhr/mcp-wordpress/raw/main/mcp-wordpress.dxt)
|
|
426
|
+
and transform your WordPress management experience!
|