<?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: Joshua Bryan</title>
    <description>The latest articles on DEV Community by Joshua Bryan (@jsbry).</description>
    <link>https://dev.to/jsbry</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%2F4241991%2F12ea3b5c-be9b-4411-ab25-b77fb18decab.png</url>
      <title>DEV Community: Joshua Bryan</title>
      <link>https://dev.to/jsbry</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jsbry"/>
    <language>en</language>
    <item>
      <title>I graded 14 Go and Rust MCP servers without running a single one</title>
      <dc:creator>Joshua Bryan</dc:creator>
      <pubDate>Mon, 23 Nov 2026 17:52:23 +0000</pubDate>
      <link>https://dev.to/jsbry/i-graded-14-go-and-rust-mcp-servers-without-running-a-single-one-1m83</link>
      <guid>https://dev.to/jsbry/i-graded-14-go-and-rust-mcp-servers-without-running-a-single-one-1m83</guid>
      <description>&lt;p&gt;MCP servers describe their tools to the model: a name, a description, an input schema and a few hints like &lt;code&gt;readOnlyHint&lt;/code&gt; and &lt;code&gt;destructiveHint&lt;/code&gt;. The directories that list MCP apps check those descriptions, and clients use the hints to decide what to run without asking.&lt;/p&gt;

&lt;p&gt;Most ways to check them start the server and call &lt;code&gt;tools/list&lt;/code&gt;. That means installing it, giving it credentials, and trusting it enough to run. For a quick look at someone else's server, or a CI check on a pull request, that's a lot.&lt;/p&gt;

&lt;p&gt;mcp-check 1.3 reads the tool list from the source instead. For Go it understands mark3labs/mcp-go, the official go-sdk and mcp-golang. For Rust it understands rmcp, rust-mcp-sdk and pmcp. It reproduces the tools as the SDK would list them, schemas included, and then grades them. TypeScript and Python were already covered.&lt;/p&gt;

&lt;h3&gt;
  
  
  The run
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @isokron/mcp-check --repo github.com/grafana/mcp-grafana
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I ran that against 14 well-known open-source Go and Rust servers on 23 November.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Tools&lt;/th&gt;
&lt;th&gt;Spec&lt;/th&gt;
&lt;th&gt;Claude directory&lt;/th&gt;
&lt;th&gt;ChatGPT directory&lt;/th&gt;
&lt;th&gt;Hidden text&lt;/th&gt;
&lt;th&gt;Quality&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;github/github-mcp-server (exact)&lt;/td&gt;
&lt;td&gt;149&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;grafana/mcp-grafana&lt;/td&gt;
&lt;td&gt;136&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;containers/kubernetes-mcp-server&lt;/td&gt;
&lt;td&gt;87&lt;/td&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hashicorp/terraform-mcp-server&lt;/td&gt;
&lt;td&gt;68&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;zerodha/kite-mcp-server&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tuananh/hyper-mcp&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mark3labs/mcp-filesystem-server&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;strowk/mcp-k8s-go&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;isaacphi/mcp-language-server&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roblox/studio-rust-mcp-server&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;apollographql/apollo-mcp-server&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;elastic/mcp-server-elasticsearch&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two weren't graded. genai-toolbox builds its tools from configuration at run time, so there's nothing in the source to read. The checker says that, names the four registrations whose names it couldn't resolve, and tells you to grade the live list. I'd rather have that than a confident F.&lt;/p&gt;

&lt;h3&gt;
  
  
  What came up
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Missing titles (8 of 12).&lt;/strong&gt; The Claude directory asks every tool for a human-readable title. A name like &lt;code&gt;search_within_files&lt;/code&gt; isn't one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hints left unset (8 of 12).&lt;/strong&gt; The ChatGPT app directory wants &lt;code&gt;readOnlyHint&lt;/code&gt;, &lt;code&gt;destructiveHint&lt;/code&gt; and &lt;code&gt;openWorldHint&lt;/code&gt; set explicitly on every tool. Left out, a client has to guess, and the safe guess is "ask the human every time".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No hidden instructions anywhere.&lt;/strong&gt; Every server graded A on that section.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is a security hole. It's the difference between being listed and being bounced, and between a client that knows a delete tool deletes and one that has to ask.&lt;/p&gt;

&lt;h3&gt;
  
  
  Caveats
&lt;/h3&gt;

&lt;p&gt;Grades from source are approximate. The reader can miss a tool built at run time, and a schema it can't work out is marked unreadable rather than graded as empty. A live list is exact:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @isokron/mcp-check -- ./your-server --stdio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  In CI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;isokron-ai/mcp-check@v1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With no inputs, it reads your source, runs nothing, and writes a job summary. Add &lt;code&gt;min-grade: B&lt;/code&gt; to gate on it.&lt;/p&gt;

&lt;p&gt;If you maintain one of these servers and a grade looks wrong, open an issue on &lt;a href="https://github.com/isokron-ai/mcp-check" rel="noopener noreferrer"&gt;github.com/isokron-ai/mcp-check&lt;/a&gt; with the tool name. That's how the Go and Rust readers got this far.&lt;/p&gt;

&lt;p&gt;More: &lt;a href="https://isokron.ai/mcp-check?utm_source=devto&amp;amp;utm_medium=social" rel="noopener noreferrer"&gt;isokron.ai/mcp-check&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>go</category>
      <category>rust</category>
      <category>ai</category>
    </item>
    <item>
      <title>How to update one dynamic zone block in Strapi 5 (without deleting the others)</title>
      <dc:creator>Joshua Bryan</dc:creator>
      <pubDate>Wed, 18 Nov 2026 23:59:14 +0000</pubDate>
      <link>https://dev.to/isokron/how-to-update-one-dynamic-zone-block-in-strapi-5-without-deleting-the-others-mag</link>
      <guid>https://dev.to/isokron/how-to-update-one-dynamic-zone-block-in-strapi-5-without-deleting-the-others-mag</guid>
      <description>&lt;p&gt;You have a Strapi 5 page built from a dynamic zone: a hero, a feature grid and a call to action. You want to change the hero's heading and nothing else. So you send an update with the hero block, and the feature grid and the call to action are gone.&lt;/p&gt;

&lt;p&gt;That is how Strapi 5 writes lists. A dynamic zone, a repeatable component or a rich-text blocks field is replaced as a whole: the array you send becomes the new list, and anything you left out is deleted. The REST API works this way, and so does the &lt;code&gt;update_&amp;lt;type&amp;gt;&lt;/code&gt; tool in Strapi's built-in MCP server. With one writer, that is a matter of sending the right array. With two writers, it is a race: each one sends a list built from its own read, the second write wins, and the first writer's block disappears with a 200 and no error.&lt;/p&gt;

&lt;p&gt;People keep running into this. One GitHub issue reads, "&lt;a href="https://github.com/strapi/strapi/issues/25074" rel="noopener noreferrer"&gt;found that I cannot update component&lt;/a&gt;". A docs issue is blunter: "&lt;a href="https://github.com/strapi/documentation/issues/2327" rel="noopener noreferrer"&gt;Updating dynamic zones via REST API does not work.&lt;/a&gt;" It does work. It just doesn't work the way most of us assume the first time.&lt;/p&gt;

&lt;p&gt;Below are three routes, in order of how much control you have over the writer.&lt;/p&gt;

