SelvageSAFE
An LLM-based code review MCP server with AST-powered smart context extraction
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Selvage: AI-Powered Code Review Automation Tool
🌐 한국어
A modern CLI tool that helps AI analyze Git diffs to improve code quality, find bugs, and identify security vulnerabilities.
🤖 AI Agents: Read our documentation at https://selvage.ai/llms.txt
▶ Watch Demo Video
Selvage: Code reviews with an edge!
No more waiting for reviews! AI instantly analyzes your code changes to provide quality improvements and bug prevention. With smart context analysis (AST-based) that's accurate and cost-effective, plus multi-turn processing for large codebases - seamlessly integrated with all Git workflows.
Table of Contents
- ✨ Key Features
- 🚀 Quick Start
- 🎯 Practical Usage Guide
- MCP Mode Usage
- ⌨️ CLI Usage
- 🌐 Smart Context Analysis and Supported AI Models
- 🎯 Smart Context Analysis
- Supported AI Models
- [📄 Review Result S
f334a6dfb67cOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add selvage -- None selvage==0.4.1
Trust audit
SAFEgrade B · trust 87/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (4 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (23)
.claude/skills/review/SKILL.md
.gitmessage
.pre-commit-config.yaml
.claude/agents/selvage-reviewer.md
prompt = pickle.load(f)
("../../../root/.ssh/id_rsa", "/tmp/repo", None, True),assert store.load_metadata('../../etc/passwd') is Noneassert not store._validate_context_id('../../etc/passwd')("../../etc/passwd", "/tmp/repo", None, True), # 심각한 path traversal("../../../root/.ssh/id_rsa", "/tmp/repo", None, True),("subdir/../../../outside.txt", "/tmp/repo", None, True),assets/data-convert-flow.png
assets/demo-en.gif
llm_eval/data_set/test_data.json
llm_eval/data_set/test_data_20250513_200023.json
llm_eval/data_set/test_data_20250515_190917.json
- **OpenRouter First Usage Approach**: Transitioned to OpenRouter First approach enabling access to all AI models with a single API key
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
f334a6dfb67cfull audit observations/trust-audit/mcp-server/selvage-lab__selvage.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | f334a6dfb67c | SAFE | B | 87 | first audit |
Questions
What is the Selvage MCP server?
An LLM-based code review MCP server with AST-powered smart context extraction
Is Selvage safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (87/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Selvage need?
It reads ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY and OPENROUTER_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Selvage run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as selvage.
How current is this page?
The grade is for one exact copy of the source (f334a6dfb67c), read on 2026-10-08. The repository is watched and re-audited when it changes.