原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Selvage

作者:selvage-lab版本 0.4.1i★ –i在你的电脑上运行
注册名称io.github.selvage-lab/selvage

安装

概览

作者提供的说明(英文原文)

An LLM-based code review MCP server with AST-powered smart context extraction

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "selvage": {
      "command": "uvx",
      "args": [
        "selvage"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add selvage -- uvx selvage

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "selvage": {
      "command": "uvx",
      "args": [
        "selvage"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "selvage": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "selvage"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 selvage-lab 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 4906 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 4906 个服务器的 4% 更新
  • 基础检查结果等于或优于此分类中其他 4906 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Selvage 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.1)于9个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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 Storage Format
  • 🔧 Troubleshooting
  • 🤝 Contributing
  • 📜 License
  • 📋 Change Log
  • 📞 Contact and Community

✨ Key Features

  • 🤖 Multiple AI Model Support: Leverage the latest LLM models including OpenAI GPT-5, Anthropic Claude Sonnet-4, Google Gemini, and more
  • 🔍 Git Workflow Integration: Support for analyzing staged, unstaged, and changes between specific commits/branches
  • 🎯 Optimized Context Analysis: Tree-sitter based AST analysis automatically extracts the smallest code blocks containing changed lines along with their dependency statements, providing contextually optimized information for each situation
  • 🔄 Automatic Multi-turn Processing: Automatic prompt splitting when context limits are exceeded, supporting stable large-scale code reviews (Large Context Mode now auto-triggers once total tokens exceed 200k, even without provider errors)
  • 🤖 MCP Mode Support: Register as MCP mode in Cursor, Claude Code, etc., and request code reviews through natural language like "Review current changes"
  • 🔌 Claude Code Plugin: Install via marketplace with a single command — includes dedicated /review skill and selvage-reviewer agent for seamless integration
  • 🧠 Agent-Delegated Review (`get_review_context`): Returns structured review context (diff + Smart Context + system prompt) so host agents (Claude Code, Cursor, Antigravity, etc.) can perform code reviews with their own LLM — no API key required
  • 📖 Open Source: Freely use and modify under Apache-2.0 License

🚀 Quick Start

Common Setup
1. Installation

Recommended Method (using uv)

# Install uv (run once)

curl -LsSf https://astral.sh/uv/install.sh | sh

Install Selvage

uv tool install selvage

Alternative Method (using pipx)

# Install pipx (macOS)

brew install pipx

Install Selvage

pipx install selvage

Traditional Method (pip)

# ⚠️ May cause externally-managed-environment error on some systems

pip install selvage

macOS/Linux users: If you encounter errors with pip install, please use the uv or pipx methods above.

2. API Key Setup

Get an API key from OpenRouter and set it up:

export OPENROUTER_API_KEY="your_openrouter_api_key_here"
MCP Mode Usage (Recommended)

Register as MCP mode in Cursor, Claude Code, etc., to request code reviews through natural language.

Cursor Integration

Register in Cursor's MCP configuration file (path may vary depending on user environment):

Common path: ~/.cursor/mcp.json

// Method 1: Using environment variables (if already set)

{ "mcpServers": { "selvage": { "command": "uvx", "args": ["selvage", "mcp"] } } }

// Method 2: Direct specification { "mcpServers": { "selvage": { "command": "uvx", "args": ["selvage", "mcp"], "env": { "OPENROUTER_API_KEY": "your_openrouter_api_key_here" } } } }

Claude Code Integration
Method A: Plugin via Marketplace (Recommended)

Install the Selvage plugin from the marketplace to get the dedicated /review skill and selvage-reviewer agent:

# Step 1: Add Selvage marketplace

/plugin marketplace add selvage-lab/selvage

Step 2: Install the plugin

/plugin install selvage@selvage-lab-selvage

After installation, use the /review skill directly:

/review                      # Review unstaged changes

/review staged # Review staged changes /review branch main # Review against main branch /review commit abc1234 # Review from specific commit

💡 No API key required! The plugin uses get_review_context to leverage Claude Code's own LLM for code review, so no external API key is needed.

Method B: MCP Server Registration
# Method 1: Using environment variables (if already set)

claude mcp add selvage -- uvx selvage mcp

Method 2: Direct specification

claude mcp add selvage -e OPENROUTER_API_KEY=your_openrouter_api_key_here -- uvx selvage mcp

Usage

After restarting your IDE, request reviews from your Coding Assistant:

Please review current changes using selvage mcp

Review changes between current branch and main branch using claude-sonnet-4-thinking with selvage mcp

🎉 Done! Selvage will analyze the code, review it, and deliver results through your Coding Assistant.

CLI Mode Usage

For direct terminal usage:

selvage review --model claude-sonnet-4-thinking

💡 More Options: CLI Usage | Practical Usage Guide


🎯 Practical Usage Guide

MCP Mode Usage
Basic Usage
# Basic review request

Please review current changes using selvage mcp

Review staged changes

Review staged work using gpt-5-high with selvage mcp

Review against specific branch

Review current branch against main branch using selvage mcp

Review with automatic model selection

Review current branch against main branch using selvage mcp, automatically selecting appropriate model

Agent-Delegated Review (No API Key Required)

The get_review_context tool returns structured review context so host agents can perform code reviews with their own LLM — no Selvage API key needed.

# Request agent-delegated review context

Get review context for current changes using selvage mcp, then review the code

Agent-delegated review for staged changes

Get review context for staged changes using selvage mcp

Agent-delegated review against branch

Get review context comparing current branch to main using selvage mcp

💡 How it works: Selvage extracts diff + AST-based Smart Context + system prompt and returns it as structured context. The host agent (Claude Code, Cursor, Antigravity, etc.) then performs the review directly with its own LLM, without needing an external API key.

Advanced Workflows

Multi-model Comparison Review

Review staged work using both gpt-5-high and claude-sonnet-4-thinking with selvage mcp, then compare the results

Stepwise Code Improvement Workflow

1. Review current changes using claude-sonnet-4-thinking with selvage mcp
  1. Critically evaluate review feedback for validity against current codebase and set priorities
  2. Apply improvements sequentially based on established priorities

CI/CD Integration Scenarios

# Code quality verification before PR creation

Review changes against main branch using selvage mcp for code quality verification before PR creation

Final check before deployment

Perform comprehensive review of staged changes using selvage mcp for final check before deployment

⌨️ CLI Usage

Direct terminal usage method. While MCP mode is recommended, CLI is useful for scripts and CI/CD.

Configuring Selvage
# View all settings

selvage config list

Set default model

selvage config model

Set default language

selvage config language

Code Review
selvage review [OPTIONS]
Key Options
  • --repo-path : Git repository path (default: current directory)
  • --staged: Review only staged changes
  • --target-commit : Review changes from specific commit to HEAD (e.g., abc1234)
  • --target-branch : Review changes between current branch and specified branch (e.g., main)
  • --model : AI model to use (e.g., claude-sonnet-4-thinking)
  • --open-ui: Automatically launch UI after review completion
  • --no-print: Don't output review results to terminal (terminal output enabled by default)
  • --skip-cache: Perform new review without using cache
Usage Examples
# Review current working directory changes

selvage review

Final check before commit

selvage review --staged

Review specific files only

git add specific_files.py && selvage review --staged

Code review before sending PR

selvage review --target-branch develop

Quick and economical review for simple changes

selvage review --model gemini-2.5-flash

Review and then view detailed results in web UI

selvage review --target-branch main --open-ui

Git Workflow Integration
Team Collaboration Scenarios
# Code quality verification before Pull Request creation

selvage review --target-branch main --model claude-sonnet-4-thinking

Pre-analysis of changes for code reviewers

selvage review --target-branch develop --model claude-sonnet-4-thinking

Comprehensive review of all changes after specific commit

selvage review --target-commit a1b2c3d --model claude-sonnet-4-thinking

Development Stage Quality Management
# Quick feedback during development (before WIP commit)

selvage review --model gemini-2.5-flash

Final verification of staged changes (before commit)

selvage review --staged --model claude-sonnet-4-thinking

Emergency review before hotfix deployment

selvage review --target-branch main --model claude-sonnet-4-thinking

Large-scale Code Review
# Large codebases are automatically handled

selvage review --model claude-sonnet-4 # Usage is the same, multi-turn processing automatically applied after detection

Selvage automatically handles large code changes that exceed LLM model context limits. Once usage reaches roughly 200k tokens (tiktoken basis), Large Context Mode starts automatically, so just wait for it to complete.

Cost Optimization
# Use economical models for small changes

selvage review --model gemini-2.5-flash

Viewing Results

Review results are output directly to the terminal and automatically saved to files simultaneously.

For additional review management and re-examination, you can use the web UI:

# Manage all saved review results in web UI

selvage view

R

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx