Skip to content
MCP Servers
Skill

/wordpress

Provision a headless WordPress backend for the Hostinger Headless flow: create the headless website with WordPress at /cms, verify and self-heal, then record it in site.json.

From plugin
api-mcp-server
17220 skills

Claude Code

$ npx -y skills add hostinger/api-mcp-server --skill wordpress --agent claude-code

SKILL.md

wordpress.SKILL.md
name: headless-step-provision-wordpress
description: "Provision a headless WordPress backend for the Hostinger Headless flow: create the headless website with WordPress at /cms, verify and self-heal, then record it in site.json."

headless-step-provision-wordpress

Create the headless WordPress backend for `<domain>` and prove it is ready. One platform call lays every headless site out identically: WordPress in `public_html/cms`, Hostinger AI Assistant + MCP adapter, site marked `headless`. **Out:** `site.json`.

All operations below go through the Hostinger connector (`execute`).

> **Fire vs join (background provision).** Step 1, plus the queuing call — `hosting_websites_create` > for a fresh site (Step 2) **or** `wordpress_installations_install` to swap an empty headless shell > (Step 2b) — are the **fire** half: once the job is queued, record `provision.in_progress` and return > to do prepare work (see the router `../SKILL.md`). The readiness **poll** at the end of Step 2 / 2b, > plus Steps 3–6, are the **join** half — run them when an instance-barrier step needs the backend (or > immediately, if the agent can't interleave). An already-`completed` site with WordPress at `/cms` > detected in Step 1 means provision is already done: record `provision.completed` and adopt it.

Step 1 — Detect before you create (never provision twice)

1. `hosting_websites_list { "domain": "<domain>" }` — substring filter, so **exact-match** the row's `domain`. If a row exists, note `username`, `order_id`, `website_type`. 2. **No exact row** → nothing exists on this domain → **create fresh** (Step 2). 3. **A row exists.** If `website_type` is **not** `headless`, stop and tell the user — this domain already hosts a different kind of site (plain WordPress, Node.js, builder, …); never overwrite it. If it **is** `headless`, work out whether WordPress is already installed or the shell is still empty: check `hosting_websites_list-setups { "domain": "<domain>" }` (exact row) and `wordpress_installations_list { username, domain, ownership: "all" }` (exact row):

  • Setup `running` → provisioning is underway → skip to Step 2's poll.
  • Setup `failed` → tell the user and point them at hPanel; do **not** call `hosting_websites_create` again yourself.
  • A WordPress install with `directory: "cms"` already present (or setup `type: headless_wordpress`)

→ **already provisioned** → skip to Step 3 (adopt it).

  • A `headless` site with **no** `/cms` install (an **empty headless shell** — setup

`type: headless_empty`, typically from onboarding) → **swap it to WordPress** (Step 2b). Do **not** call `hosting_websites_create` again — the website already exists; you only install WordPress into it.

Step 2 — Create a fresh headless WordPress site (only when no site exists)

1. Pick the plan: `hosting_orders_list { "statuses": ["active"] }`. One active order → use it; several → ask the user which. 2. Start the setup:

   { "operation": "hosting_websites_create",
     "params": { "order_id": <order_id>, "type": "headless_wordpress", "domain": "<domain>" } }

`domain` must be a **customer-owned** domain. For a temporary `*.hostingersite.com` subdomain, **omit `domain`** — the setup generates one itself and returns it in the response. Don't call a separate subdomain op to make one first: there's no need in this flow. The response then carries the generated domain: if it differs from the workspace directory name, move `~/.hostinger/<old>/` to `~/.hostinger/<new>/` (if `<new>/` already exists, stop and ask instead of moving into it), update the domain in `brief.md`, and tell the user the new domain. Admin credentials are generated by the platform; never ask the user for a password. 3. Don't wait here. At the join, `cd "$HOME" && node <skill>/wait.mjs setup <domain>` (see *Waiting on Hostinger* in the top-level `SKILL.md`) returns once the setup is `completed`, usually at once by then. A `failed` setup → stop, point at hPanel.

Step 2b — Swap an empty headless shell to WordPress (only when onboarding already made the shell)

The website already exists as an empty `headless` shell, so there is **no `hosting_websites_create`** here — you install WordPress straight into its `/cms` directory. This is the onboarding handoff path.

1. Use the shell's `username` and `order_id` from Step 1's row — no new order pick, no new website. 2. Install WordPress into `/cms`, flagged headless:

   { "operation": "wordpress_installations_install",
     "params": { "username": "<username>", "domain": "<domain>", "type": "headless",
       "site_title": "<the brief's Site name>",
       "credentials": { "login": "<admin login>", "email": "<account email>",
         "password": "<strong generated password>" } } }
  • `type: "headless"` installs into `/cms` with the Hostinger headless MU plugin and marks the site

headless-WordPress; **`directory` is not allowed with it** (it is always `cms`). The target must already be `headless` — the headless install rewrites the root `.htaccess`, so the API rejects it with `422` on any non-headless site (which is why Step 1 confirms `website_type: headless` first).

  • **You generate the admin password** (strong, 8–50 chars, mixed case + a digit) — never ask the user

for one and never print it. The user signs in later through a one-click login link (Step 6), so the password only has to exist, not be remembered.

  • A new database is created for the install unless you pass `database.name` of an existing one; the

generated database counts against the plan's limit. 3. The call is **asynchronous** — a success response only means the install job was **queued**. This is the *fire*: record `provision.in_progress` and return to prepare work. At the join, `cd "$HOME" && node <skill>/wait.mjs cms <domain> <username>` returns the `/cms` install row (`directory: "cms"`,

Read more
@hostinger
Ships withapi-mcp-server

Model Context Protocol (MCP) server for Hostinger API.

Stars on GitHub

Momentum

stars in total
172
Star history of hostinger/api-mcp-server on GitHub, a chart by star-history.com

Other skills on api-mcp-server.

audit-hosting

audit-hosting

Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…

connect-domain

connect-domain

Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…

headless

headless

Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…

connect

connect

Connect step for the Hostinger Headless flow — verify Node, run the bootstrap (reach the Hostinger MCP server + OAuth sign-in),…

01-check-state

01-check-state

First build step of the Hostinger Headless flow, run right after connect. Works out where a given domain's build stands — is a…

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp4d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp4d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about wordpress.

Which coding agents can use wordpress?
wordpress installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.