<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shahid Ali</title>
    <description>The latest articles on DEV Community by Shahid Ali (@shahid_ali_420).</description>
    <link>https://dev.to/shahid_ali_420</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4121985%2F28266072-3372-4a24-893c-0bc2256a69ef.jpg</url>
      <title>DEV Community: Shahid Ali</title>
      <link>https://dev.to/shahid_ali_420</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shahid_ali_420"/>
    <language>en</language>
    <item>
      <title>I built an MCP server that lives inside WordPress - here's the safety model</title>
      <dc:creator>Shahid Ali</dc:creator>
      <pubDate>Sat, 12 Sep 2026 10:44:15 +0000</pubDate>
      <link>https://dev.to/shahid_ali_420/i-built-an-mcp-server-that-lives-inside-wordpress-heres-the-safety-model-22ai</link>
      <guid>https://dev.to/shahid_ali_420/i-built-an-mcp-server-that-lives-inside-wordpress-heres-the-safety-model-22ai</guid>
      <description>&lt;p&gt;I do WordPress and SEO work for clients. I wanted Claude to operate my sites, but I did not trust an agent with raw database access. So I spent the last year building SiteHelm: a GPL plugin that exposes a WordPress site as 115 typed MCP operations - content, media, menus, Elementor, ACF, SEO plugins.&lt;/p&gt;

&lt;p&gt;The safety model is the whole point, so here it is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two-phase writes.&lt;/strong&gt; Every write is two calls. The first is a preview: it writes nothing and returns each field's before and after value with a single-use plan token. The apply is bound to those exact arguments - change one and it is refused. The diff you approved is the diff that lands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snapshot and verify.&lt;/strong&gt; Before a write, the engine records everything a restore would need. After it, the site is read back and compared with the preview's promise. A mismatch is reported as a failure, not a success. This read-back step is where the real bugs hide - a WordPress write can return success while saving into a row the renderer never reads (Elementor is famous for this).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audit and rollback.&lt;/strong&gt; Every change lands in a log in wp-admin, in plain sentences, and applied changes roll back from there - with a preview first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No escape hatches.&lt;/strong&gt; The agent gets named operations with strict input schemas. It does not get PHP, SQL, a shell, or the filesystem. Plugins install only from WordPress.org by slug, land deactivated, and the owner can pause every write with one switch the agent cannot reach.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/Mrshahidali420/SiteHelm" rel="noopener noreferrer"&gt;https://github.com/Mrshahidali420/SiteHelm&lt;/a&gt; - site: &lt;a href="https://wpsitehelm.com" rel="noopener noreferrer"&gt;https://wpsitehelm.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is free and open source (there is a paid add-on for WooCommerce and Elementor Pro surfaces, which is how I keep it sustainable). I would genuinely like feedback on the two-phase write contract - especially from anyone building write-capable MCP servers.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>wordpress</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
