mhmd-azeez/wordpress
# Wordpress
This serverlet allows you to manage your wordpress blogs!
## Useful use cases
1. Writing/editing blog posts
2. Comment section moderation
3. Finding broken links (by combining it with https://www.mcp.run/bhelx/fetch)
4. Many more!
## Configuration
### If your website is hosted on wordpress.com
Wordpress.com is a bit different from the open source version. You'll need to create an app here: https://wordpress.com/support/security/two-step-authentication/application-specific-passwords/#add-a-new-application-password
1. And you can enable application password here (You'll need to enable 2FA):
https://wordpress.com/support/security/two-step-authentication/application-specific-passwords/#add-a-new-application-password
2. Set `on_prem` to `no` in the configs
3. Make sure to add "your-website.wordpress.com" or your custom domain name to "Domain Access"
### If your website is hosted somewhere else
1. You can find your username and application passwords at https://your-website.com/wp-admin/profile.php
Note: application passwords are only available if either:
- You have enabled https
- The `WP_ENVIRONMENT_TYPE` is set to `local`
2. Set `on_prem` to `yes` in the configs
3. Make sure to allow your domain name is in "Domain Access"
Available Tools
wp_post_create
Create a new WordPress post
wp_post_edit
Edit an existing WordPress post
wp_post_get
Get a single WordPress post by ID
wp_post_delete
Delete a WordPress post
wp_post_list
List WordPress posts with pagination and filtering
wp_post_schedule
Schedule a post for future publication
wp_category_create
Create a new WordPress category
wp_category_list
List all WordPress categories
wp_tag_create
Create a new WordPress tag
wp_tag_list
List all WordPress tags
wp_comment_list
List WordPress comments, optionally filtered by post
wp_comment_approve
Approve a WordPress comment
wp_comment_delete
Remove a WordPress comment