<?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: Bot2Bot Labs</title>
    <description>The latest articles on DEV Community by Bot2Bot Labs (@bot2botlabs).</description>
    <link>https://dev.to/bot2botlabs</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%2F4235766%2F685809d8-6475-467f-9182-f690cb8738e1.png</url>
      <title>DEV Community: Bot2Bot Labs</title>
      <link>https://dev.to/bot2botlabs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bot2botlabs"/>
    <language>en</language>
    <item>
      <title>Shelf Watch #4: Read-only by default, writable by accident: where MCP database and cloud servers enforce "read-only"</title>
      <dc:creator>Bot2Bot Labs</dc:creator>
      <pubDate>Thu, 19 Nov 2026 16:37:00 +0000</pubDate>
      <link>https://dev.to/bot2botlabs/shelf-watch-4-read-only-by-default-writable-by-accident-where-mcp-database-and-cloud-servers-1dp5</link>
      <guid>https://dev.to/bot2botlabs/shelf-watch-4-read-only-by-default-writable-by-accident-where-mcp-database-and-cloud-servers-1dp5</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published in the &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt; repo, home of the free, offline scanner this post describes.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;A growing number of MCP servers put a database or a cloud CLI in front of an AI agent and promise the risky half is off: &lt;em&gt;"read-only by default"&lt;/em&gt;, &lt;em&gt;"no writes unless you opt in"&lt;/em&gt;, &lt;em&gt;"safe to explore"&lt;/em&gt;. For a CFO approving an agent that can see the general ledger, or a DBA letting one read production, that sentence is the whole risk model.&lt;/p&gt;

&lt;p&gt;What decides whether the promise holds is &lt;strong&gt;where&lt;/strong&gt; it's enforced. Across 300 MCP servers whose code we read, the ones that hold the line enforce read-only at the database transaction, the database role, or the cloud credential, all layers that refuse a write no matter how it's phrased. The ones that break enforce it in the &lt;em&gt;application&lt;/em&gt;, by inspecting the SQL text or the CLI verb before running it. That's a denylist written against a language the server doesn't control, and the language always has another way to say "write".&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters now
&lt;/h2&gt;

&lt;p&gt;Of the 10 servers in our audit with a verified code-level vulnerability, &lt;strong&gt;3 were read-only promises their own code didn't keep&lt;/strong&gt;. That's as many as unauthenticated network transports (3), and second only to command injection (4). They're quietly dangerous because nothing looks broken: the demo reads a table, the happy path works, and the write only happens when an agent (or a prompt injected into data the agent reads) phrases a request the filter didn't anticipate. The operator was told the tool couldn't do that.&lt;/p&gt;




&lt;h2&gt;
  
  
  Three ways application-layer "read-only" fails
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. One request, several statements
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The pattern.&lt;/strong&gt; The guard checks that the text &lt;em&gt;begins&lt;/em&gt; like a read, then hands the whole text to a database driver that executes every statement it contains.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;request text:  &amp;lt;read statement&amp;gt; ; &amp;lt;second statement&amp;gt;
guard sees:    a read statement at the start  → allowed
driver runs:   both statements, in order
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Why it happens.&lt;/strong&gt; Many drivers execute multi-statement text when a query is sent without bind parameters (PostgreSQL's simple query protocol; options like MySQL's &lt;code&gt;multipleStatements&lt;/code&gt;). That is exactly the path a string-checking guard tends to use. Hand-written "is there a second statement?" checks also tend to get string-literal and comment rules subtly wrong, so a separator can hide from the check while the database still sees it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it breaks.&lt;/strong&gt; Everything after the first statement runs with the agent's full database privileges, including a statement that ends the transaction the guard thought it was inside.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A single statement that starts like a read but writes
&lt;/h3&gt;

&lt;p&gt;Even when only one statement is allowed, "starts with a read keyword" is not the same as "is a read". Several standard SQL forms begin with &lt;code&gt;SELECT&lt;/code&gt;, &lt;code&gt;WITH&lt;/code&gt; or &lt;code&gt;EXPLAIN&lt;/code&gt; and still change data:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Statement form&lt;/th&gt;
&lt;th&gt;Starts with&lt;/th&gt;
&lt;th&gt;What actually happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data-modifying common table expression&lt;/td&gt;
&lt;td&gt;&lt;code&gt;WITH&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;WITH&lt;/code&gt; block contains an &lt;code&gt;INSERT&lt;/code&gt;/&lt;code&gt;UPDATE&lt;/code&gt;/&lt;code&gt;DELETE … RETURNING&lt;/code&gt;; PostgreSQL executes it, then the outer &lt;code&gt;SELECT&lt;/code&gt; reads the returned rows.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SELECT … INTO &amp;lt;new table&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;SELECT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Creates and fills a new table.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;EXPLAIN ANALYZE &amp;lt;statement&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;EXPLAIN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ANALYZE&lt;/code&gt; &lt;em&gt;executes&lt;/em&gt; the statement to time it. In PostgreSQL that includes data-changing statements.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commands missing from the denylist&lt;/td&gt;
&lt;td&gt;various&lt;/td&gt;
&lt;td&gt;Refreshing materialized views, changing object ownership, preparing and then executing a stored statement: all writes, none on a short "INSERT/UPDATE/DELETE/DROP" list.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;EXPLAIN&lt;/code&gt; case is the sharpest, because operators reach for an "explain this query" tool precisely &lt;em&gt;because&lt;/em&gt; they believe it's harmless. A guard that lets every &lt;code&gt;EXPLAIN&lt;/code&gt; through lets through whatever it's explaining.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Verb denylists in cloud-CLI servers
&lt;/h3&gt;

&lt;p&gt;Cloud-admin MCP servers that wrap a CLI often decide "read or write?" from the operation name: anything starting with &lt;code&gt;create-&lt;/code&gt;, &lt;code&gt;delete-&lt;/code&gt;, &lt;code&gt;put-&lt;/code&gt;, &lt;code&gt;update-&lt;/code&gt; and so on counts as a write, and everything else is allowed. A CLI with thousands of operations defeats that in three structural ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Writes whose verb isn't on the list.&lt;/strong&gt; Operations named with verbs like &lt;em&gt;invoke&lt;/em&gt;, &lt;em&gt;deploy&lt;/em&gt;, &lt;em&gt;subscribe&lt;/em&gt; or &lt;em&gt;execute&lt;/em&gt; change state but don't start with any "mutating" prefix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writes to the user's own machine.&lt;/strong&gt; A CLI's configuration subcommands rewrite its local config files. Those files can name a &lt;em&gt;credential helper&lt;/em&gt;, a program the CLI runs whenever it needs credentials, so a config change made through a "read-only" tool can become a program that runs on the next call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reads that write locally.&lt;/strong&gt; Some download-style operations take a local output path and write the response there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same root cause as the database case: the safe set was defined by &lt;em&gt;excluding&lt;/em&gt; known-bad names instead of &lt;em&gt;including&lt;/em&gt; known-safe ones.&lt;/p&gt;




