Skip to main content
Glama

Keelhob

Build your WordPress site or store from one prompt. Free, forever.

CI License: GPL v2 Donate on Ko-fi Roadmap Documentation

https://github.com/user-attachments/assets/e4c0be23-7aea-4dac-adaf-e1725a499c6e

One sitting, 69 minutes, cut to three and a half. Eight chapters — install, connect Claude, one prompt, store setup, products, pages, redesign, result. Nothing is staged and nothing is re-shot: it is one recording, and the parts where the screen sat still were dropped. Where it is sped up, the speed is on screen the whole time, so you can see what was skipped. Keys, tokens and local paths are blurred.

WordPress shipped a famous five-minute install, back when standing up a database-driven site took days. It kept that promise. Then the hard part moved: installing is trivial now, and building is twenty plugins and a week you did not plan to spend. Keelhob puts the five minutes back where the work actually is, with a database, a store, and code you actually own.

Install one plugin, connect Claude Code (or Claude Desktop, Cursor, Codex, any MCP client), and say what you want. It asks a few questions, then builds: pages, products, checkout, SEO, snippets, media. Don't want to run a client at all? Add your own API key and the site runs itself — on a schedule, or from a Telegram chat with voice notes, screenshots and approve-by-button.

New here? Read the manual. It is the whole thing in one page — install, connect, every tool, every capability group, troubleshooting — written for someone who has never touched MCP, and you do not need GitHub to read it. The same document ships inside the zip as DOCUMENTATION.md, and an agent can fetch it as plain markdown in one request at keelhob.com/llms-full.txt.

Already know what this is, and want the tool-by-tool detail? That is docs/features.md — the developer view.

What it cannot do yet

  • No onboarding wizard. Activation drops you on an admin page; connecting an agent is a copy-paste step you do yourself.

  • No independent security audit. ~2,600 unit assertions and a live rig against real WordPress, and nobody outside this project has read the code. Commissioning that is the top line in FUNDING.md.

  • Permissions are coarse. Capability groups, on or off — no per-tool approval and no queue that asks before a destructive action runs.

  • No rollback. /undo reverses one turn and only content: posts, pages, products. Not settings, plugins, files or live snippets. Nothing snapshots the site, so backups are yours.

  • Block themes and full site editing are not supported. Pages are built with Gutenberg, Elementor, or custom-coded page templates.

  • No data importer. Nothing reads a Shopify, Wix or Squarespace export and loads it in. The site-clone skills rebuild a site's design and structure by looking at it, which is a different job: orders, customers and stock do not come across. Going the other way, a variable product only half-migrates between Keelhob sites: the page moves, its attributes and variations do not, and the import says so.

  • One agent at a time, no background job queue: a long interactive build lives inside the session that started it. Not translated, either — strings are wrapped, no translation ships.

  • Telegram needs a public HTTPS URL with a valid certificate — a localhost or self-signed staging site cannot receive messages.

  • Not on WordPress.org, and it will not be: the directory does not allow a plugin that executes arbitrary PHP. Install the zip; it updates itself from GitHub releases.

ROADMAP.md says which of these are being fixed, and in what order.

Related MCP server: WordPress MCP Server

Screenshots

The Connect page, showing the generated MCP commandConnect — the ready-to-paste command, with this site's URL already in it. The token is stored hashed and shown once.

The Snippets Studio listing installed snippetsSnippets Studio — every piece of code the agent installed, why it exists, and its off switch. The top row switched itself off after taking the site down.

The capability toggles panelCapabilities — twenty-four groups, ten of them off out of the box, each saying what it unlocks.

The front end of a store the agent builtThe output — the front end of a real store Keelhob built: theme, pages, products, and the live preview that puts your words on the mug. Nothing here was hand-coded.

Why it is free

Keelhob was built as a free core with a paid add-on beside it. The paid version was designed, built and finished — payments, orders, deploy, the Snippets Studio, six expert skills — and then given away, because a plugin whose whole point is handing people back a promise should not take part of that promise away again at a checkout. It runs on donations instead. Every feature is in this repository: no paid tier, no locked capability, no trial, no upsell in the admin, and no telemetry beyond an update check you can switch off (exactly what it sends).

