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 分