
Rebaseplan
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
規劃安全的變基:開始前先標記壓縮歷史記錄和強制推送的風險。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Plan a safe rebase: squash history and force-push risk flagged before you start.
概覽
Rebaseplan 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Rebaseplan,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
rebaseplan
Rebasing a branch is easy to start and hard to undo, especially once other people have the old history. The risky parts are rarely visible in the branch name: merge commits that a plain rebase will flatten, squash-merge markers whose original commits may also live upstream, an upstream that has moved far ahead, and a published history that a rewrite will orphan. rebaseplan reads that shape before you start and returns a plan instead of a surprise.
You hand it the branch's own commits, oldest first, each with a hash, a subject, and optionally a flag saying it is a merge commit. You may also hand it the commits upstream has that this branch does not, and say whether the branch has been pushed or shared. Nothing is fetched, rebased, or pushed — the tool only counts and advises.
A commit counts as a squash marker in exactly two ways: its
subject starts with Squashed commit, or it ends with a
GitHub squash-merge suffix such as (#123) — the pinned test
is the regular expression /\(#\d+\)$/. Upstream commits are
never counted as markers, however their subjects read.
Force-push risk follows a fixed table. An unpublished branch
is low. A published branch with no merge commits and no
squash markers is medium. A published branch with either is
high.
The recommended strategy is chosen by first match: any merge
commits means rebase_with_merge_preservation; otherwise any
squash markers means interactive_squash_cleanup; otherwise
linear_rebase. Merge history therefore beats squash
markers when both are present.
The plan's steps always start with fetching upstream and end
with running the test suite on the rebased head and a push
instruction: --force-with-lease, never plain --force, for
a published branch, with a backup branch created first; or a
normal push when the branch was never published. Warnings, in
order, flag merge commits, squash markers, an upstream ten or
more commits ahead (the warning text is fixed regardless of
the exact count), and the published-history rewrite.
Malformed input — a missing, empty, or non-array commits,
an entry with a missing, empty, or non-string hash or
subject or a non-boolean merge, a badly typed
upstream_commits entry, or a non-boolean published — is a
validation error naming the offending path, with no partial
result. Unknown extra fields are ignored.
CLI
args.json contains the full arguments object:
upstream_commits defaults to [], published defaults to
false, and each commit's merge defaults to false. The
result is printed as JSON:
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
MCP client config:
Tools
-
plan_rebase— Plan a safe rebase before you start.commits(array, required, non-empty) — the branch's own commits, oldest first:{hash, subject, merge}upstream_commits(array, optional, default[]) — commits the upstream branch has that this branch does not:{hash, subject}published(boolean, optional, defaultfalse) — whether the branch has been pushed or shared
Returns
{commit_count, merge_commits, squash_markers, upstream_new_commits, published, force_push_risk, recommended_strategy, steps, warnings}.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
來源:README.md,提交 d6afa22
工具
0版本歷史
1- v0.1.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分