Get the plugin
WP MCP/Integrations/Operations

Operations integration

Under Construction MCP

get-site-gate-status on the theme dispatcher pair reads every coming soon and maintenance mechanism on the site, Under Construction included: whether it is active, what visitors get and which roles and users are whitelisted, confirmed by a live request to the home page as an anonymous visitor. For Under Construction, enable-site-gate and disable-site-gate flip its status in the ucp_options option. Enabling is refused when another gate is already active, when your role is not whitelisted, or when its end date has already passed, so it would close nothing; it needs confirm:true with a preview, and right after the write WP MCP probes wp-login.php and the REST API and restores the settings if either is blocked. Each toggle is one snapshot of ucp_options, so rollback-operation restores it. Toggles are off until a site opts in with the wpmcp_enable_site_gate_write filter; the read is always on, at manage_options.

theme-readtheme-write

What your AI can do

Real Under Construction operations, every write reversible.

  • See whether Under Construction or any other gate is closing the site
  • Read the whitelisted roles and users that bypass it
  • Switch Under Construction on, with a preview and confirm:true (opt-in)
  • Switch it off again, or roll the toggle back

Example prompts

Example Under Construction prompts.

Why does the homepage show an under construction page to logged-out visitors?

Turn on the Under Construction page until the redesign is ready.

Take the site out of Under Construction mode.

Under the hood

The Under Construction calls, under the hood.

wpmcp, under-construction

theme-read({ operation: "get-site-gate-status" }), live anonymous probe included

theme-write({ operation: "disable-site-gate", args: { plugin: "under-construction-page" } }), opt-in; snapshotted; no confirm needed

In the free plugin

The Under Construction integration is in the free plugin.

The core Under Construction tools ship in the free, GPL plugin with the full snapshot and undo engine, and no trial clock. Pro adds 133 more tools, including Elementor deep editing, the other page builders, the forms adapter pack and, for some integrations, extra operations. The pricing page lists what each tier includes.

Frequently asked

Under Construction MCP: questions, answered.

What stops the agent closing the site on itself?

Enabling is refused unless your role or user is whitelisted in Under Construction, and after the write WP MCP checks that wp-login.php and the REST API still answer. If either is blocked, the settings are restored at once and the undo point is voided.

Why was my enable refused with end_date_passed?

Under Construction has an end date in the past, so turning it on would close nothing. Change the date in its settings first.

Point your AI at Under Construction.