Support Keelhob on Ko-fi — or star the repo, report a bug, or write a skill. Skills are plain markdown; no PHP needed.

Install

  1. Download keelhob.zip from the latest release.

  2. WordPress admin → Plugins → Add New → Upload Plugin → the zip → Install Now → Activate.

  3. Open Keelhob in the admin menu.

Requires WordPress 6.3+ and PHP 8.0+. WooCommerce and any SEO plugin (Yoast, Rank Math, AIOSEO, SEOPress) are auto-detected if present; none are required. Keelhob → Connect then prints a ready-to-paste command with your real URL and token in it:

claude mcp add keelhob-yoursite --transport http https://yoursite.com/wp-json/keelhob/v1/mcp --header "Authorization: Bearer kh_xxxxxxxx"

Run it, start a new session, and the tools appear. Try "list the plugins on this site". The same page outputs a JSON mcpServers block for Claude Desktop, Cursor and Codex; authenticate with the bearer token or a WordPress Application Password.

If a snippet breaks your site

Put this in wp-config.php, above the "That's all, stop editing" line:

define('KEELHOB_SNIPPETS_OFF', true);

Every snippet stops running immediately, whatever the admin page says. Remove the line to switch them back on; nothing is deleted. Edit the file however you normally would — FTP, your host's file manager, a shell. None of that needs a working site or a database client, which is the point: the case this exists for is a site you cannot load.

Why a constant and not a button. A snippet can take a site offline without ever erroring, and the commonest way is returning a 503 from the front end — for a coming-soon page, say. Managed and containerised hosts poll the home page to decide whether the site is alive, read that 503 as this server is dead, and stop routing to it. wp-admin goes with it, and so does the MCP endpoint an agent would need to undo its own change. Every switch inside WordPress is unreachable at that point, so the switch has to live outside it.

The plugin already auto-deactivates a snippet that causes a fatal error. This covers the other case: one that runs exactly as written and breaks the site anyway.

How risky this is, honestly

A connected agent can write PHP, read your database and change your files. That is the product, not a defect. So the answer is not "staging only" — it is graded, and this is the grading.

Ten capability groups ship switched off, and are forced off once on any site still carrying settings from the old free/paid split, so an automatic update cannot quietly hand them over:

Group

Off because it can

abilities

let the AI write new PHP tools for this site, for you to approve

sitecare_fix

compress images in place, delete database junk, rewrite links, install plugins

store_orders

read and refund real orders, and read sales reports

payments

enable and configure payment gateways and their keys

shipping

change shipping zones, methods and rates

tax

change tax settings and rates

users

create, edit and delete user accounts and roles

updates

update WordPress core, plugins and themes

comms

send email to real addresses, including your customers

deploy

export a bundle and push it to your production site

What stays on is what a build needs, and none of it is harmless: content writes posts, pages and media · store creates products, coupons and store settings · seo and seo_optimize write meta, schema, sitemap and redirects · design builds Elementor pages · snippets installs code that runs on every page load · code_exec runs arbitrary PHP and SQL · files reads and writes under a configurable base · site_admin changes options and activates plugins and themes · images searches and generates media · automation runs unattended agent loops · memory and skills write what the agent remembers and follows. Above all of them sits one master switch: with AI abilities off the endpoint authenticates but exposes only read-only introspection. Every call is written to the Activity log.

Before pointing this at anything you care about: a backup you have actually restored once, not one you assume works; a staging copy for the first build, so you can watch what it does; only the capability groups the job in front of you needs; and the endpoint token treated like a root password, because it is one — stored hashed and shown once, so regenerate it the moment it leaks.

Zero external dependencies at runtime. No npm, no vendored libraries, no bundled SDK, and nothing from Composer — the plugin runs from its own source, so there is no supply chain underneath it to compromise. For software with this much reach that is worth more than any feature. There is a composer.json, and it exists only for the test and analysis tooling: its require block is empty on purpose and vendor/ is not in the shipped zip. SECURITY.md covers what is in scope and how to report something.

About eval()