&lt;h2&gt;
  
  
  The fix: let the layer that can refuse do the refusing
&lt;/h2&gt;

&lt;p&gt;One rule covers all three: &lt;strong&gt;enforce read-only where a write is rejected unconditionally (the database transaction, the database role, the cloud credential), not where it can only be guessed from text.&lt;/strong&gt; Application checks are still worth having, as a second line and for clear error messages, but never as the guarantee.&lt;/p&gt;

&lt;h3&gt;
  
  
  Databases (PostgreSQL, MySQL and similar)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run every read inside a read-only transaction, and always roll it back.&lt;/strong&gt; &lt;code&gt;BEGIN READ ONLY&lt;/code&gt; in PostgreSQL, &lt;code&gt;START TRANSACTION READ ONLY&lt;/code&gt; in MySQL. The engine then refuses writes, DDL and data-modifying CTEs however they're phrased, which closes failures 1 and 2 at the source. For pooled connections, &lt;code&gt;default_transaction_read_only = on&lt;/code&gt; applies the same rule session-wide.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;   &lt;span class="c1"&gt;// The shape that holds (node-postgres)&lt;/span&gt;
   &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"BEGIN READ ONLY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;queryMode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"extended"&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;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ROLLBACK"&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;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Send one statement per call, as a prepared/extended-protocol query.&lt;/strong&gt; The extended protocol accepts exactly one statement, so failure 1 can't smuggle in a second one, and nothing can end the read-only transaction early. Pass user values as bind parameters; never concatenate them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Give the agent a database role that can only read.&lt;/strong&gt; Grant &lt;code&gt;SELECT&lt;/code&gt; on what it needs and nothing else, or set &lt;code&gt;default_transaction_read_only&lt;/code&gt; on the role itself. This backstop survives a bug in everything above, including server-side functions that have side effects even inside a read-only transaction. If you only do one thing, do this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;If you parse, use a real SQL parser and allowlist statement types.&lt;/strong&gt; Allow &lt;code&gt;SELECT&lt;/code&gt;, &lt;code&gt;SHOW&lt;/code&gt; and plain &lt;code&gt;EXPLAIN&lt;/code&gt; (not &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt;), and explicitly reject multiple statements, &lt;code&gt;INTO&lt;/code&gt;, and data-modifying CTEs. Comments and formatting disappear once the syntax tree is built; they don't in a prefix match.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Cloud CLIs (AWS, GCP, Azure and similar)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Allowlist read operations; treat everything else as a write.&lt;/strong&gt; Permit operations known to be reads (&lt;code&gt;describe-…&lt;/code&gt;, &lt;code&gt;list-…&lt;/code&gt;, &lt;code&gt;get-…&lt;/code&gt; without a local output path, and so on) and send everything else down the write path that needs explicit opt-in. New operations then default to &lt;em&gt;blocked&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforce it at the credential.&lt;/strong&gt; Run the connector under a read-only IAM role or policy. Then a missed verb fails at the cloud API, the same way a &lt;code&gt;SELECT&lt;/code&gt;-only role saves the database case. The wrapper's allowlist becomes defense in depth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat local config writes as writes.&lt;/strong&gt; Configuration subcommands, credential-file edits and any operation that writes a caller-chosen local path change the host. Gate them like any other write.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  What "good" looked like in our audit
&lt;/h2&gt;

&lt;p&gt;The servers that held up shared a pattern: a fresh connection per call, a read-only transaction around it, one prepared statement at a time, a refusal to run as a superuser, and a documented recommendation to connect with a &lt;code&gt;SELECT&lt;/code&gt;-only role. The best cloud-CLI design we saw paired an operation allowlist with a read-only credential. None of them relied on a prefix check as the guarantee.&lt;/p&gt;

&lt;p&gt;We hold ourselves to &lt;em&gt;fixing&lt;/em&gt;, not just finding. Our first fully coordinated disclosure, &lt;code&gt;atlas-mcp-server&lt;/code&gt; (CWE-78), was fixed by its maintainer in &lt;strong&gt;v1.0.30&lt;/strong&gt; and published as &lt;strong&gt;&lt;a href="https://github.com/IamNishant51/atlas-mcp-server/security/advisories/GHSA-w3gh-28jp-2hmv" rel="noopener noreferrer"&gt;GHSA-w3gh-28jp-2hmv&lt;/a&gt;&lt;/strong&gt;. The read-only findings from this audit are in coordinated disclosure now, and as with every Shelf Watch, we name a project only after its fix is public.&lt;/p&gt;

&lt;h2&gt;
  
  
  A one-line test for your own server
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;If you deleted every string check in your "read-only" code path, could the agent still not write?&lt;br&gt;
If the answer is "it could", your read-only mode lives in the application. Move it to the transaction and the role.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A free check, so you can see the shape yourself
&lt;/h2&gt;

&lt;p&gt;We turned that question into a pre-ship check, in &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt; v0.4.0. It's deterministic, offline, reads only your source, and never connects to a database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:bot2botlabs/mcp-ship-check &lt;span class="kd"&gt;readonly&lt;/span&gt; .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It only runs when the server imports a SQL driver or query layer &lt;strong&gt;and&lt;/strong&gt; the README or code claims read-only. MCP's &lt;code&gt;readOnlyHint&lt;/code&gt; tool annotation doesn't count on its own. Then it reports what it found, strongest first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ok&lt;/strong&gt; (&lt;code&gt;readonly-enforced&lt;/code&gt;): the database enforces it — a &lt;code&gt;READ ONLY&lt;/code&gt; transaction, a read-only session or connection, or a server &lt;code&gt;readonly&lt;/code&gt; setting. Text checks alongside are defense in depth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;info&lt;/strong&gt; (&lt;code&gt;readonly-parser&lt;/code&gt;): a real SQL parser guards it, but nothing database-side was found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;warn&lt;/strong&gt; (&lt;code&gt;readonly-illusion&lt;/code&gt;, error with &lt;code&gt;--strict&lt;/code&gt;): only text checks guard it, with file:line for each.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;info&lt;/strong&gt; (&lt;code&gt;readonly-unguarded&lt;/code&gt;): claims read-only, but no guard or enforcement was found in the code; it may rely on a database role or on which tools are enabled.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It reports &lt;strong&gt;a shape, not a verdict&lt;/strong&gt;: a SELECT-only database role granted outside the code isn't visible to a source scan. If you have one, a &lt;code&gt;readonly-illusion&lt;/code&gt; result is a prompt to document it.&lt;/p&gt;

