PromptWire

Latest: Version 1.x

A ProcessWire ↔ Cursor MCP bridge for AI-assisted development. Describe what you want in plain language and the agent builds it, with a visual admin dashboard for sync management.

Section last updated

Read the Docs

Overview

What is PromptWire?

PromptWire connects your ProcessWire CMS to Cursor IDE via the Model Context Protocol (MCP), giving AI agents direct read/write access to your site's structure, content, and files. It ships with 46 specialised tools for site inspection, content sync, schema management, page creation, database introspection, log analysis, site sync, backup, maintenance mode, and cross-environment deployment.

Just describe what you want in plain language and the agent reads your site's schema, selects the right tools, sequences the operations, and previews everything before applying.

Two parts

  • PromptWire MCP: the Cursor integration. Describe what you want and the AI agent builds it: creates templates, fields, pages, and content, pushes changes between environments, and compares schemas. All from Cursor chat.
  • PromptWire Admin: a visual sync dashboard inside the ProcessWire admin. See which pages are synced, view diffs, pull and push individual or bulk pages without leaving the browser.

Key features

PromptWire ships with 46 MCP tools spanning site inspection, content sync, schema management, page creation, database inspection, log analysis, cache management, file sync, site sync, backup, and maintenance mode. Here's a summary:

  • Site inspection: query pages, templates, fields, and files. Export the full site schema as JSON.
  • Diagnostics: list installed modules and users, resolve names to IDs across environments, and inspect template fieldgroups for drift between local and production. Read tools accept site: "local" | "remote" | "both" to query either side or both at once.
  • Content sync: pull pages into local YAML files, edit them, and push changes back to ProcessWire (local, remote, or both).
  • Database: inspect table structure, run read-only SELECT queries, analyse query performance with EXPLAIN, and get row counts across core and field tables.
  • Logs: list log files, read and filter entries by level and text, and retrieve the most recent error.
  • Cache: clear ProcessWire caches by target (all, modules, templates, compiled, or wire-cache).
  • File sync: sync file and image field content between local and remote environments.
  • Schema sync: pull, push, diff, and compare field and template schemas between sites.
  • Schema-aware fieldgroup edits: add, remove, reorder fields on templates with a built-in conflict classifier that flags removals of required fields, module-owned fields, or fields hardcoded in frontend templates before any change is applied. Dry-run by default.
  • Page management: scaffold new pages locally, then publish to ProcessWire when ready.
  • Site sync: compare local and remote sites across pages, schema, and files, then push everything in one orchestrated operation with dry-run preview.
  • Backup and restore: create database dumps (via ProcessWire's WireDatabaseBackup) and file archives before deploying. List, restore, or delete backups from either environment.
  • Maintenance mode: put the site into maintenance mode during deployments. Visitors see a styled 503 page; superusers and the API are unaffected.
  • Cross-environment deployment: push content and schema changes from local to production with page ID resolution handled automatically.
  • Admin dashboard: visual sync status UI with per-page diffs, bulk operations, and template/status filters.
  • Prompt recipes: natural language prompts for common workflows, no tool names to memorise.

Download

PromptWire is open source and available on GitHub: github.com/PeterKnightDigital/PromptWire-MCP

Requirements

  • ProcessWire 3.0+
  • PHP 8.0+
  • Node.js 18+
  • Cursor IDE with MCP support

Interested in MediaHub?

Get in touch to discuss licensing and pricing options.

Contact Me