プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

closure_drift

作者:luizfnsilvaバージョン 1.5.0i★ –iパソコンで動く
レジストリ名io.github.luizfnsilva/closure_drift

インストール

概要

作者による説明(英語の原文)

Before an agent tags a release: does that version label already name different code in the git tags?

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • DockerDockerのインストール

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "closure-drift": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/luizfnsilva/closure_drift:1.5.0"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add closure-drift -- docker run -i --rm ghcr.io/luizfnsilva/closure_drift:1.5.0

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "closure-drift": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/luizfnsilva/closure_drift:1.5.0"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "closure-drift": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/luizfnsilva/closure_drift:1.5.0"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント luizfnsilva で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの1396件のうち0%よりスターが多い
  • このカテゴリのほかの1396件のうち93%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1396件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

closure_driftは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.5.0)がレジストリに届いたのは3 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

パソコンでもクラウドでも★ 34,245MIT4 日前更新
インストール

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

パソコンで動く★ 10,225MIT16 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

closure_drift

Does `v1.4.2` mean one thing in your repository?

$ git clone -q https://github.com/psf/requests && cd requests

$ closure-drift --compare v2.16.0 v2.16.1 A v2.16.0 (commit bcd0e170ac20) label 2.16.0 closure 3d2886b87c2a7b94 17 file(s) B v2.16.1 (commit f687e9f3d8b0) label 2.16.0 closure 696b71ed6023f563 18 file(s) changed requests/init.py only in B requests/packages.py

============================================================== DIFFERS UNDER ONE LABEL: both declare 2.16.0, and the code differs in 2 path(s). If both were published, that label names two things.

Check it without this tool: git show v2.16.1:requests/__version__.py says 2.16.0. closure_drift reads the git history, not a package index: it shows what the tags contain, not which commit a published package was built from.

A version is a string a human edits. When two releases share a version and differ in code, one address names two artefacts — and nothing notices, because the version is all that was recorded.

One command checks it. Read-only, one file, no dependencies, no network.

Three ways in

Try it now (recommended first). See the three answers on tiny repositories it builds and deletes, then measure yours:

git clone -q https://github.com/luizfnsilva/closure_drift && python3 closure_drift/examples/demo.py

python3 closure_drift/closure_drift.py /path/to/your/repo

Or without cloning: curl -sO https://raw.githubusercontent.com/luizfnsilva/closure_drift/v1.5.0/closure_drift.py then python3 closure_drift.py inside any git repository. Needs Python 3.9+ and git. The last lines say what to do next. (./reproduce.sh is something else: it validates closure_drift itself, a long run, and does not look at your repository.)

With your agent. Install the skill (skills/closure-drift/), which tells the agent when to check before a tag and how to read the answer: gh skill install luizfnsilva/closure_drift closure-drift --agent claude-code (or codex, cursor, gemini-cli, github-copilot, …). In Claude Code, skill and MCP server together: /plugin marketplace add luizfnsilva/closure_drift. Other clients: integrations/.

In CI, the barrier that holds when nobody remembers to check: docs/CI.md. Exit 0 pass, 1 drift, 2 nothing decided (a failure by default).

Check before you tag

--would-tag answers: *if I tag this commit now, does its version already name different code?* After tagging, --tag NAME answers: *does this tag name the version its commit declares?* A tag pushed before the version was bumped fails there; in the study it is how 79 of the 87 labels in drift came about. On a tag push the Action runs --tag; on any other push, --would-tag.

# GitHub Actions
  • uses: actions/checkout@v4 with: { fetch-depth: 0 }
  • uses: luizfnsilva/closure_drift@v1.5.0

Push the workflow before the first tag: a tag pushed together with the workflow that should run on it may not start it (then run it by hand, with workflow_dispatch: in its on:). mode: measure concludes only from two distinct labels; on the first release it is inconclusive, exit 2, so gate with the default mode from the first tag.

# pre-commit, on git push
  • repo: https://github.com/luizfnsilva/closure_drift rev: v1.5.0 hooks: [{ id: closure-drift-would-tag }]

Other pipelines: docs/CI.md.

For AI agents

An agent needs two things: to know when to check (before it creates a tag, bumps a version or publishes), and a way to run the check. The skill gives the first; the MCP server, the second.

  1. The skill, in any agent that reads skills: gh skill install luizfnsilva/closure_drift closure-drift --agent claude-code (or codex, cursor, gemini-cli, github-copilot, …).
  2. In Claude Code, both at once, as a plugin: /plugin marketplace add luizfnsilva/closure_drift, then /plugin install closure-drift@closure-drift.
  3. The MCP server alone (standard library only, a would_tag tool), for other clients:
claude mcp add closure-drift -- uvx --from git+https://github.com/luizfnsilva/closure_drift closure-drift-mcp

Codex CLI, Gemini CLI, Cursor, VS Code, Windsurf, and a rule to paste into AGENTS.md, CLAUDE.md or .cursorrules: integrations/. An agent can still skip the check; the barrier is CI.

The answer

verdictexit
clean0every label names one closure, over at least as many points compared as not
drift1a label names more than one closure
any other verdict (list)2not enough to tell; the report says why
refusal2cause on stderr

Exit 0 means clean and nothing else. No input we tried produces a traceback, and no failure exits 1.

  • label — the version your project declares at each tag: in its build files, in the module they point to, or the tag itself when the version is derived from it
  • closure — SHA-256 over (path, git object id) of the files that determine your output

