
Dependency Fitness Mcp
io.github.TweedBeetle由 GitHub 账号 TweedBeetle 发布v0.1.1更新于 Oct 24, 2026
npm dependency fitness: deprecated/yanked/superseded + verified safe migration target.
概览
一个本地 MCP 服务器,为编码助手提供 npm 包的交叉核验健康度判定,包括是否已弃用以及应迁移到哪个包。
- 可以做什么
- 检查单个 npm 包(最新版或指定版本、范围、dist-tag)的弃用、撤回、恶意标记与是否被取代,并给出置信度和警告。根据维护者的弃用声明推断并核实安全的迁移目标,无法确认后继包时拒绝猜测。批量审计一组包或 package.json 的内容,每次最多 50 个,返回逐包判定和汇总,可用于 CI 或合并前检查。综合 npm registry、deps.dev、OSV.dev 和 GitHub 的信息,标记来源分歧,并发现看似活跃但仓库已归档的包。
- 适用场景
- 当助手准备新增或升级 npm 依赖、需要先确认该包仍在维护且安全,或为已弃用的包寻找替代品时使用。也适合在合并依赖变更前做批量检查。
- 运行要求
- 通过 npx 或全局安装以 stdio 在本地运行,需要 Node 18 或更高版本。无需账号或密钥,但需要能访问 npm registry、deps.dev、OSV.dev 和 GitHub。可选环境变量 GITHUB_TOKEN 可提高 GitHub 速率上限,用于归档仓库检查。
安装
在 SourceWeft 中
- 打开 控制台中的 Dependency Fitness Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
dependency-fitness-mcp — npm dependency fitness verdicts for coding agents
Is this npm package safe to depend on — and if not, what do I move to?
An MCP server that gives a coding agent a cross-validated fitness verdict for an npm package before it writes or upgrades a dependency:
It reconciles four free, sanctioned sources — the npm registry, Google's deps.dev, OSV.dev, and GitHub — into one confidence-scored answer, and infers a safe migration target when a package is deprecated or superseded.
Why this exists (and what it deliberately isn't)
"Is it deprecated?" is already free — deps.dev serves that flag, and several free MCP servers already answer "what's the latest version?". This tool does the part nobody serves as data:
- Migration-target inference. When a package is deprecated, it parses the maintainer's own deprecation notice for a named successor, then verifies that successor actually exists and isn't itself deprecated before recommending it.
- Cross-validation, not a guess. It reconciles deprecation across the npm registry and deps.dev, catches "deceptive deprecation" (registry says active but the GitHub repo is archived), and flags disagreement with a confidence level instead of inventing an answer.
- It refuses to guess. If a package is deprecated but no successor can be established, it says exactly that (low confidence) rather than recommending a plausible-but-wrong replacement. A wrong "use X instead" ships broken code.
- Anti-slopsquatting. A non-existent / hallucinated package name returns a clear "not found" verdict (with an OSV malicious-record check), so an agent won't silently install a hallucinated dependency.
This is intentionally a narrow tool: the deprecation / yank / supersede / migration middle, where the free incumbents sit on either side but leave the seam open.
Tools
check_package_fitness
Single-package verdict. Input: package (e.g. request, @babel/core), optional
version (exact, semver range, or dist-tag — omit for latest). Output: the full
Verdict (structured) plus a human-readable summary.
audit_dependencies
Batch verdict for a CI / pre-merge gate. Input: packages (e.g.
["[email protected]", "request"]) and/or the raw contents of a package.json. Output:
a per-package verdict array plus a summary (how many deprecated / malicious /
vulnerable / behind). Capped at 50 packages per call.
Install / connect
Requires Node ≥ 18. Run via npx (no install) or install globally.
Claude Code:
Claude Desktop / Cursor / any MCP client (mcp.json / claude_desktop_config.json):
Optional env: GITHUB_TOKEN raises the GitHub rate limit (used only for the
archived-repo cross-check); everything else needs no key.
Run locally / develop
How a verdict is built
npm is the source of truth; the others corroborate. A corroborator being
unreachable lowers confidence and adds a warning — it never fabricates a
signal.
Status
v0.1 — thin, working, npm-only. This is a fast public validation of whether a
narrow "agent-data endpoint via MCP directory" can find its users organically.
Roadmap and the explicit kill criterion live in
KILL_CRITERION.md. Next layers (documented, not yet
built): PyPI, and de-facto-successor inference by mining what high-trust
packages actually depend on now.
License
MIT © Christo Wilken / 9592 Solutions UG. Built in public.
来源:README.md,提交 b057e04
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分