blastr-mcp

v0.3.0
blastr-mcp Checked 6 hours ago

Internal crate of Blastr (the MCP server for AI agents); not a stable API

See what a Rust change can reach, and why. A desktop workspace that compares two revisions of a Cargo project, classifies what changed, and shows the code and tests the change can affect — with the evidence for every link. GitHub · crates.io · Downloads · Support git diff shows which lines changed. Blastr shows what changed structurally, which other code and tests that change can reach, and the path that connects them.

Summary extracted from the README.


git diff shows which lines changed. Blastr shows what changed structurally, which other code and tests that change can reach, and the path that connects them.

  • It knows what kind of change you made. Remove a struct field and it lists the code that uses that field, not every user of the struct. Add an enum variant and it points at the match blocks whose _ arm will now quietly catch it. Change a trait's default method and it skips the impls that override it.
  • Two clear answers. Needs editing — code that refers to something whose shape changed. May behave differently — code that still compiles but now runs through changed code.
  • Ranked, with evidence. Items are ordered by how directly and how certainly they are reached, and each one carries the chain of calls and references that links it to the change.
  • The tests worth running. The tests that reach the change, as cargo test commands ready to copy.
  • Honest about its limits. Unresolved references, dynamic dispatch and inactive cfg code are shown next to the result they affect, never hidden.

Everything runs locally. Nothing is sent anywhere.

Getting started

Blastr needs the Rust toolchain your project already uses; nothing else.

Download

Every release carries ready-made binaries, with a SHA256SUMS file to check them against:

Platform Archive Install
Windows x86_64 blastr-<version>-windows-x86_64.zip Unzip anywhere and run blastr.exe.
Arch Linux x86_64 blastr-<version>-archlinux-x86_64.tar.gz Unpack into ~/.local or /usr/local (tar -xzf … --strip-components=1 -C ~/.local); this adds blastr to bin and a desktop entry with its icon.

Each archive holds three programs that belong together: the window, blastr; the analysis engine, blastr-engine, which the window starts from its own folder; and blastr-mcp, the server AI agents start. Keep them side by side.

From crates.io

cargo install blastr

This builds and installs all three programs into ~/.cargo/bin. On Linux it needs the system packages listed below.

Build from source

The pinned toolchain in rust-toolchain.toml installs itself on first use:

git clone https://github.com/zix3r/blastr
cd blastr
cargo build --release -p blastr

The programs land in target/release.

sudo apt-get install -y build-essential cmake clang lld pkg-config libzstd-dev libglib2.0-dev \
  libfontconfig-dev libwayland-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev \
  libvulkan1 libvulkan-dev libasound2-dev

Use

Start blastr inside a repository, pass it a folder (blastr path/to/project), or open one from the start screen. Uncommitted changes are compared against HEAD straight away; open the compare chip in the title bar to pick a commit, or shift-click a second one for a range. With the working tree selected, every save refreshes the result in about a second.

Select a change to see its diff and a graph of where it reaches; select an affected item to see its source with the evidence lines marked and the path that reaches it. What if… in the evidence panel traces what a change of the selected symbol would reach.

Keys
Ctrl O Open a repository
Ctrl P Find any symbol
Ctrl R Run the comparison again
Ctrl F Filter the changes and impact
Ctrl M Give the code pane the whole centre, or the graph back
Alt ← / → Back and forward through the selection
Ctrl + / - / 0 Zoom the code in, out, or back to 100%
Ctrl E Open the selected location in your editor
Ctrl , Settings
Esc Cancel the running analysis

Use with AI agents

Agents such as Claude Code, Claude Desktop, Cursor and VS Code can use Blastr through MCP: open a repository, choose a comparison, read the impact, its evidence and the tests to run, try a what if, and point the window at what they are talking about. blastr-mcp talks to the open window, so keep Blastr running; everything the agent does happens visibly there, and the working-tree result it reads refreshes as files are saved.

In Blastr, Settings → Copy MCP config copies {"mcpServers":{"blastr":{"command":"<path to blastr-mcp>"}}} with the real path. Then:

  • Claude Code: claude mcp add blastr -- <path to blastr-mcp>
  • Claude Desktop, Cursor: paste that JSON into claude_desktop_config.json or .cursor/mcp.json (merge it with any servers already there).
  • VS Code: add it to .vscode/mcp.json under "servers" instead of "mcpServers": {"servers":{"blastr":{"command":"<path to blastr-mcp>"}}}.

The agent can call guide to learn the concepts and tools. Agents can be turned off with Allow AI agents (MCP) in Settings.

How it works

Blastr loads both revisions with rust-analyzer, built in as a library, and turns each into a graph of symbols and the references between them. It matches the symbols across the two sides (renames and moves included), classifies every difference, and then follows the references backwards from each change using rules specific to its kind. Graphs and results are cached per revision and configuration, so the second look at a commit is instant; the cache keeps itself under 2 GB by dropping what was used least recently.

The analysis runs in a separate engine process, the way editors run rust-analyzer: a slow or failed load never freezes or crashes the window.

[!NOTE] Loading a Cargo project runs its build scripts and procedural macros, exactly as building it would. Blastr asks once per repository; choose Open restricted for code you do not trust — generated code is then invisible and the result says so.

Settings

There is no configuration file in the repository. Everything is set in the window, from the gear in the title bar or Ctrl ,:

  • Editor — the command open in editor runs, with {file}, {line} and {column} placeholders; it starts as the first editor found on this machine. Empty opens the file with the program the system associates with it.
  • Analysis — how far impact is followed, and whether a comparison of the working tree runs again when a file is saved.
  • This repository — its Cargo features or all of them, a target triple, ignore patterns, and whether build scripts and procedural macros may run.

Which confidence is listed is chosen above the list itself. A change applies at once; one the analysis depends on offers to run the comparison again. The settings are kept in your user configuration directory (%APPDATA%\blastr on Windows, ~/.config/blastr on Linux, ~/Library/Application Support/blastr on macOS), beside the cache, so nothing about your machine ends up in a commit.

Status

Blastr is a bachelor's project at Kaunas University of Technology, built to be used. It is in active development; releases are on GitHub and crates.io.

Support

Blastr is free and open source, and built in spare hours. If it saved you a debugging session or an unnecessary full test run, you can buy me a coffee — it keeps the work going.

Licence

Dual-licensed under MIT or Apache 2.0, at your option.