Grep this repository and you will find eval() three times: twice in includes/class-snippets.php (in run_php() and run_php_template()) and once in includes/tools/class-tools-core.php (in execute_php()). That is the product working as designed, not an oversight — execute_php is the escape hatch that lets an agent do anything WordPress can do without waiting for a dedicated tool, and the snippet engine is how AI-written code becomes site code that runs for real visitors. What is built around it: a PHP snippet is parse-checked with token_get_all(TOKEN_PARSE) before it can ever be active, and code that fails the check is still saved — you do not lose the work — but is forced inactive with the parse error attached. A snippet that fatals at runtime is switched off by a shutdown handler that knows which snippet was executing, with the error written to its row, to the snippet log and to the PHP error log, and an event fired so the site can tell you. The snippet tools sit in the snippets capability group and execute_php/execute_sql in code_exec: switch either off and those tools disappear from the agent's tool list and are refused if called anyway. Snippets already saved keep running regardless, because by then they are site code — the separate Run code snippets setting is the kill switch that stops every one of them at once.

Skills and memory

Skills are markdown playbooks stored in WordPress that the agent loads when a task matches their description; twenty-seven ship with the plugin, and you can write your own from the agent — "create a skill that…" — with no PHP. Memory is per-site key/value knowledge every connected agent shares ("remember: primary color is #f8ca50").

Development

The plugin runs from source; there is nothing to build.

php tests/run.php                 # unit suite, ~2,600 assertions, no composer, no WP install
bash bin/build-zip.sh             # → build/keelhob.zip

composer install                  # dev tooling only — the plugin itself needs none of it
composer analyse                  # PHPStan, level 1, analysed against the PHP 8.0 floor
composer lint                     # php -l across every file, Windows included

CI lints every PHP file on 8.0–8.4, runs the suite on 8.0/8.3/8.4, then builds the zip and asserts its layout. Module map, test strategy and the MCP transport: docs/architecture.md.

Who builds this

Built and maintained by calflint, in evenings around a full-time job. Bug reports, skills, translations and pull requests are wanted and credited by name — CONTRIBUTING.md has the setup and what "done" means here.

More

Manual · Roadmap · Funding · Contributing · Security · Privacy · Code of conduct

Renamed in 2.0.0. This project was published under a different name until then, one that read as an AI vendor's trademark. Nothing it does changed. Why, and how to upgrade an existing site: docs/why-the-name-changed.md.

GPL-2.0-or-later. Inspired by Novamira, rebuilt from scratch with no external dependencies and no WordPress 6.9 requirement. Built with Claude Code.

Available Tools

63 tools
agent_runsA
Read-only

Review the history of autonomous runs: when each ran, what it was asked, how many steps and tool calls it took, how it ended (ok / capped / truncated / error), and its token usage and estimated USD cost. Also returns the trailing-24h spend against the configured budget caps, and which skills recent connected sessions actually loaded (recorded by the tool registry, not claimed by the agent). Use to answer "what has the site been doing on its own", "what is autonomy costing me", or "did it really follow the playbook it said it followed". Read-only.

Inputs: limit.

create_postB
Destructive

Create a post, page, or any post type. Supports title, content (HTML or blocks), excerpt, status, slug, author, date, categories/tags (by name or ID), custom taxonomies, meta fields, featured image (URL or media ID), and page template/parent.

Inputs: title (required), date, meta, slug, +11 more.

db_cleanup_previewA
Read-only

Count database junk without deleting anything: post revisions, auto-drafts, trashed posts, spam and trashed comments, expired transients and orphaned post meta. Deletes NOTHING — it is the number you show the owner before asking to clean up. Suggest a host backup before any cleanup.

Inputs: no named parameters.

delete_fileB
Destructive

Delete a file (confined to the filesystem base).

Inputs: path (required).

delete_postA
Destructive

Delete a post/page/product by ID. Trashes by default; pass force=true to permanently delete.

Inputs: id (required), force.

edit_fileA
Destructive

Edit a file by replacing an exact string. old_string must match exactly and uniquely unless replace_all is true. The preferred way to change an existing .php file — a targeted replacement can't corrupt the surrounding file the way a full rewrite can. Result is syntax-checked before it touches disk; a broken edit is rejected with the parse error instead of being saved.