&lt;p&gt;Disclosure up front: the third route uses writesafe, a plugin my company, IsoKron, built and maintains. It's free and MIT-licensed. Routes 1 and 2 need nothing but Strapi.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why ids don't save you
&lt;/h2&gt;

&lt;p&gt;In Strapi v4 you could send a component's &lt;code&gt;id&lt;/code&gt; and update that one row. The v4-to-v5 breaking changes document two things about that in Strapi 5:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;REST responses for components and dynamic zones &lt;a href="https://docs.strapi.io/cms/migration/v4-to-v5/breaking-changes/components-and-dynamic-zones-do-not-return-id" rel="noopener noreferrer"&gt;no longer include an &lt;code&gt;id&lt;/code&gt;&lt;/a&gt;, so partial updates of them over REST are documented as not possible.&lt;/li&gt;
&lt;li&gt;With Draft &amp;amp; Publish, &lt;a href="https://docs.strapi.io/cms/migration/v4-to-v5/breaking-changes/do-not-update-repeatable-components-with-document-service-api" rel="noopener noreferrer"&gt;component ids are status-local&lt;/a&gt;: publishing creates new component rows, so the draft and the published version of the same block have different ids. Sending a published id against the draft fails with "…not related to the entity".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The reporter of the issue above, on 5.32.0, got a 400 &lt;code&gt;Invalid key id&lt;/code&gt; for sending &lt;code&gt;id&lt;/code&gt; in a REST body at all. On 5.62.0 the server has moved on from the first point. A REST &lt;code&gt;GET&lt;/code&gt; returns an &lt;code&gt;id&lt;/code&gt; on every block, and if you read the draft (&lt;code&gt;?status=draft&lt;/code&gt;) and send those ids back, the &lt;code&gt;PUT&lt;/code&gt; returns 200 and updates the rows in place. Published ids still get a 400: "Some of the provided components in sections are not related to the entity".&lt;/p&gt;

&lt;p&gt;None of which saves you. An id only decides whether Strapi updates a row or recreates it. The list is still replaced as a whole: a block you leave out is deleted, id or no id, and nothing in the request says which version you read.&lt;/p&gt;

&lt;p&gt;Strapi's documented pattern for REST is still to leave ids out, so that is Route 1. I wouldn't build on undocumented id handling that changed between 5.32 and 5.62. The Document Service, which reads and writes the draft by default, accepts draft component ids by design; that is Route 2.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 1: REST, send the whole list
&lt;/h2&gt;

&lt;p&gt;Strapi's recommended pattern for Content API clients is to omit component ids and send the complete list you want. Their docs put it in one line: "Include every component you want to keep."&lt;/p&gt;

&lt;p&gt;Read the draft with the zone populated. For dynamic zones, Strapi 5's docs use &lt;code&gt;on&lt;/code&gt; fragments, one per component; list every component the zone allows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sg &lt;span class="s2"&gt;"http://localhost:1337/api/pages/$DOC_ID?status=draft\
&amp;amp;populate[sections][on][blocks.hero][populate]=*\
&amp;amp;populate[sections][on][blocks.feature-grid][populate]=*\
&amp;amp;populate[sections][on][blocks.cta][populate]=*"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $API_TOKEN"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then change the one block and send the whole zone back, every entry with its &lt;code&gt;__component&lt;/code&gt; and without &lt;code&gt;id&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X PUT &lt;span class="s2"&gt;"http://localhost:1337/api/pages/$DOC_ID?status=draft"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $API_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "data": {
      "sections": [
        { "__component": "blocks.hero", "heading": "Spring sale", "subheading": "Ends Sunday" },
        { "__component": "blocks.feature-grid", "title": "Why us", "items": [ { "label": "Fast" }, { "label": "Quiet" } ] },
        { "__component": "blocks.cta", "label": "Buy", "url": "/buy" }
      ]
    }
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things to know:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;__component&lt;/code&gt; is not optional. The REST docs say that without it, "writes can fail validation or return success without changing data." The second outcome is the one that costs an afternoon. Put it first, too: on 5.62, a block whose nested list comes before &lt;code&gt;__component&lt;/code&gt; gets a 400 &lt;code&gt;Invalid key __component at sections&lt;/code&gt;, and the &lt;code&gt;GET&lt;/code&gt; returns &lt;code&gt;__component&lt;/code&gt; last, so pasting the &lt;code&gt;GET&lt;/code&gt; output straight back fails.&lt;/li&gt;
&lt;li&gt;Every entry comes back as a new row with a new id. If something downstream keyed off component ids, it no longer matches.&lt;/li&gt;
&lt;li&gt;Nested lists inside a block (the grid's &lt;code&gt;items&lt;/code&gt; above) have to be sent in full too. Populate deep enough to see them, or they go the same way as the call to action.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This route is correct for one writer. It has no version check, so if an editor adds a testimonial block between your GET and your PUT, your PUT removes it. Nothing in the response tells you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 2: backend code, Document Service with draft ids
&lt;/h2&gt;

&lt;p&gt;If the write happens in your own Strapi code (a controller, a cron job, a migration script), you can do what the REST docs say not to count on: load the draft with its component ids and update one entry in place. This is the second workaround in Strapi's breaking-change note. Wrapping it in a transaction keeps the read and the write together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/api/page/services/update-hero.js&lt;/span&gt;
&lt;span class="kd"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;strapi&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nf"&gt;updateHeroHeading&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;heading&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;strapi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;draft&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;strapi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'api::page.page'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findOne&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;documentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'draft'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;populate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="s1"&gt;'blocks.hero'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;populate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'*'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="s1"&gt;'blocks.feature-grid'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;populate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'*'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="s1"&gt;'blocks.cta'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;populate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'*'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sections&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;draft&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
        &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;__component&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'blocks.hero'&lt;/span&gt;
          &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;heading&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;   &lt;span class="c1"&gt;// keeps id and __component&lt;/span&gt;
          &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;                    &lt;span class="c1"&gt;// every other block, with its draft id&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;strapi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'api::page.page'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;documentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sections&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rules that matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use draft ids only. The docs are explicit: don't reuse ids from a default Content API &lt;code&gt;GET&lt;/code&gt;, which returns the published version.&lt;/li&gt;
&lt;li&gt;Send every block. It is still a whole-list write; the ids only decide whether Strapi updates the rows or recreates them.&lt;/li&gt;
&lt;li&gt;A transaction is not a lock. Under the default isolation levels of Postgres and MySQL, two of these running at once can both read the same draft and both write, and the second one still drops whatever the first added. Editors saving in the admin panel don't go through your transaction at all. If you need this to be safe under concurrency, lock the draft rows before the read (&lt;code&gt;SELECT … FOR UPDATE&lt;/code&gt;) or check a version and retry. The rest of this article is, more or less, what happens when you do that properly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Route 3: agents over MCP, with writesafe
&lt;/h2&gt;

&lt;p&gt;Strapi 5 ships an MCP server, which is how a growing number of pages now get edited: an agent connected at &lt;code&gt;/mcp&lt;/code&gt;, sometimes while a person is in the admin panel. The built-in &lt;code&gt;update_&amp;lt;type&amp;gt;&lt;/code&gt; tool behaves like REST. It replaces each list it is sent, it can't send component ids, and it has no version check.&lt;/p&gt;

&lt;p&gt;We measured that during development on Strapi 5.62.0 with SQLite. An agent writing from a stale read while a colleague added a block deleted the colleague's block in 12 of 12 trials, for each of dynamic zones, repeatable components and blocks fields. None of 233 responses carried a conflict signal.&lt;/p&gt;

&lt;p&gt;writesafe adds &lt;code&gt;ws_*&lt;/code&gt; tools to that same &lt;code&gt;/mcp&lt;/code&gt; endpoint through Strapi's plugin API (&lt;code&gt;strapi.ai.mcp.registerTool&lt;/code&gt;), with the same admin tokens and permissions. Two of them do the work here.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ws_get&lt;/code&gt; returns the draft with a &lt;code&gt;version&lt;/code&gt; token and a &lt;code&gt;_key&lt;/code&gt; on every row of each top-level list. Over plain HTTP it's a JSON-RPC &lt;code&gt;tools/call&lt;/code&gt;; the server is stateless, so no &lt;code&gt;initialize&lt;/code&gt; is needed first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s http://localhost:1337/mcp \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $STRAPI_MCP_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -H &lt;span class="s1"&gt;'Accept: application/json, text/event-stream'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
        "name":"ws_get",
        "arguments":{"uid":"api::page.page","documentId":"'&lt;/span&gt;&lt;span class="s2"&gt;"$DOC_ID"&lt;/span&gt;&lt;span class="s1"&gt;'","fields":["sections"]}}}'&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; sed -n &lt;span class="s1"&gt;'s/^data: //p'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.result.structuredContent'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Abridged, the part you care about looks like this (version and keys shortened; yours will differ):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"v3.PZ6WXSDnDcYZPXpw…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"sections"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.hero:10:wb2tiA9SP1YF…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"heading"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Welcome"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"subheading"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hi"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"__component"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.hero"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.feature-grid:13:EY-ZPnXzVjOd…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Why us"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"items"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Fast"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Quiet"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"__component"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.feature-grid"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.cta:11:0T_4M8oXIMsf…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"__component"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.cta"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"sections"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"blocks.hero:10:wb2tiA9SP1YF…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"blocks.feature-grid:13:EY-ZPnXzVjOd…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"blocks.cta:11:0T_4M8oXIMsf…"&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then &lt;code&gt;ws_patch&lt;/code&gt; edits one row by key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"uid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"api::page.page"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"documentId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;documentId&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"ops"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"update"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"field"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sections"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.hero:10:wb2tiA9SP1YF…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"heading"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Spring sale"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Row ops (&lt;code&gt;add&lt;/code&gt;, &lt;code&gt;update&lt;/code&gt;, &lt;code&gt;remove&lt;/code&gt;, &lt;code&gt;move&lt;/code&gt;) apply to the current list inside the write transaction, under a row lock, not to the list as the agent last saw it. So a block a colleague added a minute ago survives, and the rows you didn't name keep their database ids. Row ops need no version, because a key is bound to the row's content: if someone changed the hero since your read, the call is refused with &lt;code&gt;stale_row_key&lt;/code&gt;; if the hero is gone, &lt;code&gt;row_not_found&lt;/code&gt;. Either way the agent reads again. It doesn't guess.&lt;/p&gt;