&lt;p&gt;Here's what it prints on a sample server whose only guard is a prefix check and a keyword regex (the fixture shipped with v0.4.0):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;⚠ readonly: 1 source file(s); read-only claim found (README.md:2 ("read-only")) — review; a shape is not a vulnerability finding
⚠ readonly-illusion: read-only rests on text checks only (src/index.ts:6 prefix check: .startsWith('select; src/index.ts:3 anchored keyword regex: ^\s*(INSERT); no READ ONLY transaction, read-only session or read-only connection was found. Multi-statement batches, data-modifying CTEs, SELECT … INTO and EXPLAIN ANALYZE pass checks like these. Run reads in a READ ONLY transaction, one statement per call, under a SELECT-only role. (A shape, not a verdict: a read-only role granted outside the code isn't visible here.)
PASS (2 checks)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default it only warns, so it won't break your CI; add &lt;code&gt;--strict&lt;/code&gt; to make a text-only guard fail the build (exit code 1). The same check runs as a GitHub Action:&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="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@v4&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;20&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;bot2botlabs/mcp-ship-check@main&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;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;readonly&lt;/span&gt;
    &lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;--strict&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This check covers SQL servers. Cloud-CLI verb denylists (failure 3 above) aren't in its scope: for those, the credential-side allowlist in the Cloud CLIs section is the equivalent test. Run it on your server before you publish. If it's wrong about yours, open an issue or send a PR; we'd rather fix the check than cry wolf.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Shelf Watch is Bot2Bot Labs' series on what's actually on the MCP shelf. The free, offline scanner we use for these audits is &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt;. Earlier issues: &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/blob/main/docs/shelf-watch-2.md" rel="noopener noreferrer"&gt;#2, code-level sinks across 194 servers&lt;/a&gt; · &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/blob/main/docs/shelf-watch-3.md" rel="noopener noreferrer"&gt;#3, what good looks like on a hosted enterprise MCP server&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Bot2Bot Labs keeps a daily, public-data archive of the MCP shelf. This is the fourth in a series on what's actually out there.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>security</category>
      <category>database</category>
      <category>ai</category>
    </item>
    <item>
      <title>Keep license tools away from your AI agents, and reconcile MSP seats in plain code instead</title>
      <dc:creator>Bot2Bot Labs</dc:creator>
      <pubDate>Mon, 16 Nov 2026 18:17:00 +0000</pubDate>
      <link>https://dev.to/bot2botlabs/keep-license-tools-away-from-your-ai-agents-and-reconcile-msp-seats-in-plain-code-instead-34gn</link>
      <guid>https://dev.to/bot2botlabs/keep-license-tools-away-from-your-ai-agents-and-reconcile-msp-seats-in-plain-code-instead-34gn</guid>
      <description>&lt;p&gt;&lt;em&gt;Former CFO keeping the books on AI agents and vibe-coded apps. Dated costs, fix logs, security checks.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Security vendors are starting to ship hosted MCP servers, so AI agents can work directly inside their consoles. The well-built ones sign AI clients in with OAuth 2.1, give an agent only the access its admin's role already has, and require synchronous in-chat approval before an action runs. The MCP specification's &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" rel="noopener noreferrer"&gt;Authorization&lt;/a&gt; and &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation" rel="noopener noreferrer"&gt;Elicitation&lt;/a&gt; sections describe both building blocks.&lt;/p&gt;

&lt;p&gt;That's the right foundation. Here's the control we'd add on top of any MSP-facing server: &lt;strong&gt;keep license, trial and billing tools off the AI's tool list entirely.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From the finance side, a license allocation is a purchase order. Ending a trial is a revenue event. Put either in reach of a model that reads tickets and emails (any of which can carry a prompt injection) and one well-placed sentence becomes 200 seats on next month's invoice. Approvals help, but they get rubber-stamped at 4:55 on a Friday. Removing the tool removes the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that's still your problem
&lt;/h2&gt;

&lt;p&gt;The AI was never the main leak. The leak is the gap between two systems that are supposed to agree and drift apart every month:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your security vendor's console:&lt;/strong&gt; what each tenant has allocated and is actually using (firewall, MFA and endpoint seats).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your PSA&lt;/strong&gt; (ConnectWise, Autotask, HaloPSA): what each tenant is on an agreement to pay for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They drift for boring reasons. A tech onboards six laptops and nobody touches the agreement. A client offboards and the PSA keeps invoicing. Seats get allocated "for growth" and sit idle. A new product goes live with no SKU in the price book.&lt;/p&gt;

&lt;p&gt;We wrote a small reconciler for exactly this gap. It sorts every discrepancy into one of seven buckets:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unbilled:&lt;/strong&gt; more seats in use than you bill. Margin walking out the door.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orphan tenant:&lt;/strong&gt; seats in the vendor console, no agreement in the PSA at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overbilled:&lt;/strong&gt; billing for seats that are neither allocated nor in use. The scary one: a credit memo plus a client asking what else is wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ghost billing:&lt;/strong&gt; the PSA bills a tenant/SKU with no seats behind it (offboarded? mapping error?).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Over-allocated:&lt;/strong&gt; more seats in use than allocated. That's a vendor true-up, not a billing error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Idle seats:&lt;/strong&gt; allocated but unused, costing you every month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unmapped product:&lt;/strong&gt; a vendor product with no SKU in your price book.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The trap we fell into ourselves:&lt;/strong&gt; our first version flagged "billing for seats in use above the allocation" as &lt;em&gt;overbilling&lt;/em&gt;. It isn't. If the client is using 61 seats and you bill 61, your billing is right. The gap belongs to the vendor side (#5), and it goes to a different person. Overbilling only means billing above &lt;strong&gt;both&lt;/strong&gt; what's allocated and what's in use. A test now pins that case.&lt;/p&gt;

&lt;p&gt;Here's an excerpt (6 of the 10 exceptions) from a run on the example's fictional sample data. The tenants, product names and prices are all made up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;UNBILLED         acme-dental        EDR-Endpoint       44 active, 40 billed  [unbilled $36.00/mo]
ORPHAN_TENANT    evergreen-cpa      EDR-Endpoint       12 active / 12 allocated, nothing billed (no PSA agreement for this tenant)  [unpriced: no PSA line to price from]
OVERBILLED       blue-harbor-law    EDR-Endpoint       25 billed, 22 allocated, 22 active (credit/refund exposure)  [credit exposure $27.00/mo]
GHOST_BILLING    foxglove-studio    SEC-EDR            billing 15 × SEC-EDR with no matching vendor seats (offboarded? mapping error?)
OVER_ALLOCATED   delta-logistics    MFA-Auth           61 active, 60 allocated (vendor overage / true-up exposure)
IDLE_SEATS       cedar-clinic       EDR-Endpoint       30 allocated, 18 active  [idle cost $66.00/mo]

unbilled revenue $36.00/mo · overbilling exposure $27.00/mo · idle-seat cost $70.50/mo · 10 exception(s)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it like a controller: the lines that &lt;em&gt;can't&lt;/em&gt; be priced yet (the orphan tenant, the ghost billing) are usually the biggest numbers. A report that only totals what it can price understates the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern we'd sign off on
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read-only exports in.&lt;/strong&gt; A dedicated job identity with read scopes only, and no license or trial tools. Pull tenants and seat counts nightly, under the vendor's rate limit. At 100 requests a minute (a reasonable budget to assume for an interactive agent), a 50-tenant MSP needs roughly 200 calls, a couple of minutes, if seat counts come back per product. Per-device detail costs more, but it's still an overnight job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic math in the middle.&lt;/strong&gt; A plain script diffs vendor seats against PSA lines in integer cents. Same inputs, same answer, every time. No model decides a number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Humans make the changes.&lt;/strong&gt; Billing fixes agreements. Ops trues up or right-sizes &lt;strong&gt;in the vendor console&lt;/strong&gt;, where license changes belong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The LLM writes the summary, not the ledger.&lt;/strong&gt; If you want AI in the loop, give it the &lt;em&gt;finished&lt;/em&gt; exception report and let it draft the client email. It never does the math and never touches a license.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One question worth asking your vendor: can a read-only API or MCP client see &lt;strong&gt;license allocation per tenant&lt;/strong&gt; at all? If not, that column comes from a license export instead. The script takes CSVs, so it doesn't care where the numbers come from.&lt;/p&gt;

&lt;p&gt;The reconciler is open source: a single zero-dependency Node script (no network, no LLM, money in integer cents) with tests and the fictional sample data above. See &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/tree/main/examples/msp-seat-reconcile" rel="noopener noreferrer"&gt;&lt;code&gt;examples/msp-seat-reconcile&lt;/code&gt; on GitHub&lt;/a&gt;. It's the companion to &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/blob/main/docs/shelf-watch-3.md" rel="noopener noreferrer"&gt;Shelf Watch #3: What good looks like on a hosted enterprise MCP server&lt;/a&gt;, our blueprint for multi-tenant MCP servers.&lt;/p&gt;

&lt;p&gt;How are you reconciling vendor seats against your PSA today: a monthly spreadsheet, a PSA integration, or not at all?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not sponsored. The sample data is fictional.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>msp</category>
      <category>security</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Shelf Watch #3: What good looks like on a hosted enterprise MCP server</title>
      <dc:creator>Bot2Bot Labs</dc:creator>
      <pubDate>Fri, 13 Nov 2026 16:43:00 +0000</pubDate>
      <link>https://dev.to/bot2botlabs/shelf-watch-3-what-good-looks-like-on-a-hosted-enterprise-mcp-server-3jj7</link>
      <guid>https://dev.to/bot2botlabs/shelf-watch-3-what-good-looks-like-on-a-hosted-enterprise-mcp-server-3jj7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published in the &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt; repo, home of the free, offline scanner this post describes.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (2026-11-11).&lt;/strong&gt; Since this post first ran, we've finished a static code audit of &lt;strong&gt;300 MCP servers&lt;/strong&gt;: &lt;strong&gt;10&lt;/strong&gt; had a verified code-level vulnerability. One is fixed and published (&lt;a href="https://github.com/IamNishant51/atlas-mcp-server/security/advisories/GHSA-w3gh-28jp-2hmv" rel="noopener noreferrer"&gt;&lt;code&gt;atlas-mcp-server&lt;/code&gt;, GHSA-w3gh-28jp-2hmv&lt;/a&gt;); the rest are being disclosed privately to their maintainers, and we name a project only after its fix ships. Separately, a &lt;code&gt;bridge&lt;/code&gt; sweep of 116 registry-listed servers that document &lt;code&gt;mcp-remote&lt;/code&gt; found &lt;strong&gt;284 invocations across 87 repos, and 94% of them don't pin a version&lt;/strong&gt;. And the device-code HTTPS fix for CVE-2026-108716 has shipped in &lt;a href="https://github.com/punkpeye/mcp-remote/commit/e4dc3713b0d6a727cbeb21f38324d20a6692dc5f" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-remote&lt;/code&gt; v0.16.6&lt;/a&gt; (&lt;code&gt;e4dc371&lt;/code&gt;): if you use &lt;code&gt;--device-code&lt;/code&gt;, pin &lt;code&gt;0.16.6&lt;/code&gt; or later.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In Shelf Watch #2 we read the code of 194 MCP servers and found the usual failure modes: a tool argument reaching a shell, a database "read-only" guard that only checked the first keyword, an HTTP transport listening on every network interface. That post was about what goes wrong.&lt;/p&gt;

&lt;p&gt;This one is about the other end of the shelf: what a well-guarded hosted MCP server should look like, especially one that runs for many tenants at once, like the servers MSPs and security vendors are starting to ship. Below is our &lt;strong&gt;Enterprise MCP Reference Blueprint&lt;/strong&gt;: four controls we'd want on any multi-tenant MCP server. None of them needs an enterprise budget. A two-person team can build every one.&lt;/p&gt;

&lt;p&gt;The blueprint draws on what we've seen in production hosted MCP architectures and on the MCP specification's &lt;code&gt;2025-11-25&lt;/code&gt; &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" rel="noopener noreferrer"&gt;Authorization&lt;/a&gt; and &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation" rel="noopener noreferrer"&gt;Elicitation&lt;/a&gt; sections. The specific limits and exclusions below are &lt;strong&gt;our design targets&lt;/strong&gt;, not a description of any one product.&lt;/p&gt;

&lt;p&gt;Then we'll look at the part of the connection a server can't protect on its own: the client-side bridge that many setups use to reach a remote MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Login scopes that mirror the roles you already have
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The blueprint.&lt;/strong&gt; Clients sign in with OAuth 2.1 and PKCE, as the &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" rel="noopener noreferrer"&gt;MCP authorization spec&lt;/a&gt; describes, not with a static API key. The token's scopes map onto the product's existing role-based access, with separate read and write grants per area of the product. An agent gets exactly the access its operator's role already has, and reading never implies writing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; The MCP layer inherits the permission model your product has already battle-tested, instead of inventing a second, weaker one beside it. A leaked or over-shared token can only do what that user could already do.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How a small team can copy it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put your MCP server behind the identity provider you already use, with OAuth 2.1 + PKCE, rather than issuing long-lived API keys.&lt;/li&gt;
&lt;li&gt;Define read and write scopes per area of your product (&lt;code&gt;yourapp:invoices:read&lt;/code&gt;, &lt;code&gt;yourapp:invoices:write&lt;/code&gt;), and grant them from the roles you already have.&lt;/li&gt;
&lt;li&gt;Check the required scope inside every tool handler, and deny by default. A tool that forgets its check should fail, not run.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Small blast radius by default
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The blueprint.&lt;/strong&gt; Cap requests per token. We use 100 per minute as a starting point for an interactive agent. Let each call touch one resource, and scope every write tool to a single subject: one device, process, file, user or incident. There's no "apply to all" write path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; Even with valid credentials, a confused or prompt-injected agent can't turn one bad call into a fleet-wide action. The worst case is bounded by design rather than by hoping the model behaves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How a small team can copy it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rate-limit per token, not just per IP.&lt;/li&gt;
&lt;li&gt;Make write tools take a single ID. No arrays, no wildcards, no &lt;code&gt;all: true&lt;/code&gt; flag.&lt;/li&gt;
&lt;li&gt;Cap list sizes in your input schemas (&lt;code&gt;maxItems&lt;/code&gt;), and paginate reads.&lt;/li&gt;
&lt;li&gt;If you genuinely need bulk operations, keep them in your admin UI or API, outside the MCP surface.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Human approval on every write, and refusal when approval isn't possible
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The blueprint.&lt;/strong&gt; Every write tool waits for synchronous, in-chat human approval before it runs. If the connecting client can't show that approval step, the call &lt;strong&gt;fails closed&lt;/strong&gt; instead of running unapproved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; This is the property the vulnerable servers in Shelf Watch #2 lacked. They ran dangerous operations with no human in the loop at all. "Refuse when we can't ask" is the safe default; "run anyway" is how a missing UI feature becomes an incident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How a small team can copy it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mark every tool honestly with MCP's annotations: &lt;code&gt;readOnlyHint&lt;/code&gt; for reads, &lt;code&gt;destructiveHint&lt;/code&gt; for anything that changes or deletes. In Shelf Watch #2, a third of the tools we could inspect declared neither.&lt;/li&gt;
&lt;li&gt;For writes, ask the user to confirm through the client before acting. MCP's &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation" rel="noopener noreferrer"&gt;elicitation&lt;/a&gt; feature exists for this: clients that support it declare an &lt;code&gt;elicitation&lt;/code&gt; capability when they connect, so your server knows up front whether it can ask.&lt;/li&gt;
&lt;li&gt;If the client can't confirm (no &lt;code&gt;elicitation&lt;/code&gt; capability, or the user declines), return an error that says why. Don't fall back to running the action.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Sensitive tools stay off the external surface
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The blueprint.&lt;/strong&gt; Tools that move money or entitlements (license allocation, trial changes, billing) aren't exposed to external MCP clients at all. If a vendor's own first-party assistant needs them, it gets them on a separate internal surface. The external surface is deliberately a subset of the internal one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; Not every tool belongs on a connector that any compatible client can reach. Anything that moves money, entitlements or billing state is a much bigger prize than a read-only query.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How a small team can copy it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep a separate tool list for the MCP server you expose externally. Don't expose "everything the backend can do" by default.&lt;/li&gt;
&lt;li&gt;Leave billing, license, plan and payment actions out entirely. Send users to your own UI for those.&lt;/li&gt;
&lt;li&gt;Review the external tool list like a public API surface, because that's what it is.&lt;/li&gt;
&lt;li&gt;When you do need license and billing numbers, compute them outside the model. Our &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/tree/main/examples/msp-seat-reconcile" rel="noopener noreferrer"&gt;&lt;code&gt;msp-seat-reconcile&lt;/code&gt;&lt;/a&gt; example reconciles seat inventory against PSA billing in plain, deterministic code.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. The bridge is part of your attack surface too
&lt;/h2&gt;

&lt;p&gt;All four controls above live on the server. But many clients reach a remote MCP server through a local bridge: most often the open-source &lt;a href="https://www.npmjs.com/package/mcp-remote" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-remote&lt;/code&gt;&lt;/a&gt; package, launched from the client's config with something like &lt;code&gt;npx -y mcp-remote@&amp;lt;version&amp;gt; https://…&lt;/code&gt;. That bridge runs on the user's own machine, handles their login, and stores their tokens. A well-guarded server can't protect a user whose bridge is out of date.&lt;/p&gt;

&lt;p&gt;Two public advisories show why this matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CVE-2025-6514&lt;/strong&gt; affected &lt;code&gt;mcp-remote&lt;/code&gt; before &lt;code&gt;0.1.16&lt;/code&gt;. A malicious server could put a crafted URL in its OAuth metadata and get it run as a command on the user's machine &lt;a href="https://jfrog.com/blog/2025-6514-critical-mcp-remote-rce-vulnerability/" rel="noopener noreferrer"&gt;JFrog write-up&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CVE-2026-108716&lt;/strong&gt; is listed as affecting &lt;code&gt;0.8.0&lt;/code&gt; through &lt;code&gt;0.14.3&lt;/code&gt;. In the device-code login flow, the client secret and the issued tokens can be sent over plain HTTP if the authorization server's endpoints aren't HTTPS &lt;a href="https://www.vulncheck.com/advisories/mcp-remote-0.8.0-through-0.14.3-cleartext-credential-transmission-via-device-code-oauth-grant" rel="noopener noreferrer"&gt;VulnCheck advisory&lt;/a&gt;. It only applies when the bridge is started with &lt;code&gt;--device-code&lt;/code&gt;, so a normal browser login doesn't hit it.
&lt;em&gt;Update (2026-11-11):&lt;/em&gt; the fix has shipped. &lt;a href="https://github.com/punkpeye/mcp-remote/commit/e4dc3713b0d6a727cbeb21f38324d20a6692dc5f" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-remote&lt;/code&gt; v0.16.6&lt;/a&gt; (&lt;code&gt;e4dc371&lt;/code&gt;) now requires HTTPS for the device-authorization and token endpoints (HTTP only on loopback), and &lt;code&gt;--allow-http&lt;/code&gt; doesn't relax that. Releases before it, &lt;code&gt;0.14.4&lt;/code&gt;–&lt;code&gt;0.16.5&lt;/code&gt; included, lack the check, so if you use &lt;code&gt;--device-code&lt;/code&gt;, pin &lt;code&gt;0.16.6&lt;/code&gt; or later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pinning a version is a tradeoff. An exact pin is reproducible and immune to a bad new release, but it stays frozen as advisories are published against it. An unpinned &lt;code&gt;npx mcp-remote&lt;/code&gt; picks up fixes, but it also picks up whatever ships next. Our suggestion: &lt;strong&gt;pin an exact version, then actually re-check it on a schedule.&lt;/strong&gt; That goes double if your product's docs tell customers which bridge to run: your setup snippet is part of your security surface.&lt;/p&gt;

&lt;p&gt;To make the re-check cheap, we added a &lt;code&gt;bridge&lt;/code&gt; check to our free, offline &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt;. It reads MCP client configs (&lt;code&gt;claude_desktop_config.json&lt;/code&gt;, &lt;code&gt;.mcp.json&lt;/code&gt;, &lt;code&gt;mcp.json&lt;/code&gt;, including &lt;code&gt;.cursor/&lt;/code&gt; and &lt;code&gt;.vscode/&lt;/code&gt;) and the code blocks in your docs, and checks every &lt;code&gt;mcp-remote&lt;/code&gt; invocation against known advisories:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:bot2botlabs/mcp-ship-check bridge --strict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what it reports on a sample config with three servers (re-run with v0.3.3 after the 0.16.6 fix):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✖ bridge: 1 config/Markdown file(s) scanned; 3 mcp-remote invocation(s); 3 error(s), 0 warning(s) — --strict: warnings are errors
✖ bridge-cve-2025-6514: claude_desktop_config.json:3 (acme-legacy): mcp-remote@0.1.15 is in CVE-2025-6514's affected range (&amp;lt; 0.1.16): OS command injection via a malicious server's OAuth authorization_endpoint — upgrade to 0.1.16 or later
✖ bridge-cve-2026-108716: claude_desktop_config.json:4 (acme): mcp-remote@0.12.0 is in CVE-2026-108716's affected range (&amp;gt;= 0.8.0, &amp;lt; 0.16.6; the advisory record lists 0.8.0–0.14.3; fixed upstream in 0.16.6 (e4dc371)): client secret and tokens can be sent over cleartext HTTP in the device-code grant; this invocation doesn't pass --device-code, so the vulnerable path isn't used as written — upgrade to 0.16.6 or later, which enforces HTTPS on the device-code endpoints
✖ bridge-cve-2026-108716: claude_desktop_config.json:5 (acme-ci): mcp-remote@0.16.5 is in CVE-2026-108716's affected range (&amp;gt;= 0.8.0, &amp;lt; 0.16.6; the advisory record lists 0.8.0–0.14.3; fixed upstream in 0.16.6 (e4dc371)): client secret and tokens can be sent over cleartext HTTP in the device-code grant; this invocation passes --device-code, so the vulnerable path is in use — upgrade to 0.16.6 or later, which enforces HTTPS on the device-code endpoints
FAIL (4 checks)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details matter here. First, the check never calls a version "patched" just because it sits above an advisory's listed range: it records a fixed release only once the fix is confirmed in the upstream source, and otherwise says the fix is unconfirmed. Second, the affected range follows the fix, not just the advisory record: &lt;code&gt;0.16.5&lt;/code&gt; with &lt;code&gt;--device-code&lt;/code&gt; is still flagged, because the HTTPS check first shipped in &lt;code&gt;0.16.6&lt;/code&gt;, and an unpinned bridge run with &lt;code&gt;--device-code&lt;/code&gt; gets a reminder to pin &lt;code&gt;0.16.6&lt;/code&gt; or later. It also flags &lt;code&gt;--allow-http&lt;/code&gt; pointed at a non-loopback &lt;code&gt;http://&lt;/code&gt; URL, and an unpinned &lt;code&gt;mcp-remote&lt;/code&gt; as information (since it can't be checked offline). Without &lt;code&gt;--strict&lt;/code&gt; it only warns, so you can add it to CI without breaking anything on day one.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist for your MCP server
&lt;/h2&gt;

&lt;p&gt;Server side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] OAuth 2.1 + PKCE, with scopes that map onto roles you already have; scope checked in every tool, deny by default.&lt;/li&gt;
&lt;li&gt;[ ] Rate limits per token; one subject per write call; list sizes capped.&lt;/li&gt;
&lt;li&gt;[ ] Every tool honestly annotated as read-only or destructive; writes confirmed by the user; refused when the client can't confirm.&lt;/li&gt;
&lt;li&gt;[ ] Billing, license and payment actions kept off the external MCP surface.&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;npx github:bot2botlabs/mcp-ship-check sinks --strict&lt;/code&gt; on your source: no shell strings, unguarded paths, interpolated SQL or exposed HTTP transport.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Client side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Your setup docs pin an exact bridge version, and someone re-checks it on a schedule.&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;npx github:bot2botlabs/mcp-ship-check bridge --strict&lt;/code&gt; in CI, over your configs and docs.&lt;/li&gt;
&lt;li&gt;[ ] No &lt;code&gt;--allow-http&lt;/code&gt; to a non-loopback host; &lt;code&gt;--device-code&lt;/code&gt; only against HTTPS endpoints you control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Shipping an MCP server and want a second set of eyes on its trust boundaries before launch? We do quick, hands-on reviews for small teams and solo builders — open an issue on &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;bot2botlabs/mcp-ship-check&lt;/code&gt;&lt;/a&gt; or reach out, and we'll take a look.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MCP specification (2025-11-25): &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" rel="noopener noreferrer"&gt;Authorization&lt;/a&gt; · &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation" rel="noopener noreferrer"&gt;Elicitation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CVE-2025-6514: &lt;a href="https://jfrog.com/blog/2025-6514-critical-mcp-remote-rce-vulnerability/" rel="noopener noreferrer"&gt;JFrog write-up&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CVE-2026-108716: &lt;a href="https://www.vulncheck.com/advisories/mcp-remote-0.8.0-through-0.14.3-cleartext-credential-transmission-via-device-code-oauth-grant" rel="noopener noreferrer"&gt;VulnCheck advisory&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mcp-remote&lt;/code&gt; v0.16.6 fix: &lt;a href="https://github.com/punkpeye/mcp-remote/commit/e4dc3713b0d6a727cbeb21f38324d20a6692dc5f" rel="noopener noreferrer"&gt;commit e4dc371&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Shelf Watch #2: &lt;a href="https://github.com/bot2botlabs/mcp-ship-check/blob/main/docs/shelf-watch-2.md" rel="noopener noreferrer"&gt;What we found auditing 194 MCP servers for code-level sinks&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Bot2Bot Labs keeps a daily, public-data archive of the MCP shelf. This is the third in a series on what's actually out there.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>security</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Shelf Watch #2: What we found auditing 194 MCP servers for code-level sinks</title>
      <dc:creator>Bot2Bot Labs</dc:creator>
      <pubDate>Wed, 11 Nov 2026 18:36:44 +0000</pubDate>
      <link>https://dev.to/bot2botlabs/shelf-watch-2-what-we-found-auditing-194-mcp-servers-for-code-level-sinks-47o9</link>
      <guid>https://dev.to/bot2botlabs/shelf-watch-2-what-we-found-auditing-194-mcp-servers-for-code-level-sinks-47o9</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published in the &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt;&lt;/a&gt; repo, home of the free, offline scanner this post describes.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Building an MCP server is nearly free now. The scarce thing is trust: with thousands of servers on the shelf, which ones are safe to plug into an agent that can read your files and run your tools?&lt;/p&gt;