Inputs: path (required), new_string (required), old_string (required), replace_all.

elementor_kitA
Destructive

Read or update the Elementor global design kit (site-wide colors, fonts, spacing). Actions: get, set. Use this to apply a brand kit across every Elementor page at once. settings is merged into the kit's _elementor_page_settings (e.g. system_colors, custom_colors, system_typography).

Inputs: action (required), settings.

elementor_pageA
Destructive

Read or write an Elementor page. Actions: get (return the _elementor_data element tree + template type), set (replace _elementor_data for a page — pass the element tree as data, an array of sections/containers), create (make a new Elementor-editable page with optional data). Elementor stores layout as a JSON tree of elements; build with flexbox Containers (elType "container"), not deprecated sections. After set/create, Elementor CSS is regenerated automatically. set/create return settings_warnings ONLY when something looked wrong: a diagnostic (non-blocking) list of settings keys that no control on that widget/element recognises — a likely wrong control name (e.g. menu instead of nav_menu), worth checking against get_controls() but never a reason to assume the write failed.

Inputs: action (required), data, title, status, +2 more.

elementor_settingsA
Destructive

Configure Elementor for AI building. Actions: get (report Elementor version, active experiments, active kit id), prepare_for_ai (turn Container/flexbox ON and the Atomic editor OFF — the recommended setup so the agent builds with modern containers), set_experiment (set any experiment on/off by key). Run prepare_for_ai once before building Elementor pages.

Inputs: action (required), state, experiment.

execute_phpA
Destructive

Execute arbitrary PHP in the full WordPress runtime ($wpdb, WP_Query, get_option, WooCommerce, every loaded plugin API). Do NOT include <?php tags. Use return $value; to return data for inspection; echoed output is captured separately. This is the universal fallback for anything the dedicated tools do not cover.

Inputs: code (required).

execute_sqlB
Destructive

Run a SQL query against the WordPress database via $wpdb. SELECT queries return rows; INSERT/UPDATE/DELETE return the affected row count. Table prefix is available as {prefix} in your query (e.g. SELECT * FROM {prefix}posts LIMIT 5).

Inputs: query (required).

feedback_sendA

Send the feedback report the user has just approved, or record that they declined. Only call this after showing the full draft from feedback_status and getting an explicit yes or no. Pass approved=false when they say no — that records the refusal so they are not asked again for another week, and sends nothing. If the response comes back with throttled=true the report was NOT lost: the project's endpoint hit its daily limit for this server's network address, which happens when several sites share one. Say one line about it and move on; the plugin will offer it again tomorrow.

Inputs: approved (required).

feedback_statusA
Read-only

Check whether a feedback report is due, and get the exact draft to show the user. Call this when you are writing up finished work. Returns due=false most of the time — say nothing at all then. When due=true, show the WHOLE draft to the user word for word and ask if they want to send it or add anything; pass their addition back as add_note to get a rewritten draft. Never send anything with this tool; it only reads. Read-only.

Inputs: add_note.

get_dashboardA
Read-only

Get a full status snapshot of the site right now — store sales (today / 7d / 30d), open orders needing attention, out-of-stock products, content counts, pending comments, and available updates, plus a plain-language summary. Use this to answer "what's going on / how is the store doing / what needs attention" without the owner logging in. Read-only; works even when abilities are disabled.

Inputs: no named parameters.

get_postA
Read-only

Get a single post/page/product by ID, including content, meta, taxonomies, and featured image.

Inputs: id (required).

get_site_infoA
Read-only

Return an overview of this WordPress site: WP/PHP versions, site URL, active theme, active plugins, whether WooCommerce/known SEO plugins are present, counts of posts/pages/products, the Keelhob abilities state, and this site's short site_label (the handle to use when the owner names this site among several, e.g. when copying a snippet to another site). Safe, read-only — works even when abilities are disabled.

Inputs: no named parameters.

image_generateA
Destructive

Generate an image with AI from a text prompt, using the image API key configured in Keelhob settings (OpenAI-compatible by default). Optionally import it into the media library and set it as a post's featured image. If no key is configured, this returns guidance and you should use image_search instead.