&lt;p&gt;Sometimes you really do mean to replace the whole list. That's a &lt;code&gt;set&lt;/code&gt;, and a &lt;code&gt;set&lt;/code&gt; needs the version you read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"uid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"api::page.page"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"documentId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;documentId&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"expected_version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"v3.PZ6WXSDnDcYZPXpw…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"set"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"sections"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"__component"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blocks.cta"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/buy"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the draft changed since that read, nothing is written. The reply is &lt;code&gt;version_conflict&lt;/code&gt; with the current version, the current document and a retry hint telling the agent to re-apply only its own change.&lt;/p&gt;

&lt;p&gt;In the same trials as above: with row ops, 0 of 36 colleague rows were lost and no ids were recreated. With a stale whole-list &lt;code&gt;set&lt;/code&gt;, 36 of 36 writes were refused with &lt;code&gt;version_conflict&lt;/code&gt;, and 36 of 36 landed after one re-read and retry. The table and conditions are in the &lt;a href="https://github.com/isokron-ai/strapi-plugin-writesafe/blob/main/docs/reference.md?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=writesafe#why-what-the-built-in-update-tool-does-measured" rel="noopener noreferrer"&gt;reference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To be plain about scope: &lt;strong&gt;this only applies to MCP tool calls.&lt;/strong&gt; writesafe adds no REST routes and does not change what &lt;code&gt;PUT /api/pages/:id&lt;/code&gt; does. Any HTTP client can make the calls above, not only an AI agent, but they go to &lt;code&gt;/mcp&lt;/code&gt;, not &lt;code&gt;/api&lt;/code&gt;. If your writers are REST clients, Routes 1 and 2 are your options.&lt;/p&gt;

&lt;p&gt;By default (&lt;code&gt;builtinUpdates: 'guard'&lt;/code&gt;) the plugin also makes Strapi's built-in &lt;code&gt;update_&amp;lt;type&amp;gt;&lt;/code&gt; refuse list and component writes and point the agent at &lt;code&gt;ws_patch&lt;/code&gt;, so an agent can't take the old path by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which route when
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Writer&lt;/th&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One REST or GraphQL client, nobody else editing that page at the same time&lt;/td&gt;
&lt;td&gt;1: send the full list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your own Strapi code&lt;/td&gt;
&lt;td&gt;2: Document Service with draft ids, plus a lock if it can run concurrently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agents or other MCP clients, especially alongside human editors&lt;/td&gt;
&lt;td&gt;3: row ops by key&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Only &lt;code&gt;api::&lt;/code&gt; collection and single types. Types with a polymorphic relation inside a component, or components nested deeper than 8 levels, are left out, and &lt;code&gt;ws_schema&lt;/code&gt; names them.&lt;/li&gt;
&lt;li&gt;Tested on every Strapi 5 minor from 5.47 to 5.62, each on SQLite, Postgres 16 and MySQL 8.4 (48 of 48 cells pass). MariaDB is not tested. Prefer a minor other than 5.51.x: its MCP endpoint's memory grows per request, with or without the plugin.&lt;/li&gt;
&lt;li&gt;Two editors in the admin panel still overwrite each other. Last Save wins, as in Strapi.&lt;/li&gt;
&lt;li&gt;One behaviour change to know about: &lt;code&gt;staleFormGuard&lt;/code&gt; (on by default) makes an admin form that was opened before a newer REST, GraphQL or agent write refuse its Save with a 409, keeping the editor's values. &lt;code&gt;staleFormGuard: { otherWriters: false }&lt;/code&gt; restores last-write-wins for non-agent writers.&lt;/li&gt;
&lt;li&gt;In &lt;code&gt;keep&lt;/code&gt; or &lt;code&gt;guide&lt;/code&gt; mode, an agent that ignores its instructions can still call &lt;code&gt;update_&amp;lt;type&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install strapi-plugin-writesafe-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// config/plugins.js&lt;/span&gt;
&lt;span class="kd"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;writesafe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// config/server.js: add this to the object it returns&lt;/span&gt;
&lt;span class="c1"&gt;//   mcp: { enabled: true },&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then &lt;code&gt;npm run build&lt;/code&gt; (the plugin adds a jobs page and a settings page to the admin) and restart. Create an admin token with Read and Update on your content type; &lt;code&gt;tools/list&lt;/code&gt; on &lt;code&gt;/mcp&lt;/code&gt; should now show the &lt;code&gt;ws_*&lt;/code&gt; tools. Client setup for Claude Code, Cursor and others is in &lt;a href="https://github.com/isokron-ai/strapi-plugin-writesafe/blob/main/docs/clients.md?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=writesafe" rel="noopener noreferrer"&gt;docs/clients.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;None of this is a Strapi bug. Whole-list replacement is a reasonable contract for a REST API, and Strapi documents it. It just assumes one writer, and that assumption got quieter and less true once agents started editing content. If you only have one writer, send the full list and move on. If you have several, give each one a way to say which row it means and which version it read.&lt;/p&gt;

