MCP Avada Builder Pro
Advanced MCP integration for Avada Fusion Builder with 55+ element types and full hierarchy support
by arnelG · github.com/wikiwyrhead/mcp-avada-builder-pro · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wikiwyrhead/mcp-avada-builder-pro/archive/refs/heads/main.zipAdvanced MCP integration for Avada Fusion Builder with full shortcode parsing and element management.
Version: 3.3.3
Status & Affiliation
- This is an independent community project.
- It is not affiliated with, endorsed by, or maintained by ThemeFusion/Avada.
- All product names and trademarks belong to their respective owners.
Overview
MCP Avada Builder Pro provides comprehensive abilities for controlling Avada Fusion Builder programmatically via the WordPress Abilities API and MCP protocol. Features:
- Recursive Shortcode Parser - Handles deeply nested structures including inner rows/columns
- Full Hierarchy Support - Container > Row > Column > Element (including inner rows/columns)
- 56 Element Types - Complete registry of Fusion Builder elements including
fusion_imageframe - Passthrough Preservation - Unregistered element types preserved as raw shortcode (no data loss)
- Path-based Element Access - Unique paths like
container_0/row_0/column_0/fusion_text_1 - Media Field Validation - Strict validation for image_id, image URLs, gallery IDs
- Structural Validation - replace-content validates structure schema before writing
- Write-path ID Stability - Canonical paths returned after every write operation
- Data Loss Guard - Dry-run validation on all mutations prevents silent element loss
- Audit Logging - All mutations logged to post meta with timestamp/user/action
- Page Structure Health Check - Validate tag balance, duplicates, round-trip fidelity
- Shortcode Tree Repair - Dry-run-first repair for malformed shortcode trees
Abilities (28 Total)
Core Page + Element Management
avada-pro/get-info- Get builder/theme/plugin versions and element count.avada-pro/get-page-structure- Get full parsed structure for a page.avada-pro/list-all-elements- List all page elements (optional type filter).avada-pro/add-container- Add a container (optionally with row/column).avada-pro/add-element- Add an element to container/row/column coordinates.avada-pro/update-element- Update element content/attributes by path.avada-pro/delete-element- Delete element by path.avada-pro/replace-content- Replace whole page content from structure object (with structural validation and backup).avada-pro/list-element-types- List all static element types (56).avada-pro/clean-duplicates- Remove duplicate elements in a page.
Layout Operations
avada-pro/restructure-layout- Restructure a target row based on matching content.avada-pro/duplicate-element- Clone element in place.avada-pro/move-element- Move element across container/row/column.avada-pro/find-element- Search page elements by type/content/attribute.avada-pro/bulk-update- Update multiple elements in one save (transactional, all-or-nothing).avada-pro/select-columns- Select columns by scoped selector (container label/index, row, column indexes, attrs, contained element type).avada-pro/bulk-update-columns- Bulk patch column attributes via selector or explicit paths (dry-run supported).avada-pro/clone-column-style- Clone source column style to targets with preserve-keys (dry-run supported).avada-pro/clone-element-style- Clone source element style attributes to target elements (dry-run supported).avada-pro/enforce-responsive-policy- Apply desktop/tablet/mobile column width policy in bulk (dry-run supported).
Page Lifecycle
avada-pro/create-page- Create draft/published page/post with Avada enabled.avada-pro/list-pages- List posts/pages where Avada Builder is active.
Element Schema Introspection
avada-pro/get-element-schema- Get runtime/static parameter schema for a shortcode.avada-pro/get-element-defaults- Get runtime defaults from FusionSC/runtime params.avada-pro/list-element-categories- List categories + per-category elements.avada-pro/search-elements- Search available element types by keyword/category.
Validation & Repair (v3.2.0)
avada-pro/validate-page-structure- Health check: tag balance, duplicates, round-trip fidelity, builder status. Returns health score.avada-pro/repair-shortcode-tree- Repair malformed shortcode trees (dry-run by default). Removes duplicates, cleans empty containers, creates backup.
Supported Element Types (56 Total)
Layout Elements
fusion_builder_container- Main wrapperfusion_builder_row- Row organizerfusion_builder_column- Column layoutfusion_accordion- Collapsible sectionsfusion_toggle- Single togglefusion_tabs- Tabbed interfacefusion_tab- Individual tabfusion_tooltip- Hover tooltipsfusion_popover- Click popoversfusion_modal- Popup modalsfusion_modal_text_link- Modal trigger linkfusion_viewport- Visibility control
Content Elements
fusion_text- Text blocksfusion_title- Headings (H1-H6)fusion_button- Buttons with linksfusion_separator- Visual dividersfusion_alert- Notification boxesfusion_code- Code blocksfusion_code_block- Code block wrapperfusion_syntax_highlighter- Advanced codefusion_table- Data tablesfusion_tagline- Callout boxesfusion_checklist- Styled listsfusion_content_boxes- Content gridsfusion_content_box- Individual boxfusion_blog- Blog postsfusion_portfolio- Portfolio itemsfusion_portfolio_masonry- Masonry layoutfusion_faq- FAQ sectionsfusion_counter- Animated countersfusion_counters- Multiple countersfusion_progress- Progress barsfusion_testimonial- Testimonialsfusion_testimonials- Testimonial sliderfusion_pricing_table- Pricing columnsfusion_pricing_column- Single tierfusion_pricing_price- Price displayfusion_pricing_button- CTA buttonsfusion_person- Team profiles
Media Elements
fusion_image- Imagesfusion_imageframe- Image frames with styling and effectsfusion_images- Image carouselfusion_gallery- Image galleriesfusion_video- Video embedsfusion_audio- Audio playersfusion_map- Google Mapsfusion_fontawesome- Iconsfusion_slider- Content slidersfusion_post_slider- Post slidersfusion_rev_slider- Revolution Sliderfusion_layerslider- LayerSliderfusion_fusion_slider- Fusion Sliderfusion_post_grid- Post grids
Typography Elements
fusion_google_fonts- Font importsfusion_highlight- Text highlightingfusion_dropcap- Large first letters
Social Elements
fusion_social_links- Social icons
Column Types
All Avada column layouts supported:
1_1, 1_2, 2_3, 1_3, 3_5, 1_4, 3_4, 1_5, 2_5, 4_5, 1_6, 5_6
Element Paths
Each element has a unique path:
container_{index}/row_{index}/column_{index}/{element_type}_{index}
Example: container_0/row_0/column_0/fusion_text_2
After write operations, a canonical_path is returned that reflects the actual persisted path (stable across save cycles).
Safety Features
- Data Loss Guard - Every mutation validates shortcode tag counts before/after write. Blocks operations that would lose elements.
- Structural Validation -
replace-contentvalidates container/row/column hierarchy before accepting. - Media Validation -
image_idverified against media library, URLs validated, gallery IDs checked. - Transactional Bulk Updates - All-or-nothing validation: either all updates pass or none are applied.
- Automatic Backups -
replace-contentandrepair-shortcode-treestore backups in post meta before destructive operations. - Audit Logging - All mutations logged with timestamp, user, ability, and action description (last 100 events per post).
- Passthrough Elements - Unregistered shortcodes are preserved as raw text during parse/generate cycles.
Requirements
- WordPress 5.8+
- Avada Theme 7.0+
- Avada Builder Plugin 3.0+
- Abilities API Plugin
Prerequisites & MCP Adapter Setup
To use MCP Avada Builder Pro with AI agents or external automation, you must have:
- WordPress MCP Adapter Plugin (mcp-adapter)
- Abilities API Plugin (abilities-api)
- Avada Theme (7.0+)
- Avada Builder Plugin (3.0+)
1. Install Required Plugins
-
Abilities API
- Download from abilities-api GitHub
- Upload to
wp-content/plugins/and activate
-
MCP Adapter
- Download from mcp-adapter GitHub
- Upload to
wp-content/plugins/and activate
-
Avada Theme & Builder
- Install via ThemeForest or your preferred method
- Activate both theme and builder plugin
-
MCP Avada Builder Pro (this plugin)
- Upload to
wp-content/plugins/and activate
- Upload to
2. Verify Abilities Exposure
After activation, MCP Avada Builder Pro abilities are exposed via:
- WordPress REST API:
GET /wp-json/wp-abilities/v1/abilities(list abilities)POST /wp-json/wp-abilities/v1/abilities/{id}/invoke(run ability)
- MCP Adapter:
GET /wp-json/mcp/mcp-adapter-default-server(MCP tools discovery)
To test:
curl http://your-site.local/wp-json/wp-abilities/v1/abilities | jq '.[] | select(.meta.mcp.public == true)'
You should see all avada-pro/* abilities listed and callable.
3. AI Agent/Automation Setup
Configure your MCP client (e.g. @automattic/mcp-wordpress-remote) with your WordPress API URL, username, and password. See .mcp.json for example config.
Installation
- Upload plugin to
wp-content/plugins/ - Activate through WordPress admin
- Abilities will be automatically registered
Contributor Quick Start
- Fork the repository.
- Create a branch from
main. - Make focused changes.
- Run PHP lint:
php -l mcp-avada-builder-pro.phpphp -l includes/class-avada-parser.phpphp -l includes/class-avada-elements.php
- Open a PR using the template.
See:
Structured Editing Patterns (Examples)
1) Source-of-truth card replication (columns)
- Use
clone-column-stylewith:source_column_path: e.g.container_5/row_0/column_1selector: scoped to target sectionpreserve_attributes: e.g.type,type_medium,type_small,first,last,class,iddry_run: truefirst, thenfalse
2) Shadow synchronization across many cards
- Use
bulk-update-columns:selector: target cardscolumn_attributes:{ "box_shadow_horizontal": "2", "box_shadow_vertical": "2" }dry_run: truefirst
3) Responsive stacking normalization
- Use
enforce-responsive-policy:desktop: "keep"tablet: "1_2"mobile: "1_1"- selector scoped to target card set
4) Element-level style cloning (icon/title/image)
- Use
clone-element-style:source_element_path: e.g. first cardfusion_title/fusion_fontawesome/fusion_imageelementselector.element_type: target same element typepreserve_attributes: keep content identity keys (e.g. image/link/text-specific attrs)dry_run: truefirst
Changelog
3.3.3
- Fixed parser behavior so
fusion_imageshortcodes insidefusion_imagesare not parsed as standalone elements. - Prevented duplicate large image blocks from being reintroduced below image carousels after structured page updates.
- Hardened carousel edit workflows for repeatable builder-safe mutations.
3.3.1
- Added
avada-pro/clone-element-stylefor source-of-truth element attribute cloning with preserve-key controls. - Added
avada-pro/enforce-responsive-policyfor bulk desktop/tablet/mobile width policy enforcement. - Added selector helper for structured element targeting in style-clone workflows.
- Added dry-run-first workflow examples for bulk styling and responsive normalization.
- Added OSS baseline docs and GitHub templates (
LICENSE,CONTRIBUTING,SECURITY, issue/PR templates, CI PHP lint workflow).
3.3.0
- Added
avada-pro/select-columnsfor scoped column querying by container label/index, row/index, attrs, and element presence. - Added
avada-pro/bulk-update-columnswith dry-run before/after diffs. - Added
avada-pro/clone-column-stylewith preserve-key controls and dry-run preview.
3.2.0
- Parser fixes: Fixed all prefix-collision regex patterns (fusion_image/imageframe/images, tab/tabs, counter/counters, content_box/content_boxes, etc.)
- Parser fixes: Container parser now uses recursive
parse_nested_shortcodeinstead of non-greedy regex - Media validation: Added strict validation for image_id, image URLs, gallery image_ids in add-element and update-element
- Write-path stability: All write operations now return
canonical_pathfrom re-read after save - replace-content hardened: Structural schema validation, empty content rejection, automatic backup before replace
- New ability:
validate-page-structure- Health check with tag balance, duplicates, round-trip fidelity - New ability:
repair-shortcode-tree- Dry-run-first repair with duplicate removal and empty container cleanup - Registry: Added
fusion_imageframeto static elements registry (56 types total) - Version: Bumped to 3.2.0 (23 abilities total)
3.1.2
- Hardened permission callbacks with input validation on all 12 post-specific abilities
- Added element type and attribute validation helpers
- Transactional safety for bulk-update (all-or-nothing validation)
- Audit logging system for all mutation operations
3.1.0
- Added schema introspection abilities:
get-element-schema,get-element-defaults,list-element-categories,search-elements
3.0.0
- Added advanced editing abilities:
create-page,list-pages,duplicate-element,move-element,find-element,bulk-update,restructure-layout
2.0.0
- Initial Pro release with parser, hierarchy management, and core CRUD abilities.
Author
arnelG
- GitHub: @wikiwyrhead
License
GNU General Public License v2.0 or later (GPL-2.0-or-later).
See LICENSE.