BumpGuard
What it does
Reports which of your code's API usages break when you upgrade a dependency (Python, .NET, Java).
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "bumpguard": { "command": "uvx", "args": [ "bumpguard-mcp" ] } } }退出 Claude 再重新打开
试一试
用 BumpGuard 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 BumpGuard,或回答中出现 BumpGuard 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 BumpGuard
BumpGuard 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 BumpGuard 的应用
- 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user bumpguard -- uvx bumpguard-mcp在 Claude Code 中输入 /mcp
应能看到 BumpGuard 在列表中并显示已连接
试一试
用 BumpGuard 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 BumpGuard,或回答中出现 BumpGuard 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 BumpGuard 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 BumpGuard,或回答中出现 BumpGuard 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 BumpGuard 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 BumpGuard,或回答中出现 BumpGuard 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user bumpguard -- uvx bumpguard-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"bumpguard": {
"command": "uvx",
"args": [
"bumpguard-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"bumpguard": {
"command": "uvx",
"args": [
"bumpguard-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"bumpguard": {
"type": "stdio",
"command": "uvx",
"args": [
"bumpguard-mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 appcreationsca 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于5个月前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5882 个服务器的 85%
- 发布到注册中心的时间比此分类中其他 5882 个服务器的 17% 更新
- 基础检查结果等于或优于此分类中其他 5882 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
BumpGuard 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于5个月前,最新版本(0.2.1)于5个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
BumpGuard
Guard your dependency bumps. BumpGuard is a Model Context Protocol (MCP) server that tells your AI coding agent *exactly which lines of your code break* when you upgrade a dependency — and verifies AI‑written code against the API that is actually installed, so it stops calling functions that don't exist.
It does this by static analysis only. BumpGuard never imports or executes third‑party code; it reads a package's real public API straight from its source.
Docs tell your agent what *should* exist. BumpGuard tells it what *actually* exists here.
Why this exists
The #1 frustration developers report with AI coding tools is code that's *"almost right, but not quite."* A huge slice of that is API drift and hallucination:
- The model writes
pydantic.BaseSettingsoropenai.ChatCompletion.create(...)— perfectly valid two versions ago, gone in the version you have installed. - You bump
pandasfrom 1.5 to 2.2 and discover the breakage one stack trace at a time. - A changelog lists *1,800 breaking changes*; you only care about the three your code actually touches.
BumpGuard closes that gap with ground truth from your environment instead of the model's memory.
What it does
A real example — upgrading pydantic 1 → 2 in code that uses BaseSettings:
// check_upgrade(package="pydantic", to_version="2.0.3", from_version="1.10.13", code="...")
{ "safe_to_upgrade": false, "summary": { "breaking": 1, "total_api_changes": 4919, "breaking_api_changes": 2015 }, "findings": [ { "symbol": "pydantic.BaseSettings", "line": 2, "severity": "breaking", "message": "You use 'pydantic.BaseSettings', which no longer exists in the target version...", "suggestion": "Consider 'pydantic.v1.env_settings.BaseSettings'" } ] }
Out of 2,015 breaking API changes, BumpGuard surfaced the one that affects this code — with the line number and a fix hint.
Tools
| Tool | What it answers |
|---|---|
| `check_upgrade` ⭐ | *"If I upgrade package to to_version, what in this code breaks?"* Diffs the installed (or from_version) API against the target and reports only the changes your code actually hits, with severity and fix hints. |
| `diff_versions` | *"What changed between two versions of this library?"* The raw breaking‑change list, no code scan — good for planning a migration. |
| `verify_snippet` | *"Do the imports and API calls in this code really exist here?"* Catches hallucinated/typo'd package names (slopsquatting) and attributes that aren't on the installed package. |
| `check_import` | *"Is this package installed? If not, what's the closest real name?"* |
| `list_symbols` | *"What's the real public API of this package?"* Discover functions/classes/methods + signatures instead of guessing — for the installed version or any fetched version. |
| `list_languages` | Which ecosystem providers are available. |
Every answer is grounded in evidence (installed version, source location). Because analysis is static, "no findings" means "nothing proven to break," not a guarantee — BumpGuard is explicit about that in its output.
Install
pip install bumpguard-mcp
Requires Python 3.10+. The server speaks MCP over stdio.
Install BumpGuard into the same environment as the project you're working on, so it sees the packages you actually have installed.
Configure your MCP client
Claude Desktop / Claude Code (claude_desktop_config.json):
{
"mcpServers": { "bumpguard": { "command": "bumpguard-mcp" } } }
Cursor / Windsurf / VS Code (Copilot) — point your MCP config at the bumpguard-mcp command (or python -m bumpguard.server). Any MCP‑compatible client works.
Then ask your agent things like:
- *"Before upgrading pandas to 2.2, check whether my data pipeline breaks."*
- *"Verify this snippet actually uses the installed OpenAI SDK."*
- *"List the real methods on
httpx.Client."*
How it works
┌──────────────── language‑neutral core ────────────────┐
MCP tools → │ diff engine · breaking‑change classifier · analyzer │ │ (matches API changes against YOUR usage) │ └───────────────────────┬──────────────────────────────┘ │ Provider interface ┌───────────────────────┴──────────────────────────────┐ │ Python provider │ .NET (NuGet) │ Java (Maven) │ │ • AST surface │ • DLL metadata │ • jar bytecode │ │ • usage scanner │ • Roslyn scan │ • source scan │ │ • wheel fetch │ • nupkg fetch │ • jar fetch │ └──────────────────────────────────────────────────────┘
- Extract a package's public API surface by parsing its source with Python's
ast— for the installed version, and for the target version (downloaded as a wheel and unpacked, never installed or executed). - Diff the two surfaces into removed / signature‑changed / added symbols, and classify each as breaking, potentially breaking, or info.
- Scan your code (also via
ast) for usages — resolving import aliases, re‑exports, instance‑method calls, and the keyword/positional arguments each call passes. - Match usages against changes and report a precise, per‑line verdict.
Safety: BumpGuard never imports third‑party code, so there are no import side effects, no hangs from heavy packages, and no arbitrary code execution. Wheel downloads are sandboxed to a temp dir, time‑bounded, and guarded against path traversal / zip bombs.
Multi‑language by design
BumpGuard is built around a pluggable provider interface. The diff engine, breaking‑change classifier, analyzer, reporting, and MCP tools are all language‑neutral; only the *surface extraction* and *usage scanning* are ecosystem‑specific.
- ✅ Python (PyPI) — available now.
- ✅ .NET (NuGet) — available now. Reads public API from assembly metadata via reflection-only loading (no code executed); needs the .NET SDK (
dotnet) on PATH. A small helper is built once on first use. - ✅ Java (Maven) — available now. Reads public API directly from compiled
.jarbytecode (constant pool, access flags, descriptors) in pure Python — no JDK or Maven required and no third‑party code is executed. - 🔜 JS/TS (npm) — parse
.d.tsdeclarations.
Adding an ecosystem means implementing one Provider — see docs/ADD_A_PROVIDER.md.
.NET specifics (v1)
- Pass
language: "dotnet". Example: *"Before upgrading Azure.AI.OpenAI to 2.1.0, check whether my client code breaks (from_version 1.0.0-beta.17)."* - Supported:
check_upgrade,diff_versions,list_symbols,check_import. - Prefer passing `from_version` — the "installed" baseline is taken from the NuGet global cache, which isn't your project's pinned version.
- Reliable signal: type / method / property removals and additions (e.g. the
OpenAIClient→AzureOpenAIClientrename is caught as a breaking removal with a suggestion). Parameter-level diffs run only for unambiguous single-overload members; overloaded members are tracked by presence (a documented v1 limit). - Fully-qualified references are reported confidently; short names resolved via
usingare reported as lower-confidence "potentially breaking" to avoid false hard-breaks from namespace collisions. verify_snippetis not supported for .NET in v1 (accurate C# hallucination detection needs semantic binding).
Java specifics (v1)
- Pass
language: "java"and identify packages by their Maven coordinategroup:artifact(e.g.com.google.code.gson:gson). Example: *"Before upgrading com.google.code.gson:gson to 2.10.1, check whether my code breaks (from_version 2.8.9)."* - Supported:
check_upgrade,diff_versions,list_symbols,check_import. - The public API surface is read directly from `.jar` bytecode (the jar is a zip of
.classfiles; BumpGuard parses the class‑file structure withstruct— reading metadata, never running it). The target jar is fetched from Maven Central (sandboxed, size‑capped, time‑bounded). No JDK/Maven needed. - Prefer passing `from_version` — the "installed" baseline is read from your local
~/.m2cache, which may not match your project's pinned version. - Reliable signal: type / method / field / constructor removals and additions, and arity changes. Fully-qualified references hard-break; short names resolved via
importare reported as lower-confidence "potentially breaking" to avoid false hard-breaks from namespace collisions. - Documented v1 limits: generics are erased in bytecode descriptors (so generic type-argument changes aren't seen); return-type-only changes and varargs removal are tracked conservatively; overloaded members are tracked by presence (per-overload removal isn't detected); multi-release jars use the highest version overlay. The source usage scanner is a robust heuristic, not a full parser — it can pick up a name's own *declaration* or
importline as a reference, but these resolve to unqualified names that are capped at "potentially breaking" and can never produce a false hard-break.verify_snippetis not supported for Java in v1 (accurate hallucination detection needs semantic binding).
Known limitations (v1, Python)
BumpGuard is honest about static analysis. It may miss (false negatives) or, rarely, over‑flag (false positives):
- Dynamically generated APIs (
__getattr__modules, plugin registries,boto3‑style clients). BumpGuard detects__getattr__modules and *suppresses* confident "missing symbol" findings under them. - Members created at runtime that aren't visible in source.
- Compiled (C/Rust) extension internals — the Python‑level surface is still read.
- Deep instance‑flow tracking is limited to direct
x = Class(...)patterns. - Star re‑exports (
from .x import *) are not expanded.
Treat findings as high‑signal guidance, and absence of findings as "not proven unsafe," not a guarantee.
Development
git clone https://github.com/appcreationsca/bumpguard-mcp
cd bumpguard-mcp python -m venv .venv && . .venv/Scripts/activate # Windows pip install -e ".[dev]" pytest
The test suite (42 tests) runs offline using fixture packages — no network required.
Releasing
Releases are automated via GitHub Actions. To cut a release:
- Bump the version in
pyproject.tomlandsrc/bumpguard/__init__.py. - Move the
CHANGELOG.md"Unreleased" notes under a new version heading. - Commit, then tag and push:
git tag v0.1.0
git push origin v0.1.0
The Release workflow runs the tests, builds the wheel + sdist, and publishes to PyPI via Trusted Publishing (OIDC — no stored tokens). The CI workflow runs the test matrix (Linux + Windows, Python 3.10/3.13) on every push and PR.
License
MIT — see LICENSE.