&lt;p&gt;writesafe is on &lt;a href="https://www.npmjs.com/package/strapi-plugin-writesafe-mcp" rel="noopener noreferrer"&gt;npm&lt;/a&gt;, in the &lt;a href="https://community.strapi.io/marketplace/write-safe-mcp?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=writesafe" rel="noopener noreferrer"&gt;Strapi Marketplace&lt;/a&gt; and on &lt;a href="https://github.com/isokron-ai/strapi-plugin-writesafe?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=writesafe" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. If you hit a list edit the row ops don't cover, open an issue. The general idea behind it is written up in &lt;a href="https://isokron.ai/research/send-the-change-not-the-object?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=writesafe" rel="noopener noreferrer"&gt;Send the change, not the object&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;IsoKron built and maintains writesafe. I'm IsoKron's founder.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>strapi</category>
      <category>mcp</category>
      <category>ai</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Both writes said “success”. One was lost. Test your MCP server for it</title>
      <dc:creator>Joshua Bryan</dc:creator>
      <pubDate>Tue, 17 Nov 2026 00:27:08 +0000</pubDate>
      <link>https://dev.to/isokron/both-writes-said-success-one-was-lost-test-your-mcp-server-for-it-12ih</link>
      <guid>https://dev.to/isokron/both-writes-said-success-one-was-lost-test-your-mcp-server-for-it-12ih</guid>
      <description>&lt;p&gt;Two agents edit the same record through an MCP server. Both get "success" back. One of the changes is gone, and nothing in either result says so.&lt;/p&gt;

&lt;p&gt;Last week we wrote up &lt;a href="https://dev.to/isokron/lost-updates-in-four-mcp-servers-github-grafana-posthog-and-kubernetes-2pon"&gt;lost updates like this in four live MCP servers&lt;/a&gt;, measured with forced collisions. This post is the hands-on half: reproduce the failure on a small sample server on your own machine, see the refusal that prevents it, look at the fix in a tool handler, and run the same test against your own server and in CI. Everything here is open source, needs no account and runs locally.&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure in four steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Agent A reads record T-17 at version 3. Agent B reads it too.&lt;/li&gt;
&lt;li&gt;B adds a label. The record is now at version 4.&lt;/li&gt;
&lt;li&gt;A saves the whole record as it read it, with a new title. The server writes it.&lt;/li&gt;
&lt;li&gt;Both calls returned success. B's label is gone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An agent acts on what a tool returns, not on what happened in the backend. If the result says "success" for a write that silently replaced someone else's, the agent has no reason to look again.&lt;/p&gt;

