Theme Draft Status


Shows every theme change waiting in the draft, whether publishing it would overwrite something changed on the live site since, whether this host supports theme editing and its safety checks, and the recent backups that can be restored. Read-only. Start here before publishing.

Also known as: pending theme changes, unpublished changes, staging.

Property Value
Ability slug mosmcp/theme-draft-status
Wire tool name mosmcp__theme-draft-status
Category Theme: Draft and Publish (mosmcp-theme-draft)
Plan Free

 

Required access

Requirement Value
Capability edit_theme_options
Minimum default role Administrator (Shop manager too when WooCommerce is active)
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Takes no input. Send "input": {} (or omit input).

 

Output schema

Field Type Required Description
draft object Yes
draft.exists boolean
draft.change_count integer
draft.templates string[]
draft.template_parts string[]
draft.global_styles string
draft.patterns string[]
draft.files string[]
draft.site_identity string[] Pending logo and site icon changes.
draft.custom_css string[] Pending change to the Customizer's Additional CSS. A block theme's Additional CSS is part of global styles.
draft.theme_settings string[] Pending theme (Customizer) settings.
draft.created string
draft.updated string
draft.preview_ready boolean
stale boolean True when a draft exists for a theme that is no longer active.
stale_theme string
conflicts string[] Live changes made since the draft started that publishing would overwrite.
preflight object Yes
preflight.theme string
preflight.is_block_theme boolean
preflight.is_child_theme boolean
preflight.filesystem_method string
preflight.files_writable boolean
preflight.file_editing boolean
preflight.file_editing_note string
preflight.loopback_ok boolean
preflight.loopback_note string
preflight.receives_updates boolean
backups object[]
backups[].id string
backups[].created string
backups[].files string[]
backups[].templates string[]
backups[].global_styles boolean
backups[].patterns string[]
backups[].site_identity string[]
backups[].custom_css boolean
backups[].theme_settings string[]
backups[].restored boolean
notes string[]

 

Example

Sample prompt
What theme changes are waiting to be published?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 313,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__theme-draft-status",
    "arguments": {
      "input": {}
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 313,
  "result": {
    "isError": false,
    "structuredContent": {
      "draft": {
        "exists": true,
        "change_count": 2,
        "templates": [
          "single (update)"
        ],
        "template_parts": [],
        "global_styles": "",
        "patterns": [],
        "files": [
          "style.css (write)"
        ],
        "created": "2026-09-29 10:15:00 UTC",
        "updated": "2026-09-29 10:40:00 UTC",
        "preview_ready": true
      },
      "stale": false,
      "stale_theme": "",
      "conflicts": [],
      "preflight": {
        "theme": "twentytwentyfive",
        "is_block_theme": true,
        "is_child_theme": false,
        "filesystem_method": "direct",
        "files_writable": true,
        "file_editing": true,
        "loopback_ok": true,
        "receives_updates": true
      },
      "backups": [
        {
          "id": "20260928-153012-a1b2c3",
          "created": "2026-09-28 15:30:12 UTC",
          "files": [
            "functions.php"
          ],
          "templates": [],
          "global_styles": false,
          "patterns": [],
          "restored": false
        }
      ],
      "notes": [
        "Visitors still see the live site. Preview with mosmcp/theme-draft-preview, test with mosmcp/theme-draft-check, then publish with mosmcp/theme-draft-publish."
      ]
    }
  }
}

 

Edge cases / errors

  • A draft exists for a theme that is no longer active → stale is true and a note says to discard it before starting a new one.
  • Live changes made since the draft started are listed in conflicts; publishing would refuse while any remain.
  • No pending changes → draft.exists may be false and a note says so.
  • preflight shows whether this host can edit theme files at all (filesystem method, file-editing constants, loopback).

 


<< Previous Next >>
Restore Theme Backup Get Site Logo and Icon

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.