Skip to content

Testing, Boost & System Ops

Beyond database operations, Setup -> Console surfaces automated testing, ProcessWire Boost / MCP diagnostics, maintenance mode, and cache controls.

Boost & AI synchronizes AGENTS.md, skills, and schema maps, runs allowlisted read-only MCP tools in-process, and scaffolds new ProcessWire modules.
  • Synchronize & Configure Boost: Regenerate AGENTS.md, .agents/map.json, and module skills (syncBoost()), and configure enabled features (guidelines, skills, mcp), target agents, and enabled modules (configureBoost()).
  • MCP JSON-RPC Tool Inspector: Execute allowlisted read-only MCP tools (such as pw_query, pw_schema_read, pw_module_list) directly in-process via executeReadOnlyMcpTool() with validated JSON arguments (MAX_JSON_ELEMENTS = 512).
  • Remote Skills & Module Scaffold: Audit and install skills from a GitHub repository (installRemoteBoostSkills()) or scaffold new Standard, Process, Fieldtype, or Inputfield ProcessWire module stubs (scaffoldComponentFile()).
  • Discovers Pest unit/feature test files in tests/ and site/tests/ alongside Playwright E2E specs in tests/e2e/ (getDiscoveredTestFiles()).
  • Runs Pest suites (runTests(), default 60s timeout) and Playwright E2E suites (runE2eTests(), default 120s timeout) after strict argument sanitization (sanitizeTestArgs(), sanitizeE2eArgs()) to block shell injection.
  • Initializes Playwright E2E configuration (initPlaywrightE2e()) when not yet configured.

3. Maintenance Mode & System Caches (Overview)

Section titled “3. Maintenance Mode & System Caches (Overview)”
  • Maintenance Mode: Calls enableMaintenanceMode(?string $secret, ?int $retry, int $status = 503, ?string $redirect) and disableMaintenanceMode() to toggle ProcessWire maintenance mode with an optional preview bypass token.
  • System & WireCache Flush: Clears Modules, FileCompiler, and WireCache selectively via clearSystemCaches($mode).

Next steps