Dependency Migration Mcp

io.github.SolvoHQ由 GitHub 账号 SolvoHQ 发布v0.1.2更新于 Oct 24, 2026

Through-the-upgrade dependency-migration briefs for LLM coding agents.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为编码代理提供依赖主版本升级的结构化迁移简报,涵盖破坏性变更与过时 API 陷阱。

可以做什么
按包名和版本对获取迁移简报,包含每项破坏性变更的分类、变更前后、修复方式与 codemod 覆盖情况,并列出代理应抑制的过时 API 幻觉警告。
适用场景
适合在升级过程中使用:刚升级主版本、构建报错时,让代理在动手修改前先获取简报。目前仅覆盖少数组合:tailwindcss 3 到 4、next 14 到 15、react 18 到 19。
运行要求
以 Python 包形式通过 stdio 在本机运行,可用 uvx 或 pip 启动(需 Python 3.10+)。无需账号、API 密钥或环境变量;数据内置且离线,运行时不发起网络请求。
安装前请注意
只读,仅返回简报,不会修改代码。各组合准确度不同:仅 tailwindcss 3 到 4 标为已验证,其余为合理准确度。不支持的包会返回 not_found 结果。安装时会从公开 GitHub 仓库拉取代码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Dependency Migration Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

dependency-migration-mcp

Through-the-upgrade migration briefs for LLM coding agents.

Official codemods auto-apply the mechanical ~90% of a major version bump. This MCP server briefs your agent on the non-mechanical ~10% that still leaves the build red, and corrects the agent's stale-v3-training hallucination of the old API surface — the part a codemod cannot do.

For one (package, from, to) triple it returns a structured brief: per breaking change — category, before/after, how to grep every occurrence in your code, the fix, and whether the free codemod already covers it — plus a top-level list of the specific old-API hallucinations the agent must suppress.

Supported matrix

packagefrom → totiersource
tailwindcss3 → 4flagship — verified against the upstream upgrade guide (2026-05-16)https://tailwindcss.com/docs/upgrade-guide
next14 → 15reasonable-accuracyhttps://nextjs.org/docs/app/guides/upgrading/version-15
react18 → 19reasonable-accuracyhttps://react.dev/blog/2024/04/25/react-19-upgrade-guide

Versions are normalised by major (3, 3.4.1, v3, ^3 → 3). An unknown package or unsupported pair returns a clean structured not_found (with the supported matrix) — never an exception. Data is hand-curated and offline (no runtime network calls).

Install (one command, zero account)

bash
uvx --from git+https://github.com/SolvoHQ/dependency-migration-mcp dependency-migration-mcp

That fetches, builds, and runs the stdio MCP server straight from public GitHub. No clone, no signup, no API key. (Need uvx? pip install uv.)

Prefer pip? A venv fallback:

bash
python3 -m venv .venv && . .venv/bin/activatepip install "git+https://github.com/SolvoHQ/dependency-migration-mcp.git"dependency-migration-mcp        # runs the stdio server

Wire it into your agent

Claude Code — claude mcp add:

bash
claude mcp add dependency-migration -- uvx --from git+https://github.com/SolvoHQ/dependency-migration-mcp dependency-migration-mcp

or drop this into .mcp.json at your project root:

json
{  "mcpServers": {    "dependency-migration": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/SolvoHQ/dependency-migration-mcp",        "dependency-migration-mcp"      ]    }  }}

Cursor — ~/.cursor/mcp.json:

json
{  "mcpServers": {    "dependency-migration": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/SolvoHQ/dependency-migration-mcp",        "dependency-migration-mcp"      ]    }  }}

Tool

get_migration(package: str, from_version: str, to_version: str) -> dict

Read-only. Returns a JSON-able brief: summary (counts, codemod command + what it does/doesn't cover, stale_training_hallucination_warnings, positioning) and breaking_changes[] (each with id, title, category ∈ {mechanical, non-mechanical, behavioural, removed-api, config-shape}, what_changed.{description,before,after}, find_occurrences.{guidance,patterns}, fix, codemod_covered, and codemod_command when covered).

Use it mid-upgrade: right after bumping a major version and seeing the build go red, ask the agent to call get_migration before it starts editing.

Smoke test

bash
pip install -r requirements.txt          # mcp>=1.2, pydantic>=2  (Python 3.10+)python smoke_test.py

Imports the server, calls get_migration("tailwindcss","3","4") and asserts the @tailwind→@import change, the CSS-first config-shape change, and a stale-training hallucination warning are present; then asserts an unknown pair returns a clean not_found.

来源:README.md,提交 6cf6a9b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。