Inputs: prompt (required), size, filename, attach_to, +1 more.

lesson_listA
Read-only

List the lessons saved on this site, with the tool each one is attached to and whether the owner or an agent wrote it. Read-only.

Inputs: topic.

lesson_saveA

Save a one-line lesson about a specific tool, so every future agent reads it in that tool's own description without having to look it up. Use it the moment you work out WHY something failed or what this site needs doing differently — e.g. topic="seo_meta", lesson="Rank Math is the SEO plugin here, not Yoast." The topic is normally a tool name; use "general" for something true of the whole site. Max 300 characters, plain text, no markup. The owner can read, edit and delete every lesson, and it is recorded as having come from the agent.

Inputs: topic (required), lesson (required).

list_directoryB
Read-only

List the contents of a directory (confined to the filesystem base). Returns files and subdirectories with sizes.

Inputs: path.

list_postsC
Read-only

List/search posts of any type with filters: post_type, status, search term, author, taxonomy term, meta query, ordering, and pagination.

Inputs: tag, page, order, author, +6 more.

manage_menuB
Destructive

Manage navigation menus. Actions: list, create, add_item, assign_location. Add pages/posts/custom links to a menu and assign it to a theme location.

Inputs: action (required), url, menu, title, +3 more.

manage_optionB
Destructive

Get or update a WordPress option (site settings like blogname, blogdescription, timezone_string, permalink structure, etc.). Actions: get, update, list_common.

Inputs: action (required), name, value.

manage_pluginA
Destructive

Manage plugins. Actions: list, activate, deactivate, install (from a wordpress.org slug), delete. Use install then activate to add a new plugin from the WP.org directory.

Inputs: action (required), plugin.

manage_taxonomyC
Destructive

Create, update, delete, or list terms in any taxonomy (categories, tags, product_cat, custom). Actions: create, update, delete, list.

Inputs: action (required), name, slug, parent, +3 more.

manage_themeC
Destructive

Manage themes. Actions: list, activate, install (from a wordpress.org slug).

Inputs: action (required), theme.

memory_deleteC
Destructive

Delete a memory entry by key.

Inputs: key (required).

memory_getB
Read-only

Read a single memory entry by key.

Inputs: key (required).

memory_listA
Read-only

List all memory entries stored for this site (keys, categories, values). Read-only; works even while abilities are disabled.

Inputs: no named parameters.

memory_saveA

Save a fact to this site's persistent memory so it survives across sessions and is shared by every connected agent. Use for project conventions, decisions, brand rules, and pitfalls (e.g. key="brand.primary_color", value="#f8ca50"). Overwrites an existing key.

Inputs: key (required), value (required), category.

plugin_conflictsA
Read-only

Read-only conflict report: two or more active plugins doing the same job (SEO, caching, security, image optimization, page builders, SMTP), PHP errors in the debug log counted per plugin, plugins WordPress paused after a crash, and plugins that need a newer PHP or WordPress than this site runs. NEVER deactivates anything — report to the owner and let them decide.

Inputs: no named parameters.

plugin_security_checkA
Read-only

Read-only security report for every installed plugin: removed from WordPress.org (often for a vulnerability), not updated in over two years, an update waiting, and — when a free WPScan token is configured — known vulnerabilities in the installed version. Riskiest first. Fixing usually means manage_updates, or replacing the plugin; ask the owner before either.

Inputs: no named parameters.

read_fileA
Read-only

Read a text file (confined to the Keelhob filesystem base, default the WordPress root). Returns file contents.

Inputs: path (required).

run_agentB
Destructive

Run a one-off autonomous task NOW: hand a plain-language instruction to the on-site AI agent, which plans and executes it using Keelhob tools (with policy guardrails), then returns a summary. Requires an agent API key in settings. Use for "just handle X" automations you don't want to schedule.

Inputs: instruction (required), max_steps, allow_risky.

seo_analyzeA
Read-only

