Skip to main content

ScarTissue MCP

ScarTissue is a PR review agent that warns when a pull request appears to reintroduce a historical bug pattern from the same repository. It mines prior bug-fix commits, stores them as searchable "scar tissue," and exposes the review workflow as an MCP stdio server for Claude Code, Codex CLI, Gemini CLI, and other MCP clients.

Install

pip install scartissue-mcp

After installation, start the MCP stdio server with:

scartissue-mcp

Configuration

Set these environment variables in your MCP client config:

Variable Required Description
ANTHROPIC_API_KEY Yes Anthropic API key used by the review agent.
NIA_API_KEY Yes Nia API key used for current-code search.
GITHUB_TOKEN Yes GitHub token used to fetch pull requests and mine repositories.
CHROMA_PERSIST_DIR Yes Absolute path to the local ChromaDB directory where scar tissue indexes are stored.

Claude Code

Add this to ~/.claude/mcp.json or workspace .claude/mcp.json:

{
  "mcpServers": {
    "scartissue": {
      "command": "scartissue-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "NIA_API_KEY": "nia_...",
        "GITHUB_TOKEN": "ghp_...",
        "CHROMA_PERSIST_DIR": "/absolute/path/to/scartissue/chroma_db"
      }
    }
  }
}

Codex CLI

Add this to ~/.codex/mcp_servers.toml:

[scartissue]
command = "scartissue-mcp"

[scartissue.env]
ANTHROPIC_API_KEY = "sk-ant-..."
NIA_API_KEY = "nia_..."
GITHUB_TOKEN = "ghp_..."
CHROMA_PERSIST_DIR = "/absolute/path/to/scartissue/chroma_db"

Gemini CLI

Add this to ~/.gemini/settings.json under mcpServers:

{
  "mcpServers": {
    "scartissue": {
      "command": "scartissue-mcp",
      "args": [],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "NIA_API_KEY": "nia_...",
        "GITHUB_TOKEN": "ghp_...",
        "CHROMA_PERSIST_DIR": "/absolute/path/to/scartissue/chroma_db"
      }
    }
  }
}

Tools

  • scartissue_index_repo: mine a repository's git history and index historical bug-fix incidents.
  • scartissue_review_pr: review a GitHub pull request against previously indexed scar tissue.
  • scartissue_search_scar_tissue: search indexed incident history for bug-fix examples related to a query.
  • scartissue_list_indexed_repos: list indexed repositories with incident counts and last-indexed timestamps.

Index a repository once with scartissue_index_repo before reviewing PRs from that repository.

Links

Metadata

Release files for scartissue-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scartissue-mcp 0.1.0
File Size Uploaded Provenance
scartissue_mcp-0.1.0.tar.gz 33.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scartissue-mcp 0.1.0
File Interpreter ABI Platform
scartissue_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.9 kB

Release files / scartissue_mcp-0.1.0.tar.gz

Download URL scartissue_mcp-0.1.0.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cd173d121259f939a567abcbd667f34e66898bf857616c3e0a45d475f7115b7c
BLAKE2b-256 checksum
How to use checksums
8407baca34fd1d4222fd4fb20b8ec95fe44db707da52aa2dee647ff5ecc28394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / scartissue_mcp-0.1.0-py3-none-any.whl

Download URL scartissue_mcp-0.1.0-py3-none-any.whl
Size 46.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
295e64d604d97eb9533221915ee4ebac632018908ce108ce8899847e850cfca8
BLAKE2b-256 checksum
How to use checksums
bcdea0b34fa77072536d454d1ac7def66e96b8553f854e32542ff9bdd18599e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for scartissue-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page