github msrbuilds/elementor-mcp v1.4.3

latest releases: v3.16.1, v3.16.0, v3.15.2...
6 months ago

Gemini API / Antigravity Compatibility Fix

Fixes HTTP 400 errors when using the plugin with Gemini-based MCP clients (Antigravity, etc.) by sanitizing JSON Schema output.

What changed

  • Centralized schema sanitizer — New elementor_mcp_sanitize_schema() function recursively strips empty string values from enum arrays and ensures empty properties objects serialize as {} (not []). Applied to all 44 ability registrations via elementor_mcp_register_ability() wrapper.
  • Control mapper hardeningswitcher, popover_toggle, select, and choose control types no longer emit empty enum values in get-widget-schema output.
  • Container schema fixget-container-schema input schema now uses stdClass for empty properties (fixes 'allOf' failed - got array, want object error). Runtime enum output also sanitized.
  • Import template fix — Added missing items schema to template_json array property (fixes items: missing field error).

Background

Elementor controls often use empty strings as "default/none" option keys. Claude tolerates these, but the Gemini API strictly validates JSON Schema and rejects empty enum values. This affected 80+ properties across dozens of tools.

Closes #21

Don't miss a new elementor-mcp release

NewReleases is sending notifications on new releases.