&lt;p&gt;The fix is old and boring: the write carries the version it was built from, and the server refuses it if the record has moved on. HTTP has &lt;code&gt;If-Match&lt;/code&gt;, Kubernetes has &lt;code&gt;resourceVersion&lt;/code&gt;, GitHub's Contents API has the blob &lt;code&gt;sha&lt;/code&gt;. The question is whether your MCP tool keeps that check or throws it away. In our Grafana audit, the tool saved every dashboard patch with &lt;code&gt;Overwrite: true&lt;/code&gt; hard-coded, so the version check in Grafana's save API never ran, and two simultaneous patches lost an edit on every run (&lt;a href="https://isokron.ai/research/grafana-mcp-server-audit?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=mws-launch" rel="noopener noreferrer"&gt;audit&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce it in one command
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tiny-tracker&lt;/code&gt; is a small ticket-tracker MCP server we built as a test sample. You can switch deliberate defects on. This runs it with one defect on, a delete that ignores the version the caller read, and tests it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx -y -p @mcp-write-safety/writecheck@0.1.0 \
       -p @mcp-write-safety/tiny-tracker@0.1.0 \
       mcp-writecheck demo --defect MWS-CONC-2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Node 22 or later. The server runs on 127.0.0.1, in memory; nothing leaves your machine.&lt;/p&gt;

&lt;p&gt;Output (trimmed where marked &lt;code&gt;…&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tiny-tracker with defects: MWS-CONC-2 — backend http://127.0.0.1:55158, MCP server started by the tester behind the loopback gate
plan 0309d69e79d13469; the demo confirms the target itself because it started it (on 127.0.0.1, in memory). `run` always asks.

MWS-UPD-1    MUST   held, not applicable
MWS-UPD-2    MUST   held
MWS-CONC-1   MUST   violated in ticket:delete_ticket
MWS-CONC-2   MUST   violated in ticket:delete_ticket
MWS-CONC-3   MUST   not observed, held
MWS-CONC-4   MUST   held, self-attested, not tested
MWS-CONC-5   SHOULD self-attested, not applicable, not tested
MWS-CONC-6   SHOULD held
…
MWS-SEC-1    MUST   not observed

285 records in 13.9 s. One line per requirement; the report has one row per write path. There is no total.
mcp-writecheck is a preview: of the 37 requirements of MWS 0.9 it executes the test of 14 in full and of 23 in part; what is not built is reported "not tested" with the reason (README: Coverage in this preview).
…
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Each &lt;code&gt;MWS-&lt;/code&gt; line is one requirement from the MCP Write-Safety Requirements (more on those below) with the verdicts across that requirement's write paths. &lt;code&gt;violated&lt;/code&gt; means the tester forced the situation and reproduced the forbidden behavior: here, &lt;code&gt;delete_ticket&lt;/code&gt; deleted a ticket that another writer had changed after the caller's read. &lt;code&gt;held&lt;/code&gt; means the situation was forced and handled correctly every time. &lt;code&gt;not observed&lt;/code&gt; means it was attempted but not forced, which is not evidence either way. &lt;code&gt;not tested&lt;/code&gt; always comes with a reason.&lt;/p&gt;

&lt;p&gt;Run it with &lt;code&gt;--defect all&lt;/code&gt; to switch every deliberate defect on, or with no &lt;code&gt;--defect&lt;/code&gt; to see the correct build.&lt;/p&gt;
&lt;h2&gt;
  
  
  What the refusal looks like
&lt;/h2&gt;

&lt;p&gt;Here is the correct build refusing a stale write, recorded from the tester's own calls. The tester reads a ticket at version 1, a second writer closes it (version 2), then the tester sends a label change built from version 1. Each result's text is shown as returned; the refusal also returns a JSON block, trimmed here where marked &lt;code&gt;…&lt;/code&gt;, and two reads in between (the second writer's, and the tester's check that the close landed) are left out:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; get_ticket {"id":"T-17"}
&amp;lt; T-17 in mwsc-42e8a720cb-run1: "mwsc-42e8a720cb-sd101" (status in_progress, priority 2, assignee none, 0 comment(s))
  labels: [{"name": "a", "id": "L-50"}, {"name": "b", "id": "L-51"}, {"name": "c", "id": "L-52"}]
  current expected_version: 1
&amp;gt; update_ticket {"id":"T-17","status":"closed","expected_version":1}
&amp;lt; Updated T-17: status. Now at version 2.
&amp;gt; set_labels {"id":"T-17","labels":["x"],"expected_version":1}
&amp;lt; isError: true
  Not applied: ticket T-17 changed since the version you read. Nothing was changed.
  Its current state and version are in the JSON below.
  Before writing again, read it with "get_ticket" and the arguments {"id":"T-17"} and build the write from what the read shows.
  {"conflict":true,"written":false,"reread_required":true,"current_version":2,"current":{"id":"T-17",…,"status":"closed",…,"labels":[{"id":"L-50","name":"a"},{"id":"L-51","name":"b"},{"id":"L-52","name":"c"}],"version":2,…},"mws":{"shape":"write-result/0.1","outcome":"not_applied",…,"code":"conflict",…}}
&amp;gt; get_ticket {"id":"T-17"}
&amp;lt; T-17 in mwsc-42e8a720cb-run1: "mwsc-42e8a720cb-sd101" (status closed, priority 2, assignee none, 0 comment(s))
  labels: [{"name": "a", "id": "L-50"}, {"name": "b", "id": "L-51"}, {"name": "c", "id": "L-52"}]
  current expected_version: 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Three things make that a good refusal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is an error&lt;/strong&gt; (&lt;code&gt;isError: true&lt;/code&gt;), so a client or retry loop that only checks the flag sees it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It says nothing was changed,&lt;/strong&gt; in the text and as &lt;code&gt;"written":false&lt;/code&gt;. "Failed" alone leaves the agent guessing whether part of the write landed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It carries the current state and the version to send next,&lt;/strong&gt; and names the read to make before writing again, so the agent can rebuild its change on top of what is there now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One subtlety: a version check refuses a stale &lt;em&gt;version&lt;/em&gt;, not stale &lt;em&gt;content&lt;/em&gt;. If the agent resends exactly what it read under the new version number, the check lets it through and the other writer's change is still lost. The agent has to rebuild its write from the current state, so how the error presents that state matters.&lt;/p&gt;

&lt;p&gt;We published exploratory runs on this today. With no system prompt, no wording we tried led to a loss: 0 losses in 392 runs across seven wordings. Under a prompt telling the agent not to re-read, one trap did: the error listed the record's labels unquoted, and one label was spelled like the current version. The agent took the label for the version number and resent its old list, and the other writer's change was lost in 38 of 48 runs. With the labels quoted, 0 of 48. That is one model, one prompt and one trap, on our own server and error text; without the look-alike label the same text lost 0 of 117 (&lt;a href="https://isokron.ai/research/mcp-conflict-errors-ai-agent?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=mws-launch" rel="noopener noreferrer"&gt;the study, with its limits and data&lt;/a&gt;). The cheap rule it suggests: if your error carries state, make it readable one way only. Quote strings and list members, or return a JSON object. More on this in a later post in the series.&lt;/p&gt;
&lt;h2&gt;
  
  
  The fix in a tool handler
&lt;/h2&gt;

&lt;p&gt;The pattern: require the version as an argument, send it to the backend's own conditional write so the check and the write are one step, and turn "no row matched" into a conflict that carries the current state.&lt;/p&gt;

&lt;p&gt;Here it is with our TypeScript kit (&lt;code&gt;@mcp-write-safety/kit&lt;/code&gt;; there is a Python one too, &lt;code&gt;mcp-write-safety-kit&lt;/code&gt;). The SQL is the part that matters; the kit builds the error and the result:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;defineTool&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;compareAndSet&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;VersionConflictError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;NotAppliedError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;outputSchemaFor&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@mcp-write-safety/kit"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;updateTitle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;defineTool&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;expected_version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"write"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"update_title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Sets a document's title. Requires expected_version; a stale version is refused with a conflict."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;inputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;expected_version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"integer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minimum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"expected_version"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;hints&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;destructive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idempotent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;openWorld&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;readWith&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"get_document"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;outputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;outputSchemaFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected_version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;compareAndSet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"document"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expectedVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;expected_version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;readWith&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"get_document"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getDoc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// One statement compares and writes: the backend does the check.&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;prepare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"UPDATE documents SET title = ?, version = version + 1 WHERE id = ? AND version = ?"&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected_version&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;changes&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;                  &lt;span class="c1"&gt;// another writer got there first&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getDoc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;
          &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;VersionConflictError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;NotAppliedError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`document ${q(id)} was deleted`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"not_found"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;expected_version&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/title"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;conflictFields&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// what a conflict may show&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You don't need the kit for this. The &lt;code&gt;WHERE id = ? AND version = ?&lt;/code&gt; is the whole idea; the rest is making the result say what happened. If your backend is a web API, the equivalent is forwarding its precondition (&lt;code&gt;If-Match&lt;/code&gt;, &lt;code&gt;sha&lt;/code&gt;, &lt;code&gt;resourceVersion&lt;/code&gt;) instead of dropping it or forcing an overwrite.&lt;/p&gt;

&lt;p&gt;If your backend has no conditional write at all, the kit can compare versions in-process, but that only protects writes that go through the same server process. Say so in the tool's description.&lt;/p&gt;
&lt;h2&gt;
  
  
  Test your own server
&lt;/h2&gt;

&lt;p&gt;Point the CLI at your server &lt;strong&gt;in a test environment you are allowed to change&lt;/strong&gt;. &lt;code&gt;plan&lt;/code&gt; writes nothing; &lt;code&gt;run&lt;/code&gt; makes real writes.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install --save-dev @mcp-write-safety/writecheck@0.1.0

&lt;span class="c"&gt;# Draft a manifest from your server's tools/list; every guess is marked for you to check&lt;/span&gt;
npx mcp-writecheck init --out writecheck.yaml --env BACKEND_URL -- node ./my-server.js

&lt;span class="c"&gt;# List every call a run would make, plus a plan hash. No tool call is made.&lt;/span&gt;
npx mcp-writecheck plan -m writecheck.yaml

&lt;span class="c"&gt;# Run it. You type the target name and the plan hash to confirm.&lt;/span&gt;
npx mcp-writecheck run -m writecheck.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A few guard rails worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;run&lt;/code&gt; asks you to type the target and the plan hash. There is no &lt;code&gt;--yes&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Objects a run creates carry the prefix &lt;code&gt;mwsc-&amp;lt;run&amp;gt;-&lt;/code&gt; and are deleted at the end; &lt;code&gt;cleanup&lt;/code&gt; handles an interrupted run.&lt;/li&gt;
&lt;li&gt;A write budget and a rate limit apply (500 writes and 5 per second by default), and a run stops at the first HTTP 429.&lt;/li&gt;
&lt;li&gt;Results go to &lt;code&gt;report.md&lt;/code&gt;, &lt;code&gt;results.json&lt;/code&gt; and &lt;code&gt;junit.xml&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CLI is a preview. Of the 37 requirements, it runs the tests of 14 in full and 23 in part, and it reports the rest as &lt;code&gt;not tested&lt;/code&gt; with the reason. The &lt;a href="https://github.com/isokron-ai/mcp-write-safety/tree/main/packages/writecheck#coverage-in-this-preview" rel="noopener noreferrer"&gt;coverage table&lt;/a&gt; says which is which.&lt;/p&gt;
&lt;h2&gt;
  
  
  Add it to CI
&lt;/h2&gt;

&lt;p&gt;The GitHub Action has two modes. &lt;code&gt;plan&lt;/code&gt; on pull requests needs no test environment and no secret. &lt;code&gt;full&lt;/code&gt; on pushes to main makes real writes against a test backend:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/mcp-writecheck.yml (excerpt)
&lt;/span&gt;&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;main&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event_name == 'pull_request'&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1&lt;/span&gt; &lt;span class="c1"&gt;# v7.0.1
&lt;/span&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1&lt;/span&gt; &lt;span class="c1"&gt;# v7.1.0
&lt;/span&gt;        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci &amp;amp;&amp;amp; npm run build&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;isokron-ai/mcp-writecheck-action@v0&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;manifest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;writecheck.yaml&lt;/span&gt;
          &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;plan&lt;/span&gt;            &lt;span class="c1"&gt;# no tool call, no write, no secret
&lt;/span&gt;  &lt;span class="na"&gt;full&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event_name == 'push'&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;concurrency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;group:&lt;/span&gt; &lt;span class="s"&gt;mcp-writecheck-test-environment&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;cancel-in-progress:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;API_TOKEN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.TEST_BACKEND_TOKEN }}&lt;/span&gt;   &lt;span class="c1"&gt;# valid only in the test environment
&lt;/span&gt;    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1&lt;/span&gt; &lt;span class="c1"&gt;# v7.0.1
&lt;/span&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1&lt;/span&gt; &lt;span class="c1"&gt;# v7.1.0
&lt;/span&gt;        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci &amp;amp;&amp;amp; npm run build&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;isokron-ai/mcp-writecheck-action@v0&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;manifest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;writecheck.yaml&lt;/span&gt;
          &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;full&lt;/span&gt;            &lt;span class="c1"&gt;# real writes to the test environment
