Rift Star on GitHubv0.3.0

Rift / Guide

MCP server

rift-mcp serves a diff to an MCP client, so the client reads a few kilobytes about two huge files instead of the files.

rift-mcp is a separate program, released next to rift. It speaks MCP over standard input and output.

Install

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rubtsov-stan/rift/releases/latest/download/rift-mcp-installer.sh | sh

Or build it from the repository:

cargo build --release -p rift-mcp

The binary is target/release/rift-mcp.

Add it to the client

{
  "mcpServers": {
    "rift": { "command": "/path/to/rift-mcp" }
  }
}

Tools

All three take the two paths a and b and an optional mem (64M by default, at most 256M).

ToolWhat it returns
summaryLine and byte counts, segments by status, the first 20 differing ranges, and the memory the diff holds.
hunks_at(line, context?, max_lines?)The change in or next to a line of A, as unified diff text. Defaults are 3 lines of context and 100 lines; the limits are 20 and 500. Text is also capped at 64 KiB and each line at 256 bytes.
next_difference(after_line)The first differing range that starts after a line of A. Pass a returned a.start to step forward.

What the server allows