Analyze a post for a target keyword and return an actionable SEO + GEO (AI-answer-engine) report: classical on-page checks (title/meta length, keyword presence/density, word count, headings, internal/external links, image alt coverage) plus GEO checks that matter for being cited by ChatGPT/Perplexity/Google AI Overviews/Claude (answer-first opening paragraph, FAQ/list/table structuring, JSON-LD schema presence, author byline + last-updated date for E-E-A-T). Read-only.

Inputs: post_id (required), focus_keyword.

seo_metaA
Destructive

Get or set the SEO metadata of a post/page/product: SEO title, meta description, focus keyword, canonical URL, robots (noindex/nofollow), and Open Graph/Twitter title+description+image. Writes to whichever SEO plugin is active (Yoast, Rank Math, AIOSEO, SEOPress) and to a Keelhob fallback so the values apply even with no SEO plugin. Actions: get, set.

Inputs: action (required), post_id (required), title, noindex, +7 more.

seo_redirectA
Destructive

Manage 301/302 redirects via a built-in Keelhob redirect table that runs on template_redirect (independent of any redirect plugin the site may also have active). Actions: add, list, delete.

Inputs: action (required), id, to, from, +1 more.

seo_schemaA
Destructive

Attach JSON-LD structured data to a post (or the whole site). Two ways to call it: (1) pass a full "schema" object/array yourself — pass an array of objects to layer several types on one page (rendered as @graph); or (2) pass "generate" (one of: article, faq, howto, local_business, person) plus "data" and Keelhob builds valid schema.org JSON-LD for you, including the Article author as a Person from the post author's WordPress profile — the schema type AI answer engines rely on most for E-E-A-T attribution. Actions: set, get, delete.

Inputs: action (required), data, schema, post_id, +1 more.

seo_sitemapB
Destructive

Get the XML sitemap URL and ping Bing (Google retired sitemap ping in 2023), read/write robots.txt directives, manage the site's /llms.txt (the AI-facing "about this site" file that ChatGPT/Perplexity/Claude etc. read to understand what a site is and how to cite it), and control which named AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Bytespider, Applebot-Extended) are allowed to fetch the site. Actions: get_sitemap, ping, get_robots, set_robots, get_llms_txt, set_llms_txt, get_ai_crawlers, set_ai_crawlers.

Inputs: action (required), bots, content.

site_readinessA
Read-only

Read-only exit code for the build-standard standard: runs every objective, machine-checkable part of a launch readiness pass and returns structured pass/fail findings shape-compatible with the pre-launch-audit skill's machine-readable block. Checks: heading order, alt-text coverage, title/meta description/Open Graph presence, JSON-LD validity (and aggregateRating/review misuse), href="#" count, placeholder text, image weight (300KB cap, 200KB on the LCP image), security headers (HSTS/nosniff/frame-ancestors/referrer-policy — deliberately does NOT require an enforcing CSP), llms.txt/sitemap/robots.txt status (including a 404 page served with a 200, a real bug this plugin shipped), 404 handling, snippet errors, legal-page wiring, and — only when WooCommerce is active — tax-rate sanity, stock policy, and registration/role defaults. Changes nothing on the site. A check that could not run (WooCommerce inactive, no HTTPS, a capability the owner disabled) is reported in skipped and is NEVER counted as a pass — always check skipped and not_verified before trusting pass. Some checks (viewport sweeps, console errors, rendered contrast, animation smoothness) are structurally impossible without a browser and are listed in not_verified with what a human should click instead.

Inputs: urls, scope, post_id, request_headers.

skill_deleteC
Destructive

Delete a skill by name.

Inputs: name (required).

skill_getA
Read-only

Load the full body of a skill by name. Call this when a task matches a skill's description so you can follow its playbook. The response also returns the skill's role and its links: requires (load these first), next_skills (consider these when you are done) and verified_by (the work is NOT finished until these have run).

Inputs: name (required).

skill_lintA
Read-only

Check a skill against the Keelhob skill standard and get a 0-100 score with specific findings. Pass markdown to check a draft before saving it, or name to check a skill already on this site; pass neither to check every skill and the links between them (loops, orphans, skills competing for the same request). Use it before skill_save so a new skill is actually reachable and actually connects to the others. Read-only.