&lt;/span&gt;          &lt;span class="na"&gt;fail-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;must&lt;/span&gt;
          &lt;span class="na"&gt;confirm-target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;staging-tracker.internal&lt;/span&gt;   &lt;span class="c1"&gt;# the manifest's target.confirm
&lt;/span&gt;          &lt;span class="na"&gt;plan-hash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0123456789abcdef&lt;/span&gt;                &lt;span class="c1"&gt;# from the plan, after a person has read it
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The plan hash covers the manifest, the tool list, the suite version, the limits and the hosts in the server's environment. If any of them changes, &lt;code&gt;full&lt;/code&gt; refuses to run until someone reads the new plan and updates the hash.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where the tests come from
&lt;/h2&gt;

&lt;p&gt;The tests implement the &lt;strong&gt;MCP Write-Safety Requirements (MWS) 0.9&lt;/strong&gt;: 37 requirements for MCP servers whose tools create, change or delete data, in ten areas (update semantics, concurrency, targeting, truthful results, multi-item writes, retries, inputs, safety settings, annotations, credentials in results). Each has a stable ID, a test method and the published finding behind it. The spec is CC BY 4.0; the tools are Apache-2.0.&lt;/p&gt;

&lt;p&gt;Two things it is not:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Not part of MCP.&lt;/strong&gt; It is an independent layer above the protocol and adds nothing to it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a security test.&lt;/strong&gt; Authentication, authorization and prompt injection are out of scope. MWS asks whether writes are correct and reported truthfully.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The report keeps one result per requirement and write path, and does not add them up. We expect most servers today, well-built ones included, to show some &lt;code&gt;violated&lt;/code&gt; rows; a &lt;code&gt;violated&lt;/code&gt; row describes one forced situation, and whether it matters depends on your users.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/isokron-ai" rel="noopener noreferrer"&gt;
        isokron-ai
      &lt;/a&gt; / &lt;a href="https://github.com/isokron-ai/mcp-write-safety" rel="noopener noreferrer"&gt;
        mcp-write-safety
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      MCP Write-Safety Requirements (MWS): requirements, test tool and sample server for MCP servers that write
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/isokron-ai/mcp-write-safety-kits/main/assets/mws-mark-128.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fisokron-ai%2Fmcp-write-safety-kits%2Fmain%2Fassets%2Fmws-mark-128.png" alt="MCP Write-Safety Requirements mark" width="72" height="72" class="js-gh-image-fallback"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The MWS mark is not covered by this repository's licences; its use is described in &lt;a href="https://github.com/isokron-ai/mcp-write-safety/TRADEMARKS.md" rel="noopener noreferrer"&gt;TRADEMARKS.md&lt;/a&gt;.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;MCP Write-Safety Requirements (MWS)&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;The MCP Write-Safety Requirements (MWS) are a specification for Model Context Protocol (MCP) servers whose tools change state: create, update and delete. They state what a server must do so that a write made through one of its tools has the effect the caller asked for, on the object the caller named, and is reported truthfully: a caller does not lose another writer's change, does not apply a write twice, and is not told that a write happened when it did not. They cover version checks, idempotency keys, strict input validation, truthful results, unknown outcomes and tool annotations, and each requirement comes with a test method.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Status: MWS 0.9, a draft for public comment, published 16 November 2026, open for comment until 16 December 2026.&lt;/strong&gt; Every requirement has the…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/isokron-ai/mcp-write-safety" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  0.9 is a draft: tell us where it's wrong
&lt;/h2&gt;

&lt;p&gt;MWS 0.9 is open for comment until 16 December 2026. Comments are GitHub issues in any form, and each one gets a recorded disposition. We are least sure about a few points: who counts as "another client" for the concurrency rules (MWS-CONC-2), how a server should report a delete the backend has not finished (MWS-RES-1), and whether a bare refusal with no detail is enough.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The requirements, the quickstart and the evidence: &lt;a href="https://isokron.ai/mws?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=mws-launch" rel="noopener noreferrer"&gt;isokron.ai/mws&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The failure modes in plain terms: &lt;a href="https://isokron.ai/write-safety?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=mws-launch" rel="noopener noreferrer"&gt;What is MCP write safety?&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Comment: &lt;a href="https://github.com/isokron-ai/mcp-write-safety/issues" rel="noopener noreferrer"&gt;github.com/isokron-ai/mcp-write-safety/issues&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next in this series: we read the write paths of 100 popular packaged MCP servers, from source and without running them, to see whether their results say if a write happened. 7 of the 100 can say "the outcome is unknown" in a form a program can read. &lt;a href="https://isokron.ai/research/mcp-write-results-100-servers?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=mws-launch" rel="noopener noreferrer"&gt;The study is up now&lt;/a&gt; if you don't want to wait.&lt;/p&gt;

&lt;p&gt;What does your MCP server do when two writers hit the same record? We'd like to hear, especially if the answer is "it depends on the backend".&lt;/p&gt;




