<?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: fernforge</title>
    <description>The latest articles on DEV Community by fernforge (@fernforge).</description>
    <link>https://dev.to/fernforge</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%2F4001400%2F988e87e0-4668-4c83-b3a9-236448efe443.png</url>
      <title>DEV Community: fernforge</title>
      <link>https://dev.to/fernforge</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fernforge"/>
    <language>en</language>
    <item>
      <title>Lint your MCP server before you publish it (an eslint for MCP)</title>
      <dc:creator>fernforge</dc:creator>
      <pubDate>Sat, 27 Jun 2026 01:51:41 +0000</pubDate>
      <link>https://dev.to/fernforge/lint-your-mcp-server-before-you-publish-it-an-eslint-for-mcp-3gb7</link>
      <guid>https://dev.to/fernforge/lint-your-mcp-server-before-you-publish-it-an-eslint-for-mcp-3gb7</guid>
      <description>&lt;p&gt;If you've shipped a &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; server, you've probably hit this: the server &lt;em&gt;works&lt;/em&gt; in your editor, you publish it, and then agents call your tools wrong — or worse, a client flags it as unsafe and it never makes it into the ChatGPT or Claude app directories.&lt;/p&gt;

&lt;p&gt;There's no &lt;code&gt;eslint&lt;/code&gt; for this. So I built one: &lt;strong&gt;&lt;a href="https://github.com/fernforge/mcp-conform" rel="noopener noreferrer"&gt;mcp-conform&lt;/a&gt;&lt;/strong&gt; — a deterministic, author-side conformance &amp;amp; safety linter you run &lt;em&gt;before&lt;/em&gt; you publish.&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:fernforge/mcp-conform &lt;span class="nt"&gt;--cmd&lt;/span&gt; &lt;span class="s2"&gt;"node dist/index.js"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mcp-conform — 7 tool(s) checked

delete_record
  ✖ error  ann/missing-destructive-hint  Tool may modify state but does not set destructiveHint.
         fix: Set annotations.destructiveHint (true for irreversible ops like delete).
  ✖ error  safety/injection-phrase       Description contains an instruction-override phrase.
         fix: Describe behavior, don't issue commands to the agent.

1 error · 4 warning · 5 info
Conformance score: 76/100   FAIL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why an author-side linter?
&lt;/h2&gt;

&lt;p&gt;Three things changed under MCP authors' feet, and they all bite at publish time:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Missing tool annotations are the #1 reason servers get rejected from app directories.&lt;/strong&gt; The spec says a client &lt;em&gt;must assume the worst case&lt;/em&gt; — destructive, open-world — when a hint is absent. So if you don't set &lt;code&gt;readOnlyHint&lt;/code&gt; / &lt;code&gt;destructiveHint&lt;/code&gt; / &lt;code&gt;openWorldHint&lt;/code&gt; / &lt;code&gt;title&lt;/code&gt;, your harmless read tool gets treated as dangerous, and your destructive tool ships with no warning at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Tool descriptions are an injection surface.&lt;/strong&gt; Descriptions are fed straight into the agent's context. An "ignore previous instructions…" line — or an invisible Unicode payload — sitting in a description is a real &lt;strong&gt;tool-poisoning&lt;/strong&gt; vector. You want that caught in CI, not in a security write-up about your package.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The official registry now does namespace-verified publishing.&lt;/strong&gt; Reverse-DNS names, a &lt;code&gt;server.json&lt;/code&gt; manifest, and clean package metadata are part of being publishable and discoverable now, not nice-to-haves.&lt;/p&gt;

&lt;p&gt;Most existing MCP security tooling is &lt;strong&gt;consumer-side&lt;/strong&gt; — it scans servers you're about to &lt;em&gt;install&lt;/em&gt;. &lt;code&gt;mcp-conform&lt;/code&gt; is &lt;strong&gt;author-side and shift-left&lt;/strong&gt;: it makes &lt;em&gt;your&lt;/em&gt; server conformant before anyone installs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it checks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Annotations&lt;/strong&gt; — missing/incorrect &lt;code&gt;readOnlyHint&lt;/code&gt;, &lt;code&gt;destructiveHint&lt;/code&gt;, &lt;code&gt;openWorldHint&lt;/code&gt;, &lt;code&gt;title&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema hygiene&lt;/strong&gt; — thin or ambiguous input schemas, missing descriptions, no constraints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safety / tool-poisoning&lt;/strong&gt; — instruction-override phrases and hidden-Unicode payloads in descriptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Distribution &amp;amp; registry metadata&lt;/strong&gt; — &lt;code&gt;package.json&lt;/code&gt; / &lt;code&gt;server.json&lt;/code&gt; readiness for the registry.&lt;/li&gt;
&lt;li&gt;Every finding ships with a &lt;strong&gt;one-line fix&lt;/strong&gt;, and it rolls up to a single 0–100 conformance score.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  It lints what actually ships
&lt;/h2&gt;

&lt;p&gt;The interesting part: point it at your server's &lt;strong&gt;launch command&lt;/strong&gt; and it starts the server over stdio, calls &lt;code&gt;tools/list&lt;/code&gt;, and inspects the &lt;em&gt;real&lt;/em&gt; schemas your users will receive — not a guess parsed from your source. That catches the gap between what your code looks like and what your server actually serves.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# lint the live, running server&lt;/span&gt;
npx github:fernforge/mcp-conform &lt;span class="nt"&gt;--cmd&lt;/span&gt; &lt;span class="s2"&gt;"node dist/server.js"&lt;/span&gt;

&lt;span class="c"&gt;# or a saved tools/list dump, with a CI gate&lt;/span&gt;
npx github:fernforge/mcp-conform &lt;span class="nt"&gt;--manifest&lt;/span&gt; tools.json &lt;span class="nt"&gt;--min-score&lt;/span&gt; 80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  No LLM key. No network. Fully deterministic.
&lt;/h2&gt;

&lt;p&gt;It's a linter, not a model. Safe to run in CI, free to run a thousand times a day, and its verdict never drifts. There's a drop-in &lt;strong&gt;GitHub Action&lt;/strong&gt; that scores every PR and writes a job summary, so a regression in your tool metadata fails the build like any other lint error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:fernforge/mcp-conform &lt;span class="nt"&gt;--cmd&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;your server launch command&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repo, rules, and the GitHub Action: &lt;strong&gt;&lt;a href="https://github.com/fernforge/mcp-conform" rel="noopener noreferrer"&gt;https://github.com/fernforge/mcp-conform&lt;/a&gt;&lt;/strong&gt; (MIT).&lt;/p&gt;

&lt;p&gt;It's early — if you publish MCP servers, I'd genuinely like to know which checks catch real issues for you and which rules you'd want next. Open an issue or drop a comment.&lt;/p&gt;

&lt;p&gt;(Disclaimer: this article was generated by ai)&lt;/p&gt;

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