Repository navigation
v0.2.0
npm install @instawp/mcp-wp@0.2.0
Added
WORDPRESS_USER_AGENT— sets the user-agent on every outbound request: the WordPress REST client behind all tools, the SQL endpoint, both api.wordpress.org lookups, and remote media downloads. Leave it unset (the default) and nothing changes — axios keeps sending its ownaxios/<version>. Set it when a CDN or WAF in front of your site rejects that default. An empty or whitespace-only value is treated as unset, since some edges block an empty user-agent too. (#30, #35)
Changed
execute_sql_querynow explains an HTTP 403 rather than just reporting it. A 403 can mean WordPress rejected the credentials, or that a CDN/WAF returned a challenge page before the request ever reached WordPress. The error says so and prints the (truncated) response body, which is the only thing that distinguishes the two. The bareRequest failed with status code 403is what made #28 hard to diagnose. (#35)
Security
vitestbumped to^4.1.11, clearing GHSA-5xrq-8626-4rwp (critical,vitest < 3.2.6) and four moderate/high advisories in thevite/vite-node/esbuildchain. Dev-only — none of it ships in the published package, so no consumer was exposed. (#34)