&lt;p&gt;&lt;em&gt;IsoKron writes MWS and builds these tools; we also audit MCP servers, which is a commercial interest. This article was drafted with AI assistance and reviewed by the IsoKron team before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>testing</category>
      <category>githubactions</category>
    </item>
    <item>
      <title>Lost updates in four MCP servers: GitHub, Grafana, PostHog and Kubernetes</title>
      <dc:creator>Joshua Bryan</dc:creator>
      <pubDate>Fri, 13 Nov 2026 03:32:25 +0000</pubDate>
      <link>https://dev.to/isokron/lost-updates-in-four-mcp-servers-github-grafana-posthog-and-kubernetes-2pon</link>
      <guid>https://dev.to/isokron/lost-updates-in-four-mcp-servers-github-grafana-posthog-and-kubernetes-2pon</guid>
      <description>&lt;p&gt;Two agents changed different fields of the same GitHub issue at the same moment, through GitHub's official MCP server. Both were told the write succeeded. In 19 of 30 pairs, one of the two changes was gone. GitHub's own per-field API, given the same two changes, lost none in 28.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I run IsoKron, which sells MCP audits. This is self-funded research, AI-assisted, and not commissioned or endorsed by GitHub, Grafana Labs, PostHog, the kubernetes-mcp-server maintainers or Red Hat. It was first published on &lt;a href="https://isokron.ai/research/mcp-lost-updates-four-servers?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;isokron.ai&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We audited the MCP servers that GitHub, Grafana and PostHog publish for their own products, and the open-source &lt;code&gt;containers/kubernetes-mcp-server&lt;/code&gt;. In the first three, two writes sent at the same moment to the same object could lose one of the changes, and both callers were told their write had succeeded. In the Kubernetes server, a full copy of an object re-applied through the tool without its &lt;code&gt;resourceVersion&lt;/code&gt;, after another writer had changed a field, set that field back. This page puts the four results side by side. Each row links to the full audit.&lt;/p&gt;

&lt;p&gt;The reason to look at this class of bug now is that it was rare when one person used one client. It stops being rare when several agents work on the same backlog, dashboard or project at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;What was tested&lt;/th&gt;
&lt;th&gt;Lost through the MCP server&lt;/th&gt;
&lt;th&gt;Through the platform's own API&lt;/th&gt;
&lt;th&gt;Where the defect is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://isokron.ai/research/github-mcp-server-audit?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;GitHub MCP server v2.1.0&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Two updates to different issue fields of one issue&lt;/td&gt;
&lt;td&gt;19 of 30 pairs&lt;/td&gt;
&lt;td&gt;0 of 28 pairs, using GitHub's per-field update&lt;/td&gt;
&lt;td&gt;In the MCP tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://isokron.ai/research/grafana-mcp-server-audit?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;Grafana MCP server v2.2.0&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Two patches to different panels of one dashboard&lt;/td&gt;
&lt;td&gt;30 of 30 pairs, on Grafana 13 and on Grafana 11&lt;/td&gt;
&lt;td&gt;Legacy save endpoint: 30 of 30 on Grafana 13; 20 of 30 on Grafana 11, one save rejected in the other 10. Kubernetes-style API on Grafana 13: 0 of 30, one save rejected in every pair&lt;/td&gt;
&lt;td&gt;In the MCP tool and in the legacy save endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://isokron.ai/research/posthog-mcp-server-audit?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;PostHog MCP server&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Two updates to different fields of one insight&lt;/td&gt;
&lt;td&gt;7 of 11 pairs, through the hosted server&lt;/td&gt;
&lt;td&gt;6 of 11 pairs&lt;/td&gt;
&lt;td&gt;In PostHog's API; the MCP server passes it through&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://isokron.ai/research/kubernetes-mcp-server-audit?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11#forced-apply-and-lost-updates-upstreams-choice-measured-not-filed" rel="noopener noreferrer"&gt;Kubernetes MCP server v0.1.2&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;A full copy re-applied through the tool after another writer changed a field&lt;/td&gt;
&lt;td&gt;Without &lt;code&gt;resourceVersion&lt;/code&gt;, the other writer's change lost: replicas 10 of 10, a ConfigMap key 10 of 10. With the stale &lt;code&gt;resourceVersion&lt;/code&gt; kept: refused with 409 in 10 of 10&lt;/td&gt;
&lt;td&gt;The same body without force, straight to the API: 409 conflict, 3 of 3&lt;/td&gt;
&lt;td&gt;Not filed as a bug: the tool applies with &lt;code&gt;force: true&lt;/code&gt;, which upstream chose on purpose&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Figure 1: Two simultaneous writes to one object, through three of the MCP servers and through each vendor’s own API&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;Arm&lt;/th&gt;
&lt;th&gt;Pairs that lost a change&lt;/th&gt;
&lt;th&gt;Pairs with one call rejected (conflict)&lt;/th&gt;
&lt;th&gt;Pairs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub MCP server v2.1.0&lt;/td&gt;
&lt;td&gt;Through the MCP server&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub MCP server v2.1.0&lt;/td&gt;
&lt;td&gt;GitHub’s per-field update&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana MCP server v2.2.0, on Grafana 13&lt;/td&gt;
&lt;td&gt;Through the MCP server&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana MCP server v2.2.0, on Grafana 13&lt;/td&gt;
&lt;td&gt;Legacy save endpoint&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana MCP server v2.2.0, on Grafana 13&lt;/td&gt;
&lt;td&gt;Kubernetes-style API&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana MCP server v2.2.0, on Grafana 11&lt;/td&gt;
&lt;td&gt;Through the MCP server&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana MCP server v2.2.0, on Grafana 11&lt;/td&gt;
&lt;td&gt;Legacy save endpoint&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostHog MCP server&lt;/td&gt;
&lt;td&gt;Through the hosted MCP server&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostHog MCP server&lt;/td&gt;
&lt;td&gt;PostHog’s API&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Source: the table above, from the three linked audits.&lt;/p&gt;

&lt;p&gt;A pair counts as lost when both calls returned success and one of the two changes was missing afterwards. All pairs were deliberately simultaneous. The figure covers the three servers tested with simultaneous pairs; the Kubernetes trials were a stale copy re-applied after another writer's change, so they are in the table only. None of these numbers says how often this happens in normal use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four different causes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub: the MCP tool rewrites more than it was asked to change.&lt;/strong&gt; To set one issue field, the tool reads every field value, merges in the change and writes the whole set back, with no version check. Two agents changing different fields overwrite each other. GitHub's own per-field update does not have the problem, which is why the control lost nothing. The MCP layer introduced the loss.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grafana: the MCP tool switches off a check, and the endpoint behind it has a gap of its own.&lt;/strong&gt; Patch mode reads the dashboard, applies the patch and saves the whole dashboard with overwrite forced on, so Grafana's version check never runs. Grafana rejected a stale save in 10 of 10 trials when the check was allowed to run. But two saves that arrive at exactly the same moment through the legacy save endpoint were both accepted even with the check on. Grafana 13's Kubernetes-style API did not have that gap: it rejected one of two simultaneous saves in 30 of 30 pairs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PostHog: the loss is in the product's API.&lt;/strong&gt; The same two requests sent straight to PostHog's API lost a write about as often as they did through the MCP server. The MCP server added nothing and removed nothing. An agent hits it more easily than a person does, because agents work in parallel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kubernetes: forced apply is upstream's choice, measured, not filed.&lt;/strong&gt; &lt;code&gt;resources_create_or_update&lt;/code&gt; applies with server-side apply and &lt;code&gt;force: true&lt;/code&gt;. Upstream chose this on purpose (issue &lt;a href="https://github.com/containers/kubernetes-mcp-server/issues/799" rel="noopener noreferrer"&gt;799&lt;/a&gt;). The API has two protections for this edit: server-side apply without force refuses to take over fields another manager owns, and a &lt;code&gt;resourceVersion&lt;/code&gt; in the body makes a stale write fail. Forcing switches off the first, so only the second remains, and only if the client keeps the &lt;code&gt;resourceVersion&lt;/code&gt; it read. Neither native session in that audit ever sent a &lt;code&gt;resourceVersion&lt;/code&gt;: in the concurrent-edit job, another writer changed &lt;code&gt;MAX_CONNECTIONS&lt;/code&gt; from 100 to 200 about half a second after the agent read the ConfigMap, the agent's forced apply set it back to 100 four seconds later, and the agent told the user that the other keys were unchanged. Where the server does use optimistic concurrency, it held: &lt;code&gt;resources_scale&lt;/code&gt; sends the &lt;code&gt;resourceVersion&lt;/code&gt; it read, an injected conflict came back as an error with nothing changed (3 of 3), and real contention surfaced 10 of 10 times. A related design gap, K8S-04, is that &lt;code&gt;resources_delete&lt;/code&gt; sends no uid or &lt;code&gt;resourceVersion&lt;/code&gt; precondition, so it deleted an object recreated after the agent's read (10 of 10; &lt;code&gt;kubectl&lt;/code&gt; has no uid precondition either).&lt;/p&gt;