Inputs: name, markdown.

skill_listA
Read-only

List every skill this site has (name, description, source, enabled/agentic/prompt flags). Every skill listed here is available — call skill_get to load its body when a task matches its description. You already receive the same names and descriptions at session start, so this is for re-checking after a skill is added or switched off. Read-only.

Inputs: no named parameters.

skill_refreshA
Destructive

Reinstall the expert skills that ship with Keelhob, so a plugin update's improved playbooks reach this site. Skills that were edited here are kept, and named in the response, unless force=true replaces them too. Reports what was installed, updated and kept.

Inputs: force.

skill_saveB
Destructive

Create or update a skill. Provide either a full Markdown document (YAML frontmatter + body) as markdown, or explicit fields. Skills are shared site-wide and loaded automatically when their description matches a task.

Inputs: body, name, enabled, markdown, +3 more.

snippet_deleteB
Destructive

Delete a snippet permanently by ID.

Inputs: id (required).

snippet_getB
Read-only

Get one snippet by ID, including its full code.

Inputs: id (required).

snippet_listB
Read-only

List code snippets with their tags, purpose, impact, type, location, active state, portable uid, origin and any last error. Also returns this site's label, which is the handle to use when copying snippets between sites. Read-only.

Inputs: tag, active, search, snippet_type.

snippet_revisionsA
Destructive

Read or roll back the history of a snippet. Every save that CHANGES the code writes a revision of what was there before, by agent or human alike — so an overwrite is recoverable. Actions: list (revision ids, timestamps, who, and the length of each — not the code), get (the full code of one revision, by revision_id), restore (put a revision back, by revision_id). A restore goes through the normal save path, so it is linted, front-end checked, and itself recorded as a revision — you can always walk back out. Use this BEFORE re-writing a snippet you did not author in this session: read what is there rather than assuming your version is still live.

Inputs: id (required), limit, action, revision_id.

snippet_saveA
Destructive

Create or update a code snippet that runs on the site — like WPCode/Code Snippets. Types: php (runs in WordPress; NO <?php tags; use add_action/add_filter/functions), css, js, html. Location controls where it runs: everywhere, admin_only, frontend_only, header (wp_head), footer (wp_footer), before_content, after_content, shortcode (use [keelhob_snippet id=N]), or page_template (serve raw PHP/HTML as a whole page for target_id — the pixel-perfect custom-coded page mode). ALWAYS fill name, tags, purpose and impact: the site owner reads them on the Keelhob > Snippets admin page and that is their only way to judge what you installed. Updates MERGE — send only the fields you are changing and everything else, including code, is preserved. PHP is parse-checked first; code that does not parse is still saved but forced inactive with the error attached. A PHP snippet that fatals at runtime is auto-deactivated so the site stays up. Set active=true to turn it on. WARNING — the auto-deactivate guard only catches FATAL ERRORS. A snippet that runs perfectly can still take the site down, and the two ways that happens are: (1) sending a 4xx/5xx status from the front end — hosts poll the home page for liveness and read a 503 there as "server dead", then stop routing to the site entirely, including wp-admin and this MCP endpoint, so you lose the ability to undo it; serve coming-soon and maintenance pages with status 200 plus a noindex meta tag instead. (2) gating the front end without letting wp-login.php, /wp-admin, /wp-json, wp-cron.php and xmlrpc.php through, which locks the owner out of their own site. After activating anything that changes what a logged-out visitor sees, fetch the home page with no cookies and confirm it returns 200 before reporting done. If a snippet does break the site, the owner recovers by adding define('KEELHOB_SNIPPETS_OFF', true); to wp-config.php, which disables every snippet without needing a working site or a database client.

Inputs: code (required), id, uid, name, +12 more.

snippet_toggleB
Destructive

Activate or deactivate a snippet by ID. Activating clears any prior auto-deactivation error.

Inputs: id (required), active (required).

speed_auditA
Read-only

Read-only speed report with a 1-100 score: homepage load time and size, script/stylesheet counts, compression and caching headers, caching plugin, object cache, autoloaded option weight (with the 8 heaviest named), database junk, oversized images (up to 40, largest first), plugin count and PHP version. Every finding names the tool that fixes it. Changes nothing. Run it before and after optimizing to compare.

