Get the plugin
WP MCP/Integrations/Operations

Operations integration

EWWW Image Optimizer MCP

WP MCP adds two ops on the theme dispatcher pair for EWWW Image Optimizer. get-image-optimizer-status reads EWWW's settings through its own option getter, which is network aware on multisite: the JPG optimization level as EWWW stores it, whether images are optimized on upload, whether backups are on, and whether WebP copies are made. It reports whether a cloud API key is set, never the key, which is also on WP MCP's registry of secret options. It counts library images and how many EWWW has finished, from its own ewwwio_images table, and answers null for the count when that table is missing. optimize-attachment runs one image through EWWW's own resize and optimize routine immediately, with its background deferral turned off for that call, then saves the updated attachment meta. The attachment row, its meta and its files are backed up first, and WebP or AVIF paths that do not exist yet are recorded, so rollback-operation restores the originals and deletes the copies the call added. EWWW's own table may still list the image as optimized after an undo, until it is checked again in EWWW. The write is off until a site opts in with the wpmcp_enable_image_optimizer_write filter or its settings toggle. Both ops run at manage_options.

theme-readtheme-write

What your AI can do

Real EWWW Image Optimizer operations, every write reversible.

  • Read EWWW's JPG level, auto-optimize, backup and WebP settings
  • Check that a cloud API key is set, without seeing it
  • Count images EWWW has optimized and how many are pending
  • Optimize one image now through EWWW itself (opt-in)
  • Roll the image back to its original files and meta

Example prompts

Example EWWW Image Optimizer prompts.

What JPG level is EWWW using, and are WebP images turned on?

How much of the media library has EWWW finished?

Optimize media 1290 with EWWW now, not in the background.

Under the hood

The EWWW Image Optimizer calls, under the hood.

wpmcp, ewww-image-optimizer

theme-read({ operation: "get-image-optimizer-status", args: { plugin: "ewww" } }), settings via EWWW's own getter

theme-write({ operation: "optimize-attachment", args: { media_id: 1290, plugin: "ewww" } }), opt-in; runs now; snapshotted

In the free plugin

The EWWW Image Optimizer integration is in the free plugin.

The core EWWW Image Optimizer tools ship in the free, GPL plugin with the full snapshot and undo engine, and no trial clock. Pro adds 133 more tools, including Elementor deep editing, the other page builders, the forms adapter pack and, for some integrations, extra operations. The pricing page lists what each tier includes.

Frequently asked

EWWW Image Optimizer MCP: questions, answered.

Does optimize-attachment wait for EWWW?

Yes. It switches off EWWW's background deferral for that one call, so the image is optimized during the request and the answer says optimized.

With EWWW Image Optimizer, can the agent read my EWWW cloud key?

No. The status read reports only whether the key is set, and the key's option is on WP MCP's registry of secret options, so WP MCP's option reads mask it too.

Why does the plugin value say ewww?

That is the short name the ops use for EWWW Image Optimizer. Pass plugin: "ewww" when more than one optimizer is active; with only EWWW active it can be left out.

Point your AI at EWWW Image Optimizer.