&lt;p&gt;The distinction matters when you read an audit of any MCP server. "The MCP server loses writes" can mean the server is wrong, that it faithfully exposes a backend that is, or that it made a deliberate trade-off. The control against the platform's own API is what tells them apart, and it should be in the report.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened next
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Reported&lt;/th&gt;
&lt;th&gt;Status on 12 November 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/github/github-mcp-server/issues/3751" rel="noopener noreferrer"&gt;Issue 3751&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Our fix is open as &lt;a href="https://github.com/github/github-mcp-server/pull/3781" rel="noopener noreferrer"&gt;pull request 3781&lt;/a&gt;, with no maintainer review as of 12 November 2026. In our test of that approach a patched build lost 0 of 12 pairs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grafana&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/grafana/mcp-grafana/pull/1518" rel="noopener noreferrer"&gt;Pull request 1518&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Open; as of 12 November 2026 it was awaiting maintainer review, rebased onto the current main branch and mergeable. The proposed fix saves through the Kubernetes-style API where it exists and lost 0 of 60 pairs on Grafana 13. Grafana 11 has only the legacy endpoint; there the restored version check reports stale saves but still lost 14 of 30 simultaneous pairs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostHog&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/PostHog/posthog/pull/131519" rel="noopener noreferrer"&gt;Pull request 131519&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Fixed for insights. A maintainer re-created the change as &lt;a href="https://github.com/PostHog/posthog/pull/131620" rel="noopener noreferrer"&gt;pull request 131620&lt;/a&gt;, with IsoKron as co-author, and merged it about 17 hours after we opened ours. Cohorts and dashboards lost writes in the same tests and, as of 12 November 2026, are not yet fixed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubernetes&lt;/td&gt;
&lt;td&gt;Not filed&lt;/td&gt;
&lt;td&gt;Forced apply is a deliberate upstream decision, and K8S-04 is a design gap; neither was filed. The research build adds &lt;code&gt;resources_patch&lt;/code&gt; with an optional &lt;code&gt;resourceVersion&lt;/code&gt; precondition, in the shape of upstream's open proposal &lt;a href="https://github.com/containers/kubernetes-mcp-server/issues/1352" rel="noopener noreferrer"&gt;1352&lt;/a&gt;, and makes apply without force the default. That reverses a deliberate upstream decision, so it is a proposal, not a fix&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;PostHog's response is the one to copy: a small fix, reviewed and merged the next morning.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not show
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The counts are small: 11 to 30 pairs per cell for GitHub, Grafana and PostHog, with the two calls released together on purpose, and 10 trials per arm for Kubernetes (3 for the API control and for the injected scale conflict), on one machine, one cluster or one test account.&lt;/li&gt;
&lt;li&gt;Real agents did task work through the server in all four audits. The lost-update counts did not come from those sessions: they come from scripted pairs and trials, so they show that a collision or a stale copy loses a write, not how often agents collide on their own.&lt;/li&gt;
&lt;li&gt;Four servers is not a survey. We chose them because they are widely used and open source, not at random.&lt;/li&gt;
&lt;li&gt;In the three simultaneous-pair cases the lost change can be put back by writing it again, and at Grafana it stays in the dashboard's version history. The harm is that nothing tells the agent or the user that it needs to.&lt;/li&gt;
&lt;li&gt;The findings were found with AI assistance and checked as each audit describes. We sell audits of this kind, so read the method sections with that in mind.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to check a server you run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Pick a tool that updates part of an object: one field, one panel, one tag.&lt;/li&gt;
&lt;li&gt;Send two calls that change different parts of the same object at the same moment, from two separate server processes. Repeat at least ten times.&lt;/li&gt;
&lt;li&gt;Read the object back. If both calls said success and one change is missing, you have a lost update.&lt;/li&gt;
&lt;li&gt;Repeat with the same two changes sent straight to the product's API. If the API loses nothing, the MCP tool is the cause. If the API loses them too, the fix belongs in the API, and the tool should at least surface a conflict where the API offers one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full method, including the controls and the ways we got it wrong before getting it right, is in &lt;a href="https://isokron.ai/research/how-to-test-an-mcp-server?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;How to test an MCP server without fooling yourself&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The method&lt;/strong&gt;, with the controls and the mistakes we made first: &lt;a href="https://isokron.ai/research/how-to-test-an-mcp-server?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;How to test an MCP server without fooling yourself&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/isokron-ai/github-mcp-writepath-experiment" rel="noopener noreferrer"&gt;isokron-ai/github-mcp-writepath-experiment&lt;/a&gt; is v2.1.0 plus the fixes as separate commits; &lt;code&gt;go test ./...&lt;/code&gt; runs the upstream tests plus the ones added for each fix. Its concurrent-pair harness is tied to a private test repository and isn't published yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostHog:&lt;/strong&gt; &lt;a href="https://github.com/isokron-ai/posthog-mcp-writepath-experiment" rel="noopener noreferrer"&gt;isokron-ai/posthog-mcp-writepath-experiment&lt;/a&gt;, with the benchmark harness in &lt;code&gt;harness/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kubernetes:&lt;/strong&gt; &lt;a href="https://github.com/isokron-ai/kubernetes-mcp-writepath-experiment" rel="noopener noreferrer"&gt;isokron-ai/kubernetes-mcp-writepath-experiment&lt;/a&gt;, with the frozen harness; &lt;code&gt;for b in baseline fixed research; do harness/build/build.sh $b; done&lt;/code&gt; builds all three binaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grafana:&lt;/strong&gt; the fix is &lt;a href="https://github.com/grafana/mcp-grafana/pull/1518" rel="noopener noreferrer"&gt;pull request 1518&lt;/a&gt; upstream.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your numbers differ from ours, open an issue on the matching repository. Reproductions that disagree are the most useful feedback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How this was tested.&lt;/strong&gt; AI agents run much of the testing: scripted checks, attempts to disprove each finding, and real tasks that use the server the way an agent would. I also test every server myself on a separate machine and check each finding against the AI results. A finding appears here only if it holds up in both. — &lt;a href="https://isokron.ai/about?utm_source=devto&amp;amp;utm_medium=crosspost&amp;amp;utm_campaign=four-servers-2026-11" rel="noopener noreferrer"&gt;Joshua Bryan&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For this piece: Every figure is taken from the four linked audits, which give the method, the controls and the limits for each.&lt;/p&gt;

&lt;h2&gt;
  
  
  Over to you
&lt;/h2&gt;

&lt;p&gt;Have you seen a write tool report success and lose data? Which MCP server should we test next? Tell me in the comments.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>go</category>
      <category>testing</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
