Fixes a false positive in the shell metacharacter defense that rejected legitimate HTML/JSON content in WP-CLI argument values (e.g., --post_content=<h2>Hello</h2>).
What changed
- Removed overly strict shell metacharacter check from
validateArgs()— argument values passed viaspawn()are array elements with no shell interpretation, so<,>,{,}etc. are safe - The metacharacter check remains on the command string in
isCommandAllowed()where it's appropriate - Updated tests to confirm HTML, JSON, and special characters are allowed in arg values
Install / upgrade
npx -y @chrisfromthelc/local-wp-mcp@1.0.2 --setup