Purpose: BumpGuard is an MCP (Model Context Protocol) server for AI coding agents, used to locate breaking changes in code when upgrading dependencies, and to verify whether AI-written code uses APIs that actually exist in the installed version, reducing "almost correct but not quite" API drift and hallucination issues. Requires Python 3.10+, provides MCP service via stdio, and must be installed into the same environment as the project.
Main capabilities: parse package source code to extract the public API surface (Python uses ast, .NET reads assembly metadata, Java reads .jar bytecode directly), compare the current version with the target version, classify symbol changes as removed, signature changes, added, and mark them as breaking, possibly breaking, or informational. Then use ast to scan usage sites in local code, resolving import aliases, re-exports, instance method calls, and argument passing, giving line-by-line conclusions and fix suggestions. Typical uses include asking "check whether the data pipeline breaks before upgrading pandas to 2.2", "verify whether this code really uses the installed OpenAI SDK", and "list the real methods of httpx.Client".
Usage: install it into the target project environment, and in an MCP client (such as Claude Desktop, Cursor, Windsurf, VS Code Copilot) configure it to point to the bumpguard-mcp command or python -m bumpguard.server. .NET requires the dotnet SDK on PATH, pass language: "dotnet"; Java pass language: "java" and identify the package with group:artifact. It is recommended to explicitly pass from_version, because the "installed" baseline comes from the global cache and may not be the project's locked version.
Limitations: pure static analysis, does not import or execute third-party code; wheel/jar downloads are restricted in a temporary directory, time-limited, and protected against path traversal and zip bombs. May miss issues or rarely produce false positives: dynamically generated APIs (including getattr modules, plugin registries, boto3-style clients have suppression handling), runtime members, compiled extension internals, deep instance flow tracking, star re-exports, etc. No findings only means "not proven to break", and is not a guarantee. .NET and Java v1 does not support verify_snippet; generic erasure, return-type-only changes, varargs removal, overloading, etc. have known limitations. The project's tests run offline and it uses the MIT license.