- Symptom
- Unsafe content: script tagPost gets a long auto-generated slugNo parameter for meta or slug
- Cause
- The mcp-wordpress create and update tools accept title, content, status, categories, tags, excerpt and featured media only. They refuse content containing script tags, so JSON-LD blocks fail.
- Fix
- Create the draft with the MCP, then finish slug, full content and meta in one REST call authenticated with an application password.
- Apply
curl -u "$WP_USER:$WP_APP_PASSWORD" -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36" -X POST https://example.com/wp-json/wp/v2/posts/<id> -H 'Content-Type: application/json' -d '{"slug":"my-slug","meta":{"_yoast_wpseo_title":"...","_yoast_wpseo_metadesc":"..."}}'- Affected
- mcp-wordpress via npx, September 2026
Last verified 2026-09-22 · Confirmed by 0 builders