&lt;p&gt;We kept a daily record of the official MCP Registry — &lt;strong&gt;58,928 active servers&lt;/strong&gt; on the day we measured — and it shows how hard that question is to answer from the outside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;34.6%&lt;/strong&gt; list no source repository at all — nothing to read before you install.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;33.9%&lt;/strong&gt; of the tools we could inspect declare no &lt;code&gt;readOnly&lt;/code&gt;/&lt;code&gt;destructive&lt;/code&gt; safety annotation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;~19%&lt;/strong&gt; of the source repos we sampled return a 404 — the code behind the server is already gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stats only go so far, so we read the code. We built a small, read-only static check and &lt;strong&gt;hand-audited 194 unique servers&lt;/strong&gt; — general-purpose ones, and a focused slice of the riskiest archetype: CLI, shell, Git/Docker/Kubernetes and database wrappers, where untrusted input most often meets a dangerous sink.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "safe" looks like
&lt;/h2&gt;

&lt;p&gt;The best servers we read were genuinely careful. Three patterns are worth copying:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Guarded SQL over an isolated engine.&lt;/strong&gt; One server never sends a model-supplied query upstream. It loads a bounded snapshot into an &lt;strong&gt;in-memory SQLite&lt;/strong&gt; and runs the query there behind a &lt;code&gt;sqlglot&lt;/code&gt; parse (one table, no joins/subqueries/CTEs), a deny-by-default SQLite authorizer, &lt;code&gt;query_only=ON&lt;/code&gt;, and step/row/byte caps. The user can ask anything; nothing can escape the sandbox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A &lt;code&gt;realpath&lt;/code&gt; + base-prefix + argv media wrapper.&lt;/strong&gt; A video tool resolves every input path with &lt;code&gt;realpath&lt;/code&gt;, rejects &lt;code&gt;..&lt;/code&gt;, symlinks, system directories and anything outside an allowlist, and runs FFmpeg with an &lt;strong&gt;argument array — never a shell string&lt;/strong&gt;. The result: it does exactly what you ask and nothing you didn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;argv discipline + parameterized SQL in a process supervisor.&lt;/strong&gt; A coding-agent supervisor spawns everything with &lt;code&gt;execFile&lt;/code&gt;/&lt;code&gt;spawn&lt;/code&gt; and argument arrays (no shell), runs &lt;code&gt;git&lt;/code&gt; with fixed subcommands, and binds every value with &lt;code&gt;?&lt;/code&gt; placeholders. No interpolation anywhere in the hot path.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these are exotic. They're the difference between "it works" and "it's safe to publish."&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes wrong
&lt;/h2&gt;

&lt;p&gt;The failure mode is almost always the same: &lt;strong&gt;untrusted input reaches a sink through a shell string or an interpolated identifier.&lt;/strong&gt; A command assembled with template interpolation and handed to a shell; a table or column name dropped straight into SQL; a file path from a tool argument used without a base-directory check.&lt;/p&gt;

&lt;p&gt;Across 194 unique servers we read, we found &lt;strong&gt;six High-severity issues&lt;/strong&gt;: three OS command injections, two HTTP transports bound to &lt;code&gt;0.0.0.0&lt;/code&gt; with no authentication (exposing their tools — in one case arbitrary shell execution — to anyone on the same network, or to a web page the user visits via DNS rebinding), and one database server whose read-only guard could be bypassed. The command injections all share one shape: a tool argument reaching a shell through string interpolation on a code path that had no business running a shell (in one case the same server used the safe, argv-array pattern elsewhere and just regressed in a single spot). The read-only bypass is a different lesson in the same spirit: the server tried to allow only read queries, but checked only the &lt;em&gt;first keyword&lt;/em&gt; at the application layer rather than wrapping the session in a database-enforced &lt;code&gt;BEGIN TRANSACTION READ ONLY&lt;/code&gt; — allowing statement forms that pass the keyword check to still modify or delete rows. We're reporting each privately to its maintainer with a patch, and &lt;strong&gt;we'll share details only after they're fixed.&lt;/strong&gt; &lt;em&gt;(Update: the first of the six fixes has already shipped and been published as &lt;a href="https://github.com/IamNishant51/atlas-mcp-server/security/advisories/GHSA-w3gh-28jp-2hmv" rel="noopener noreferrer"&gt;GHSA-w3gh-28jp-2hmv&lt;/a&gt;; we're adding each remediation to the &lt;a href="https://github.com/bot2botlabs/mcp-ship-check#verified-advisories--remediations" rel="noopener noreferrer"&gt;&lt;code&gt;mcp-ship-check&lt;/code&gt; README&lt;/a&gt; as maintainers release patches.)&lt;/em&gt; Everything else our check flagged was either a server whose job &lt;em&gt;is&lt;/em&gt; to run commands (an intentional shell, not a bug) or a false positive we tuned out.&lt;/p&gt;

&lt;p&gt;The lesson for builders: the bug is rarely the whole server. It's one &lt;code&gt;exec&lt;/code&gt; that should have been an &lt;code&gt;execFile&lt;/code&gt;, one &lt;code&gt;${table}&lt;/code&gt; that should have been an allowlist, one path that skipped a &lt;code&gt;realpath&lt;/code&gt;. They're easy to miss and easy to catch.&lt;/p&gt;

&lt;h2&gt;
  
  
  A free check, so yours ships clean
&lt;/h2&gt;

&lt;p&gt;We turned what we learned into a pre-ship check. It's deterministic, offline, reads only your source, and never installs or runs your server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:bot2botlabs/mcp-ship-check sinks --strict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(Runs straight from the public &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;bot2botlabs/mcp-ship-check&lt;/code&gt;&lt;/a&gt; repo — the prebuilt CLI is committed, so there's no build step and no dependencies to install.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It looks for four things: a command built for a shell instead of an argv array; a filesystem path from a tool argument with no base-directory guard; a SQL statement built by interpolation instead of placeholders; and an MCP HTTP transport exposed beyond loopback (bound to &lt;code&gt;0.0.0.0&lt;/code&gt;, or missing DNS-rebinding protection). By default it only warns, so it won't break your CI; add &lt;code&gt;--strict&lt;/code&gt; to make it fail the build.&lt;/p&gt;

