ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Selvage

โดย selvage-labรุ่น 0.4.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.selvage-lab/selvage

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

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

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เครื่องมือนักพัฒนา

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

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

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add selvage -- uvx selvage

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

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

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

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

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub selvage-lab ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi

  • ดาวมากกว่า 0% ของอีก 1395 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 6% ของอีก 1395 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1395 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Selvage ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.1) เข้า registry 9 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

GitHub

โดย github

server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้

บนเครื่องหรือคลาวด์★ 34,245MITอัปเดต 4 วันที่ผ่านมา
ติดตั้ง

Desktop Commander

โดย wonderwhy-er

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

รันบนเครื่อง★ 10,225MITอัปเดต 16 วันที่ผ่านมา
ติดตั้ง

Cloudflare MCP

โดย cloudflare

Cloudflare MCP servers

รันบนคลาวด์★ 4,446Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx