Upgradepath

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 3, 2026

规划安全的依赖升级路径:有序的中间版本、破坏性变更、结论。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Plan a safe dependency upgrade path: ordered intermediate versions, breaking changes, verdict.

已验证STDIO仅桌面

概览

Upgradepath 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

upgradepath

Upgrading a dependency is rarely one jump. The releases between where you are and where you want to be each carry their own breaking changes, and the order you pass through them matters. upgradepath plans that walk for a single dependency. You supply the facts — the name, the version you have, the version you want, and the known releases with the breaking changes and deprecation flags you have recorded for each — and it returns the ordered steps in between, what each step breaks, and a verdict for the whole path.

Nothing is fetched. Versions are never looked up and changes are never guessed; every fact in the plan came from the caller. Only releases numerically greater than the current version and at most the target become steps, sorted ascending. Versions are written x.y.z and compare numerically, so 01.2.3 and 1.2.3 are the same version — including when that makes two supplied releases duplicates, which is an error. The target must be greater than the current version, or the plan is rejected before any step is chosen.

Alongside the steps, the result counts how many major boundaries the chain crosses, walking from the current version through each step in order, and reports whether the last step actually reaches the target: a release list that stops short still produces a plan, but reaches_target says plainly that it does not arrive. The verdict is decided in a fixed precedence. No steps at all is no_path. A path carrying no breaking changes is clean. Three or fewer breaking changes in total is manageable, and anything beyond that is major_effort — so a step-less plan is no_path even though its breaking total is zero.

Each step echoes its version and its breaking changes exactly as supplied, counts those changes, and reports whether the release is deprecated (false when the caller did not say). Malformed input — a missing, empty, or non-string name, a version outside the x.y.z grammar, a missing, non-array, or empty releases list, a malformed release entry, a duplicate release version, or a target that is not greater than the current version — is a validation error naming the offending path, with no partial result. Unknown extra fields are ignored, including inside release entries.

CLI

bash
npx @reneturcios/upgradepath plan --input args.jsonnpx @reneturcios/upgradepath --version

args.json contains the full arguments object:

json
{  "name": "widgetlib",  "current": "1.2.3",  "target": "3.0.0",  "releases": [    { "version": "1.3.0" },    {      "version": "2.0.0",      "breaking_changes": ["removed the legacy parser entry point"]    },    {      "version": "2.4.1",      "breaking_changes": ["renamed the configuration keys", "dropped Node 14 support"],      "deprecated": true    },    { "version": "3.0.0" }  ]}

The result is printed as JSON:

json
{  "name": "widgetlib",  "current": "1.2.3",  "target": "3.0.0",  "steps": [    {      "version": "1.3.0",      "breaking_changes": [],      "breaking_count": 0,      "deprecated": false    },    {      "version": "2.0.0",      "breaking_changes": ["removed the legacy parser entry point"],      "breaking_count": 1,      "deprecated": false    },    {      "version": "2.4.1",      "breaking_changes": ["renamed the configuration keys", "dropped Node 14 support"],      "breaking_count": 2,      "deprecated": true    },    {      "version": "3.0.0",      "breaking_changes": [],      "breaking_count": 0,      "deprecated": false    }  ],  "step_count": 4,  "total_breaking": 3,  "majors_crossed": 2,  "reaches_target": true,  "verdict": "manageable"}

Exit codes: 0 on success, 1 on a runtime error (including an unreadable or invalid input file, or invalid input), 2 on a usage error.

MCP server

bash
npx -y @reneturcios/upgradepath mcp

MCP client config:

json
{  "mcpServers": {    "upgradepath": {      "command": "npx",      "args": ["-y", "@reneturcios/upgradepath", "mcp"]    }  }}

Tools

  • plan_upgrade_path — Plan a safe dependency upgrade from caller-supplied release facts.

    • name (string, required, non-empty) — dependency name
    • current (string, required) — currently installed version, in x.y.z form
    • target (string, required) — target version, in x.y.z form; must be greater than current
    • releases (array, required, at least 1 item) — known releases of the dependency; each item has:
      • version (string, required) — release version, in x.y.z form
      • breaking_changes (array of strings, optional) — breaking changes introduced by this release; absent means none
      • deprecated (boolean, optional) — whether this release is deprecated; absent means false

    Returns {name, current, target, steps, step_count, total_breaking, majors_crossed, reaches_target, verdict}, where each step is {version, breaking_changes, breaking_count, deprecated}.

Docker

bash
docker run -i ghcr.io/cloudcorprecords/upgradepathdocker run --rm -v "$PWD:/w" ghcr.io/cloudcorprecords/upgradepath plan --input /w/args.json

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # tsx --test test/*.test.ts (pure local, no network)npm run dev     # run the CLI from source

License

MIT — Copyright (c) 2026 Rene Turcios

来源:README.md,提交 dfa7e67

工具

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

版本历史

1
  1. v0.1.0最新Nov 3, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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