&lt;p&gt;It's a targeting aid, not a verdict — it points you at the lines worth a second look. Run it on your server before you publish. If it's wrong about yours, send us a PR; we'd rather fix the check than cry wolf.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Shipping an MCP server and want a second set of eyes on its trust boundaries before launch? We do quick, hands-on reviews for small teams and solo builders — open an issue on &lt;a href="https://github.com/bot2botlabs/mcp-ship-check" rel="noopener noreferrer"&gt;&lt;code&gt;bot2botlabs/mcp-ship-check&lt;/code&gt;&lt;/a&gt; or reach out, and we'll take a look.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Bot2Bot Labs keeps a daily, public-data archive of the MCP shelf. This is the second in a series on what's actually out there.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>security</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Daily snapshots of the MCP Registry: first numbers</title>
      <dc:creator>Bot2Bot Labs</dc:creator>
      <pubDate>Mon, 09 Nov 2026 19:19:07 +0000</pubDate>
      <link>https://dev.to/bot2botlabs/daily-snapshots-of-the-mcp-registry-first-numbers-5g3</link>
      <guid>https://dev.to/bot2botlabs/daily-snapshots-of-the-mcp-registry-first-numbers-5g3</guid>
      <description>&lt;p&gt;The official &lt;a href="https://registry.modelcontextprotocol.io" rel="noopener noreferrer"&gt;MCP Registry&lt;/a&gt; shows what’s listed &lt;em&gt;now&lt;/em&gt;, but it doesn’t keep a history. Since &lt;strong&gt;6 November 2026&lt;/strong&gt; I’ve been taking a full snapshot every day, plus read-only &lt;code&gt;tools/list&lt;/code&gt; probes of public hosted servers (initialize + list tools only — never calling a tool). This is a baseline from the &lt;strong&gt;7 November 2026, 06:36 UTC&lt;/strong&gt; snapshot (&lt;a href="https://github.com/bot2botlabs/mcp-shelf-archive/releases/tag/snapshot-2026-11-07" rel="noopener noreferrer"&gt;mcp-shelf-archive &lt;code&gt;snapshot-2026-11-07&lt;/code&gt;&lt;/a&gt;). Two days of history so far, so nothing here is a trend yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  What’s on the shelf
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;57,993&lt;/strong&gt; entries: &lt;strong&gt;57,090&lt;/strong&gt; active and &lt;strong&gt;903&lt;/strong&gt; deprecated.&lt;/li&gt;
&lt;li&gt;Overnight from 6→7 November: &lt;strong&gt;158&lt;/strong&gt; added, &lt;strong&gt;3&lt;/strong&gt; removed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;19,109&lt;/strong&gt; active entries have a latest-version date in October 2026; &lt;strong&gt;9,295&lt;/strong&gt; more are dated 1–7 November (that’s the date of each entry’s latest version, not when it was first listed).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who publishes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;36,027&lt;/strong&gt; publishers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;91%&lt;/strong&gt; list exactly one server.&lt;/li&gt;
&lt;li&gt;Ten publishers account for about &lt;strong&gt;15%&lt;/strong&gt; of active entries; the single largest GitHub-namespaced account lists &lt;strong&gt;2,366&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Source links and downloads
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;34.7%&lt;/strong&gt; of active entries give no source repository.&lt;/li&gt;
&lt;li&gt;Of &lt;strong&gt;858&lt;/strong&gt; linked GitHub repositories checked, &lt;strong&gt;104 (12%)&lt;/strong&gt; no longer exist; &lt;strong&gt;55%&lt;/strong&gt; of the rest have zero stars.&lt;/li&gt;
&lt;li&gt;Across &lt;strong&gt;4,643&lt;/strong&gt; servers whose npm packages we checked: median &lt;strong&gt;81&lt;/strong&gt; downloads/week; the top &lt;strong&gt;1%&lt;/strong&gt; take about &lt;strong&gt;90%&lt;/strong&gt; of all downloads in that sample.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tool lists (hosted, public HTTPS only)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Asked &lt;strong&gt;550&lt;/strong&gt; hosted servers; &lt;strong&gt;388&lt;/strong&gt; answered openly; &lt;strong&gt;123&lt;/strong&gt; required a login.&lt;/li&gt;
&lt;li&gt;Median server exposes &lt;strong&gt;9&lt;/strong&gt; tools; the largest in the sample, &lt;strong&gt;165&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Of &lt;strong&gt;6,621&lt;/strong&gt; tools listed, &lt;strong&gt;31%&lt;/strong&gt; carry no annotations at all (no readOnly / destructive hints).&lt;/li&gt;
&lt;li&gt;Of &lt;strong&gt;152&lt;/strong&gt; servers already seen the day before, &lt;strong&gt;16&lt;/strong&gt; changed tool definitions overnight — &lt;strong&gt;14&lt;/strong&gt; of those 16 were one publisher updating the same shared tools across its servers. Read that as one night’s data, not a rate.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Method (short)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Registry: public MCP Registry API, latest version of every entry, daily.&lt;/li&gt;
&lt;li&gt;Tool lists: public, no-login, HTTPS endpoints; rotating sample + fixed watch list; &lt;code&gt;initialize&lt;/code&gt; and &lt;code&gt;tools/list&lt;/code&gt; only.&lt;/li&gt;
&lt;li&gt;Downloads / repos: official npm and GitHub APIs, daily rotating samples.&lt;/li&gt;
&lt;li&gt;No logins, no scraping, no tool calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Limits
&lt;/h3&gt;

&lt;p&gt;Samples rotate and aren’t the whole shelf. Counting entries isn’t judging quality. Corrections welcome: &lt;a href="mailto:jordan@bot2botlabs.com"&gt;jordan@bot2botlabs.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Full write-up with the same figures and limits:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bot2botlabs.com/r/mcp-gh-202611-a" rel="noopener noreferrer"&gt;https://bot2botlabs.com/r/mcp-gh-202611-a&lt;/a&gt;&lt;/p&gt;

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