# DiffSense

Audits pull request diffs for regression risks without scanning entire repositories. It provides a read-only MCP interface backed by a semantic rule engine.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 30
- Author: GoldenSupremeSaltedFish
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/GoldenSupremeSaltedFish/DiffSense
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/diffsense

## What it does

DiffSense exposes tools such as `audit_diff` and `explain_rule` to coding assistants through a read-only MCP server. Instead of running linter checks across the entire codebase, it focuses strictly on modified lines. Output arrives as structured JSON or SARIF 2.1.0, flagging risks with an explicit `review_level`.

The engine automatically drops the severity of noisy rules to limit false alarms. It will never block your CI pipeline on its own. Merging decisions stay in human hands or downstream automation. Running this server locally or inside an agent environment expects `uv` available in your path.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add diffsense -- uvx diffsense
```
uvx runs the command named after the package; if the README names another one, use uvx --from diffsense <command>

### Codex

**Platform CLI**
```bash
codex mcp add diffsense -- uvx diffsense
```
uvx runs the command named after the package; if the README names another one, use uvx --from diffsense <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "diffsense": {
            "command": "uvx",
            "args": [
                "diffsense"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from diffsense <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "diffsense": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "diffsense"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from diffsense <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add diffsense uvx diffsense
```
uvx runs the command named after the package; if the README names another one, use uvx --from diffsense <command>

## When to use it
- audit pull request diffs for regression risks
- export code change risk reports in SARIF 2.1.0
- inspect rule evaluations with `explain_rule`
- evaluate patch safety without full repository scans

## Example prompts
- Run a DiffSense audit on the current git diff and summarize the review level.
- Explain the triggered DiffSense rule for this patch.
- Check uncommitted changes with DiffSense for potential regressions.

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [Serena MCP: the IDE for your agent](https://affpapa.org/en/nevibecode/mcp/serena-mcp-the-ide-for-your-agent.md) — MCP server · ★ 30677
- [Repomix](https://affpapa.org/en/nevibecode/mcp/repomix.md) — MCP server · ★ 29027
- [Repowise](https://affpapa.org/en/nevibecode/mcp/repowise.md) — MCP server · ★ 7891
- [sem](https://affpapa.org/en/nevibecode/mcp/sem.md) — MCP server · ★ 3422

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
