<?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: Freshdeps</title>
    <description>The latest articles on DEV Community by Freshdeps (@freshdepsdev).</description>
    <link>https://dev.to/freshdepsdev</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3933579%2F553201ac-333b-48ea-8336-fc595aa4a881.png</url>
      <title>DEV Community: Freshdeps</title>
      <link>https://dev.to/freshdepsdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/freshdepsdev"/>
    <language>en</language>
    <item>
      <title>AI coding agents recommend stale npm/PyPI packages — I built a live MCP check for it</title>
      <dc:creator>Freshdeps</dc:creator>
      <pubDate>Fri, 15 May 2026 16:38:21 +0000</pubDate>
      <link>https://dev.to/freshdepsdev/ai-coding-agents-recommend-stale-npmpypi-packages-i-built-a-live-mcp-check-for-it-5gei</link>
      <guid>https://dev.to/freshdepsdev/ai-coding-agents-recommend-stale-npmpypi-packages-i-built-a-live-mcp-check-for-it-5gei</guid>
      <description>&lt;h2&gt;
  
  
  The problem: your AI agent's package knowledge is months stale
&lt;/h2&gt;

&lt;p&gt;I kept hitting the same failure mode while pair-coding with Claude and Cursor: the agent confidently recommends a package, I install it, and only later find out it was deprecated, the repo is archived, or the version it suggested has a known CVE.&lt;/p&gt;

&lt;p&gt;This is structural, not a model quality issue. An LLM's package knowledge is frozen at its training cutoff — typically 6–18 months stale by the time you use it. In that window a library can get deprecated, hand off maintenance, archive its repo, or pick up a CVE. The model has no way to know any of that happened. A bigger or newer model does not fix this; it just moves the stale cutoff forward a few months. The only real fix is a &lt;strong&gt;live lookup at recommendation time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So I built a small thing to do exactly that lookup, and wired it into the agent via MCP so the check happens &lt;em&gt;before&lt;/em&gt; the recommendation reaches me.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Freshdeps&lt;/strong&gt; returns one honest maintenance verdict for an npm or PyPI package by combining three live sources at request time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the package registry (npm / PyPI) — latest version, deprecation, yanked releases&lt;/li&gt;
&lt;li&gt;the GitHub API — last commit/release age, archived flag, open issues&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://osv.dev" rel="noopener noreferrer"&gt;OSV.dev&lt;/a&gt; — open vulnerability count&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It collapses those into a single verdict — &lt;code&gt;active&lt;/code&gt;, &lt;code&gt;slowing&lt;/code&gt;, &lt;code&gt;stale&lt;/code&gt;, &lt;code&gt;abandoned&lt;/code&gt;, or &lt;code&gt;unknown&lt;/code&gt; — plus the supporting facts (latest version, release/commit age, deprecated/yanked/archived flags, CVE count) and a hand-verified alternative when something is clearly dead.&lt;/p&gt;

&lt;p&gt;There are two surfaces over the same backend:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Web + JSON API&lt;/strong&gt; — for humans and scripts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Page: &lt;code&gt;https://freshdeps.vercel.app/npm/react&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;API: &lt;code&gt;GET https://freshdeps.vercel.app/api/verdict?ecosystem=npm&amp;amp;package=react&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ecosystem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"package"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"latestVersion"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"19.2.6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"deprecated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"lastReleaseAgeDays"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"archived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"lastCommitAgeDays"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"openIssues"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1302&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"vulnCount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"maintenance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"active"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"suggestedAlternative"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sources"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"registry"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"osv"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. MCP server&lt;/strong&gt; — so the agent checks before it recommends, which is the part I actually care about.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the MCP integration works
&lt;/h2&gt;

&lt;p&gt;The server exposes exactly one tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;check_dependency_freshness(ecosystem: "npm" | "pypi", package: string)
  → live maintenance verdict + latest version + release/commit age
    + deprecation/yank/archived flags + OSV CVE count
    + hand-verified alternative if the package is dead
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One tool, one job. When the agent is about to suggest a dependency, it can call this and get ground truth instead of recalling a stale fact. In practice the useful pattern is a project rule like &lt;em&gt;"before recommending or adding any npm/PyPI dependency, call &lt;code&gt;check_dependency_freshness&lt;/code&gt; and don't recommend anything that comes back &lt;code&gt;abandoned&lt;/code&gt; or with open CVEs."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Install is one paste into your MCP client config — &lt;strong&gt;no account, no API key&lt;/strong&gt;. It runs straight from GitHub via &lt;code&gt;npx&lt;/code&gt;:&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;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:{&lt;/span&gt;&lt;span class="nl"&gt;"freshdeps"&lt;/span&gt;&lt;span class="p"&gt;:{&lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"github:SolvoHQ/freshdeps-mcp"&lt;/span&gt;&lt;span class="p"&gt;]}}}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That works in any MCP-capable client (Claude Desktop, Cursor, etc.). It's also published to the official MCP Registry as &lt;code&gt;io.github.SolvoHQ/freshdeps-mcp&lt;/code&gt;. MCP server source: &lt;a href="https://github.com/SolvoHQ/freshdeps-mcp" rel="noopener noreferrer"&gt;https://github.com/SolvoHQ/freshdeps-mcp&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest about the limits
&lt;/h2&gt;

&lt;p&gt;This is an MVP and I'd rather say so than oversell it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;npm and PyPI only.&lt;/strong&gt; No Go, crates, RubyGems, Maven yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No auth, no database.&lt;/strong&gt; Verdicts are computed live per request, so the first hit on a cold, never-seen package is a bit slow (subsequent reads are cached by the platform).&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;active&lt;/code&gt; / &lt;code&gt;abandoned&lt;/code&gt; heuristic is a judgment call built from release age, commit age, archived status and deprecation. It's deliberately conservative, but it will disagree with you on some packages you know well.&lt;/li&gt;
&lt;li&gt;Unauthenticated GitHub API calls are rate-limited; under load some verdicts can come back &lt;code&gt;partial&lt;/code&gt; (registry-only) rather than failing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these are hard blockers for the core use case, but you should know them before you trust it in a workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Asking for feedback
&lt;/h2&gt;

&lt;p&gt;Two specific things I'd genuinely like input on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Which ecosystems matter most to you beyond npm/PyPI?&lt;/strong&gt; That ordering decides what I build next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does the abandoned-vs-active call match your judgment&lt;/strong&gt; on packages you know deeply? Pick a few, hit the API, tell me where it's wrong — that heuristic only gets better with disagreement.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it on a package you already have an opinion about:&lt;br&gt;
&lt;code&gt;https://freshdeps.vercel.app/npm/&amp;lt;your-package&amp;gt;&lt;/code&gt; or the JSON API above. It's open source; the MCP repo is linked above. Thanks for reading.&lt;/p&gt;

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