Skip to content

v1.7.0 — 20 new features: agent surface, snapshots, WP-CLI, admin UI

Choose a tag to compare

@usermp usermp released this 03 Sep 06:07
· 3 commits to main since this release

What's new in v1.7.0

20 new features spanning agent surface, snapshots, admin UI, quality, and distribution.

Agent Surface

  • MCP_Agent_Registry — 13 tools: page_list, page_get, page_create, page_apply_elementor, ai_generate_elementor, site_context, template_list, snapshot_create/list/restore, media_upload_url, block_repair, content_search
  • JSON schema validation with required/type/enum
  • Per-tool capability checks
  • POST /mcp/v1/agent/tools/{list,call}
  • /agent/snapshot/{create,list,restore}

X-MCP-Key API auth

  • Hashed keys with label + scopes + per-key rate limit
  • wp mcp api-key create | list | revoke

Snapshots & Rollback

  • MCP_Snapshot — custom post type 'mcp_snapshot' holding serialized Elementor meta
  • Auto-snapshot with TTL dedupe
  • Restore: _elementor_data, _elementor_page_settings, _elementor_version, bumps post_modified

Block Repair

  • MCP_Block_Repair — scan/audit/auto_fix modes; auto-generates stable IDs (secXXXXXX, colXXXXXX, widXXXXXX)

Media from URL

  • MCP_Media_Uploaderdownload_url() + media_handle_sideload() with mime + 10 MB cap

Content Search

  • WP_Query-backed search over pages, posts, Elementor templates with has_elementor flag

Output Repair

  • 3-strategy JSON parser (raw → strip trailing commas → balance brackets)
  • Structural repair: unwraps {sections:[...]} envelopes, coerces single sections

Idempotency

  • X-Idempotency-Key header + body field
  • /chat/apply caches responses so retries don't double-bill OpenRouter

Error Tracker

  • Rolling 200-entry log with level/code/context, scrubs secrets
  • wp mcp errors [--limit=20]

Admin UI

  • 4 new toolbar buttons: Clone a site, Template Builder, Prompts, History
  • Clone site modal, Template Builder modal, Prompts side panel, History side panel
  • 7 ready-to-use prompts (local business, dental, dev portfolio, hair salon, car wash, Persian tourism, Persian restaurant)

WP-CLI

  • wp mcp status, wp mcp tools, wp mcp build-template --brand=..., wp mcp clone <url>, wp mcp errors, wp mcp api-key ...

Distribution

  • .github/workflows/ci.yml — matrix test across PHP 7.4/8.2/8.5 × WP 6.5/6.8/7.1 + WP-CLI smoke job

Stats

  • 39 → 48 PHP files (+23%)
  • 6,225 → 7,936 LOC (+27%)
  • 54 unit tests, all passing