The report also says how many tags it could not compare.

Options

--would-tagwould tagging this commit reuse a label?
--tags 'py-*'only these tags are publication points (monorepos)
--at commitsyou publish at every commit
--closure 'src/**'which files determine your output
--strictclean only if every point was compared
--explain LABELwhich paths differ under a label in drift: --compare over every tag of that label, found by the scan
--compare A Btwo tags side by side
--version-file, --version-regexwhere the label is
--published FILEonly tags of versions you published: a local list, one per line. --tags picks by name; use this when a tag that matches was never released
--label-equality version1.0, 1.0.0 and v1 are one label
--modesa file's mode (executable bit, symlink) is part of the closure
--component NAMEone component of a monorepo (below)
--json, --badge, --diagnosereport (contract), README badge, bug-report block

Settings can be committed in .closure-drift.json. Flags override it, except beside components, where they need --component; a broken file is refused.

A monorepo declares its components, and gets one verdict each:

{"components": {

"python": {"tags": ["py-*"], "version_file": "py/pyproject.toml", "closure": ["py/**"]}, "rust": {"tags": ["rs-*"], "version_file": "rs/Cargo.toml", "closure": ["rs/**"]} }}

The answer is drift if any component is in drift, clean if all are clean, otherwise incomplete. Components are declared, never guessed. A gate in such a repository passes --component NAME to --would-tag.

What it found

The 100 most-downloaded PyPI projects with a public repository, at the defaults, measured with a build of 0.10.0 that prints the same reports as the release — rule and method fixed before the first run; no repository tuned (full table and every collision):

repositories
clean59
drift29
incomplete — fewer tags compared than not4
no version label found, or inconclusive8

A version label names two different code states in 29 of the 88 decided, 29 of all 100. Each of the 87 labels is in collisions.tsv, one line per tag involved, reproducible by hand:

$ closure-drift --compare v2.16.0 v2.16.1        # in psf/requests

DIFFERS UNDER ONE LABEL: both declare 2.16.0, and the code differs in 2 path(s).

A collision is not a verdict on a project. The usual causes are a tag created without bumping the version, branch markers such as 7.x, and tag families in a monorepo. A first run, kept in the repository, decided only 63 of 100 — it read the version from one file chosen at HEAD — and that is why this release finds the label where each project keeps it.

Six reference repositories, measured with 1.0.0 at every tag (tools/reference/):

Repositoryverdictlabels in drifttags compared
pallets/clickdrift3 of 6671 of 71
psf/requestsdrift3 of 140145 of 162
pypa/packagingclean0 of 5050 of 53
encode/httpxclean0 of 8888 of 88
impress/impress.jsdrift2 of 46 of 15
lodash/lodashdrift60 of 107209 of 440

Two causes: a release tagged without bumping the version (impress.js), and tag families sharing one version file (lodash). Neither project is badly run. --would-tag addresses the first, --tags or components the second.

Limits

  • It never runs your code and attests nothing. clean is about addressing, not reproducibility.
  • A change of file mode alone is not seen, unless --modes.
  • Never in the closure: folders test/, tests/, spec/, docs/, vendor/, node_modules/, .git/; files named *_test.*, *.test.*, *.md. A --closure glob that names one of these folders brings it in (--closure 'vendor/**'); .git/ and the file patterns never.
  • The default closure globs are a guess. Pass --closure.
  • Labels are compared as written: 1.0 and 1.0.0 are two labels, unless --label-equality version.
  • It reads git, not a package index: a tag never released counts, unless --published lists what was. A tag left off the list is left out of the analysis, not shown unpublished.
  • How the label is found is a set of rules, not a build: docs/LABELS.md.
  • In a gate, pass --version-file, or --published: the rules can still read the wrong file when one tag happens to agree with it.

Every failure found so far: docs/FAILURES.md. More: SCOPE.md, docs/WHY.md.

Safety

It starts git and, for a version pattern you supply, itself; nothing else. It never writes to the repository, and does not run commands named in that repository's git config. What is defended and what is not: THREAT_MODEL.md. Reporting: SECURITY.md.

Tests

Four suites, each pre-registered before the code. Scores are never added together.

suitemacOS, Python 3.14
tests/battery.py — acceptance proofs243 declared · 242 green · 0 red · 1 not run
tests/negative_controls.py — the battery must fail on a broken detector77 mutants · 77 caught · 0 not caught
tests/adversarial.py — written by reviewers who did not write the fixes315 attacks · 304 as required · 2 loose · 9 not run; the 2 loose are declared limits (docs/FAILURES.md O2a, O2b)
tests/properties.py — 60 generated repositories against tests/oracle.py, a second implementation written from a specification by someone who did not read this one17 properties · 17 green · 0 red · 10 controls · 10 caught

CI runs the same four on Linux (Python 3.9 to 3.14), macOS and Windows; what each platform could not run is in tests/RECORD.md. These scores describe the cases executed, not inputs nobody tried. ./reproduce.sh runs all of it. The 100 projects of the study are also a regression corpus, pinned to recorded commits: 1.5.0 gives the recorded answer on all 99 still checkable (one tag of apache/arrow moved upstream), as predicted before it ran (tools/regression/).

Ten large repositories (the Linux kernel, LLVM, CPython and seven more), protocol written first. Every tag of the kernel: 6.5 GB for the whole process tree with 0.9.1, 900 MB with 1.0.0. 0.9.1 gave three wrong or near-empty answers there; 1.0.0 gives none o

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く