Inputs: no named parameters.

task_deleteC
Destructive

Delete a scheduled task by ID.

Inputs: id (required).

task_listA
Read-only

List all scheduled automations with mode, schedule, enabled state, and last run status/summary. Read-only.

Inputs: no named parameters.

task_runA
Destructive

Run a scheduled task immediately (does not change its schedule). Returns the run result/summary.

Inputs: id (required).

task_saveA
Destructive

Create or update a scheduled automation. mode="digest" emails a status snapshot on a schedule (no API key needed). mode="autonomous" runs a plain-language instruction through the on-site AI agent on a schedule (requires an agent API key in settings) — e.g. "fulfil paid orders, restock flagged items, and publish any due draft posts". schedule: hourly|twicedaily|daily|weekly|monthly, with an optional run_hour (0-23, site time) to pin it to a time of day. Set allow_risky=true only if the task may perform destructive/financial actions (refunds, deletes, updates).

Inputs: mode (required), name (required), id, notify, +5 more.

update_postA
Destructive

Update an existing post/page/product by ID. Only the fields you pass are changed. Same field set as create_post.

Inputs: id (required), meta, slug, tags, +9 more.

upload_mediaC
Destructive

Upload an image/file to the media library from a URL or base64 data, and optionally attach it to a post. Returns the attachment ID and URL.

Inputs: alt, url, data, title, +2 more.

write_fileA
Destructive

Create or overwrite a text file (confined to the filesystem base). Parent directories are created as needed. For an existing .php file, prefer edit_file with a targeted old_string/new_string over retyping the whole file here — a full rewrite risks a transcription slip (e.g. an escaped bracket) that a partial edit can't introduce. Any .php content is syntax-checked before it touches disk; a broken write is rejected with the parse error instead of being saved, so this can't brick a live, always-loaded plugin file.

Inputs: path (required), content (required).

write_sandbox_fileA
Destructive

Write a PHP file into the Keelhob sandbox (wp-content/keelhob-sandbox). Sandbox files are auto-loaded on every request so custom hooks/functions persist. Content is syntax-checked before it touches disk (rejected on a parse error, nothing written); a file that still fatals at runtime for some other reason is auto-quarantined on the next request so the site stays up. Include the opening <?php tag.

Inputs: content (required), filename (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 63 tools

    Disambiguation4/5

    The domains are cleanly partitioned (posts, SEO, snippets, skills, memory, tasks, Elementor, audits, files/DB), and most descriptions state clearly when to use one tool over another (image_generate vs image_search, task_run vs run_agent, snippet_save vs write_sandbox_file). The remaining overlap is real but manageable: get_site_info / get_dashboard / site_readiness / speed_audit all answer 'how is the site doing', and execute_php / execute_sql / snippet_save / write_sandbox_file are four different ways to run code with only prose separating them.

    Naming Consistency3/5

    Two conventions coexist without a rule: resource-first (lesson_save, skill_get, memory_save, snippet_toggle, task_save, feedback_send) and verb-first (get_post, create_post, list_posts, delete_file, list_directory, upload_media). Individual domains are internally consistent (post CRUD is verb_noun throughout, skill/memory/snippet CRUD is noun_verb throughout), which keeps it readable, but a mixed set this size should have picked one.

    Tool Count2/5

    63 tools is well past the point where an agent can hold the surface in working memory, and the breadth invites misselection before descriptions are read. The tools are individually justified for a full WordPress operations platform, but several clusters (four code-execution paths, four status-reporting tools) could be collapsed into action-parameterised tools without losing capability.

    Completeness4/5

    Coverage is unusually thorough for the domain — CRUD across posts, snippets, skills, memory, tasks, options, taxonomies, plugins/themes, plus diagnostics, revisions, and rollback. The gaps are narrow: no comment moderation despite the dashboard surfacing pending comments, no WooCommerce order/stock write operations despite sales reporting, and menu management lacks item update/delete. execute_php and execute_sql provide an escape hatch for all of these.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers