mcp-wordpress 2.2.0 → 2.4.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 (71) hide show
  1. package/README.md +503 -0
  2. package/dist/client/api.d.ts +90 -0
  3. package/dist/client/api.d.ts.map +1 -1
  4. package/dist/client/api.js +90 -0
  5. package/dist/client/api.js.map +1 -1
  6. package/dist/security/AISecurityScanner.d.ts +175 -0
  7. package/dist/security/AISecurityScanner.d.ts.map +1 -0
  8. package/dist/security/AISecurityScanner.js +645 -0
  9. package/dist/security/AISecurityScanner.js.map +1 -0
  10. package/dist/security/AutomatedRemediation.d.ts +145 -0
  11. package/dist/security/AutomatedRemediation.d.ts.map +1 -0
  12. package/dist/security/AutomatedRemediation.js +535 -0
  13. package/dist/security/AutomatedRemediation.js.map +1 -0
  14. package/dist/security/SecurityCIPipeline.d.ts +213 -0
  15. package/dist/security/SecurityCIPipeline.d.ts.map +1 -0
  16. package/dist/security/SecurityCIPipeline.js +684 -0
  17. package/dist/security/SecurityCIPipeline.js.map +1 -0
  18. package/dist/security/SecurityConfigManager.d.ts +294 -0
  19. package/dist/security/SecurityConfigManager.d.ts.map +1 -0
  20. package/dist/security/SecurityConfigManager.js +553 -0
  21. package/dist/security/SecurityConfigManager.js.map +1 -0
  22. package/dist/security/SecurityMonitoring.d.ts +245 -0
  23. package/dist/security/SecurityMonitoring.d.ts.map +1 -0
  24. package/dist/security/SecurityMonitoring.js +596 -0
  25. package/dist/security/SecurityMonitoring.js.map +1 -0
  26. package/dist/security/SecurityReviewer.d.ts +168 -0
  27. package/dist/security/SecurityReviewer.d.ts.map +1 -0
  28. package/dist/security/SecurityReviewer.js +683 -0
  29. package/dist/security/SecurityReviewer.js.map +1 -0
  30. package/dist/security/index.d.ts +182 -0
  31. package/dist/security/index.d.ts.map +1 -0
  32. package/dist/security/index.js +189 -0
  33. package/dist/security/index.js.map +1 -0
  34. package/dist/tools/media.d.ts +43 -4
  35. package/dist/tools/media.d.ts.map +1 -1
  36. package/dist/tools/media.js +43 -4
  37. package/dist/tools/media.js.map +1 -1
  38. package/dist/tools/posts.d.ts +225 -4
  39. package/dist/tools/posts.d.ts.map +1 -1
  40. package/dist/tools/posts.js +225 -4
  41. package/dist/tools/posts.js.map +1 -1
  42. package/docs/DOCKER_PUBLISHING_TROUBLESHOOTING.md +233 -0
  43. package/docs/PUBLISHING-TROUBLESHOOTING.md +227 -0
  44. package/docs/api/README.md +53 -11
  45. package/docs/api/openapi.json +10 -10
  46. package/docs/api/summary.json +1 -1
  47. package/docs/api/tools/wp_create_post.md +9 -3
  48. package/docs/api/tools/wp_delete_post.md +2 -3
  49. package/docs/api/tools/wp_get_current_user.md +7 -1
  50. package/docs/api/tools/wp_get_post.md +2 -3
  51. package/docs/api/tools/wp_get_post_revisions.md +1 -1
  52. package/docs/api/tools/wp_list_posts.md +10 -3
  53. package/docs/api/tools/wp_list_users.md +8 -1
  54. package/docs/api/tools/wp_search_site.md +8 -1
  55. package/docs/api/tools/wp_test_auth.md +8 -1
  56. package/docs/api/tools/wp_update_post.md +2 -3
  57. package/docs/examples/docker-production.md +801 -0
  58. package/docs/examples/multi-site-setup.md +575 -0
  59. package/docs/examples/single-site-setup.md +390 -0
  60. package/docs/examples/use-case-workflows.md +469 -0
  61. package/package.json +11 -3
  62. package/src/client/api.ts +90 -0
  63. package/src/security/AISecurityScanner.ts +780 -0
  64. package/src/security/AutomatedRemediation.ts +665 -0
  65. package/src/security/SecurityCIPipeline.ts +969 -0
  66. package/src/security/SecurityConfigManager.ts +829 -0
  67. package/src/security/SecurityMonitoring.ts +841 -0
  68. package/src/security/SecurityReviewer.ts +855 -0
  69. package/src/security/index.ts +249 -0
  70. package/src/tools/media.ts +43 -4
  71. package/src/tools/posts.ts +225 -4
@@ -2,7 +2,14 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Creates a new post.
5
+ Creates a new WordPress post with comprehensive validation and detailed success feedback including management links.
6
+
7
+ **Usage Examples:**
8
+ • Simple post: `wp_create_post --title="My New Post" --content="<p>Hello World!</p>"`
9
+ • Draft post: `wp_create_post --title="Draft Post" --status="draft"`
10
+ • Categorized post: `wp_create_post --title="Tech News" --categories=[1,5] --tags=[10,20]`
11
+ • Scheduled post: `wp_create_post --title="Future Post" --status="future" --date="2024-12-25T10:00:00"`
12
+ • Complete post: `wp_create_post --title="Complete Post" --content="<p>Content</p>" --excerpt="Summary" --status="publish"`
6
13
 
7
14
  ## Parameters
8
15
 
@@ -75,8 +82,7 @@ wp_create_post --title="Example Post Title" --content="This is example content f
75
82
 
76
83
  **Endpoint:** `/wp-json/wp/v2/posts`
77
84
 
78
- This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
79
- parameters are determined by WordPress core functionality.
85
+ This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
80
86
 
81
87
  ### WordPress Documentation
82
88
  - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Deletes a post.
5
+ Deletes a WordPress post with option for permanent deletion or moving to trash.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -46,8 +46,7 @@ wp_delete_post --id="123"
46
46
 
47
47
  **Endpoint:** `/wp-json/wp/v2/posts/{id}`
48
48
 
49
- This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
50
- parameters are determined by WordPress core functionality.
49
+ This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
51
50
 
52
51
  ### WordPress Documentation
53
52
  - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
@@ -2,7 +2,13 @@
2
2
 
3
3
  ![user](https://img.shields.io/badge/category-user-lightgrey)
4
4
 
5
- Retrieves the currently authenticated user.
5
+ Retrieves the currently authenticated user with comprehensive profile information including roles, capabilities, and account details.
6
+
7
+ **Usage Examples:**
8
+ • Get current user: `wp_get_current_user`
9
+ • Check permissions: Use this to verify your current user's capabilities and roles
10
+ • Account verification: Confirm you're authenticated with the correct account
11
+ • Profile details: View registration date, email, and user metadata
6
12
 
7
13
  ## Parameters
8
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Retrieves a single post by its ID.
5
+ Retrieves detailed information about a single post including metadata, content statistics, and management links.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -48,8 +48,7 @@ wp_get_post --id="123"
48
48
 
49
49
  **Endpoint:** `/wp-json/wp/v2/posts/{id}`
50
50
 
51
- This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
52
- parameters are determined by WordPress core functionality.
51
+ This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
53
52
 
54
53
  ### WordPress Documentation
55
54
  - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Retrieves revisions for a specific post.
5
+ Retrieves the revision history for a specific post showing author and modification dates.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -2,7 +2,15 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Lists posts from a WordPress site, with filters.
5
+ Lists posts from a WordPress site with comprehensive filtering options. Supports search, status filtering, and category/tag filtering with enhanced metadata display.
6
+
7
+ **Usage Examples:**
8
+ • Basic listing: `wp_list_posts`
9
+ • Search posts: `wp_list_posts --search="AI trends"`
10
+ • Filter by status: `wp_list_posts --status="draft"`
11
+ • Category filtering: `wp_list_posts --categories=[1,2,3]`
12
+ • Paginated results: `wp_list_posts --per_page=20 --page=2`
13
+ • Combined filters: `wp_list_posts --search="WordPress" --status="publish" --per_page=10`
6
14
 
7
15
  ## Parameters
8
16
 
@@ -92,8 +100,7 @@ wp_list_posts --per_page="10" --search="wordpress" --status="publish" --categori
92
100
 
93
101
  **Endpoint:** `/wp-json/wp/v2/posts`
94
102
 
95
- This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
96
- parameters are determined by WordPress core functionality.
103
+ This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
97
104
 
98
105
  ### WordPress Documentation
99
106
  - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)
@@ -2,7 +2,14 @@
2
2
 
3
3
  ![user](https://img.shields.io/badge/category-user-lightgrey)
4
4
 
5
- Lists users from a WordPress site, with filters.
5
+ Lists users from a WordPress site with comprehensive filtering and detailed user information including roles, registration dates, and activity status.
6
+
7
+ **Usage Examples:**
8
+ • List all users: `wp_list_users`
9
+ • Search users: `wp_list_users --search="john"`
10
+ • Filter by role: `wp_list_users --roles=["editor","author"]`
11
+ • Find admins: `wp_list_users --roles=["administrator"]`
12
+ • Combined search: `wp_list_users --search="smith" --roles=["subscriber"]`
6
13
 
7
14
  ## Parameters
8
15
 
@@ -2,7 +2,14 @@
2
2
 
3
3
  ![site](https://img.shields.io/badge/category-site-lightblue)
4
4
 
5
- Performs a site-wide search for content.
5
+ Performs a site-wide search for content across posts, pages, and media with comprehensive results and metadata.
6
+
7
+ **Usage Examples:**
8
+ • Search everything: `wp_search_site --term="WordPress"`
9
+ • Search posts only: `wp_search_site --term="tutorial" --type="posts"`
10
+ • Search pages: `wp_search_site --term="about" --type="pages"`
11
+ • Search media: `wp_search_site --term="logo" --type="media"`
12
+ • Find specific content: `wp_search_site --term="contact form"`
6
13
 
7
14
  ## Parameters
8
15
 
@@ -2,7 +2,14 @@
2
2
 
3
3
  ![auth](https://img.shields.io/badge/category-auth-darkblue)
4
4
 
5
- Tests the authentication and connectivity for a configured WordPress site.
5
+ Tests the authentication and connectivity for a configured WordPress site with detailed connection diagnostics.
6
+
7
+ **Usage Examples:**
8
+ • Test connection: `wp_test_auth`
9
+ • Multi-site test: `wp_test_auth --site="my-site"`
10
+ • Verify setup: Use this after configuring new credentials
11
+ • Troubleshoot: Run when experiencing connection issues
12
+ • Health check: Regular verification of WordPress connectivity
6
13
 
7
14
  ## Parameters
8
15
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![post](https://img.shields.io/badge/category-post-lightgrey)
4
4
 
5
- Updates an existing post.
5
+ Updates an existing WordPress post with validation and detailed confirmation.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -73,8 +73,7 @@ wp_update_post --id="123" --title="Example Post Title" --content="This is exampl
73
73
 
74
74
  **Endpoint:** `/wp-json/wp/v2/posts/{id}`
75
75
 
76
- This tool directly interfaces with the WordPress REST API endpoint above. The response format and available
77
- parameters are determined by WordPress core functionality.
76
+ This tool directly interfaces with the WordPress REST API endpoint above. The response format and available parameters are determined by WordPress core functionality.
78
77
 
79
78
  ### WordPress Documentation
80
79
  - [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/)