プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

AI Quality Gate

作者:mustafacagriバージョン 1.1.0i★ –iパソコンで動く
レジストリ名io.github.mustafacagri/ai-quality-gate

インストール

概要

作者による説明(英語の原文)

🚀 Kill the Junior AI Era. 🤖 Level up AI code to automatically Principal standards. 🛡️ Quality Gate ✨

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール
  • 入力が必要なもの:SONAR_TOKEN

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: PROJECT_ROOT, SONAR_HOST_URL, SONAR_TOKEN, SONAR_PROJECT_KEY, ENABLE_I18N_RULES

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "ai-quality-gate": {
      "command": "npx",
      "args": [
        "-y",
        "ai-quality-gate"
      ],
      "env": {
        "PROJECT_ROOT": "your-value",
        "SONAR_HOST_URL": "your-value",
        "SONAR_TOKEN": "your-value",
        "SONAR_PROJECT_KEY": "your-value",
        "ENABLE_I18N_RULES": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add ai-quality-gate --env PROJECT_ROOT=your-value --env SONAR_HOST_URL=your-value --env SONAR_TOKEN=your-value --env SONAR_PROJECT_KEY=your-value --env ENABLE_I18N_RULES=your-value -- npx -y ai-quality-gate

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "ai-quality-gate": {
      "command": "npx",
      "args": [
        "-y",
        "ai-quality-gate"
      ],
      "env": {
        "PROJECT_ROOT": "your-value",
        "SONAR_HOST_URL": "your-value",
        "SONAR_TOKEN": "your-value",
        "SONAR_PROJECT_KEY": "your-value",
        "ENABLE_I18N_RULES": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "ai-quality-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ai-quality-gate"
      ],
      "env": {
        "PROJECT_ROOT": "your-value",
        "SONAR_HOST_URL": "your-value",
        "SONAR_TOKEN": "your-value",
        "SONAR_PROJECT_KEY": "your-value",
        "ENABLE_I18N_RULES": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • PROJECT_ROOT env
    Absolute path to the project root for analysis (auto-detected if omitted)
  • SONAR_HOST_URL env
    SonarQube server base URL (e.g., http://localhost:9000)
  • SONAR_TOKEN 秘密 env
    SonarQube authentication token
  • SONAR_PROJECT_KEY env
    SonarQube project key
  • ENABLE_I18N_RULES env
    Enable stricter JSX literal checks for i18n projects (true/false)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月10日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント mustafacagri で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの5620件のうち0%よりスターが多い
  • このカテゴリのほかの5620件のうち50%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5620件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

AI Quality Gateは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:SONAR_TOKEN

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.1.0)がレジストリに届いたのは33 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

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

作者:github広く使われている★ 3.4万7 日前更新

パソコンでもクラウドでも

Desktop Commander

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

作者:wonderwhy-er広く使われている↓ 71万/週★ 1万19 日前更新

パソコンで動く

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare広く使われている★ 444614 か月前更新

クラウドで動く✓ mcp.cloudflare.com

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

AI Quality Gate

MCP Server for AI code quality automation.


What It Does

AI writes code → calls quality_fix → Server fixes what it can → Reports remaining issues to AI.

Hybrid Approach:

  • Phase 1: ESLint + 627 rules + Prettier (~2-8s, always runs)
  • Phase 2: SonarQube Server (~30-60s, optional)

Important: ESLint vs Prettier

ToolSourceConfig
ESLintProject's config (if exists) or MCP's embedded.eslintrc.* / eslint.config.* / MCP embedded
PrettierProject's ownProject's prettier.config.mjs

ESLint rules are controlled by MCP for consistent quality gates.

Prettier uses project's config so formatting matches project preferences.

Phase 1 Rule Coverage:

PluginRulesDescription
SonarJS201Security, bugs, code smells
Unicorn127Modern JS best practices
ESLint Core108JavaScript fundamentals
TypeScript-ESLint99TypeScript-specific rules
RegExp60Regex best practices
Import11Import/export rules
Promise10Async/await best practices
Node.js (n)9Node.js specific rules
Unused Imports2Auto-remove unused imports
Total627

Installation

Prerequisites
  • Node.js 20.10+ or 21.1+ on your PATH (node -v).
  • Cursor, Antigravity, OpenCode (or another MCP-capable editor) with MCP enabled.

Project root is auto-detected when PROJECT_ROOT is omitted: the server walks up from the MCP process working directory until it finds package.json or tsconfig.json. Set PROJECT_ROOT in env only to analyze a different tree than the inferred root.


MCP configuration (Cursor)

Open Settings → Tools & MCP → Edit (user mcp.json). Add one server block; the examples below match .cursor/mcp.json.example (JSONC with comments — if your editor rejects comments, copy the JSON blocks below only).

Server name vs tool name: The key under mcpServers (e.g. "ai-quality-gate") is only the label for that connection in Cursor. The MCP tool your agent calls is always quality_fix — that name is fixed by this package and is separate from the server key and from ai-quality-gate.

A) Recommended: npx (no global install)

Always runs the published package; good for teams and CI-like setups.

{

"mcpServers": { "ai-quality-gate": { "command": "npx", "args": ["-y", "ai-quality-gate"] } } }

B) Optional: global npm install

After npm i -g ai-quality-gate, the ai-quality-gate binary is on your PATH:

{

"mcpServers": { "ai-quality-gate": { "command": "ai-quality-gate", "args": [] } } }

C) SonarQube (Phase 2)

Requires a running SonarQube instance, sonar-scanner available (see SonarQube Setup), and all three variables below. Phase 1 still runs first.

{

"mcpServers": { "ai-quality-gate": { "command": "npx", "args": ["-y", "ai-quality-gate"], "env": { "SONAR_HOST_URL": "http://localhost:9000", "SONAR_TOKEN": "your_sonar_token", "SONAR_PROJECT_KEY": "your_project_key" } } } }

D) Optional environment variables (any server)

Add an "env" object when you need overrides. Merge order for config is defaults → `.quality-gate.yaml` / `.quality-gate.json` → environment variables.

VariableWhen to set
QUALITY_GATE_CONFIGAbsolute path to a specific .quality-gate.yaml or .quality-gate.json (skips walking directories).
PROJECT_ROOTForce project root if auto-detection is wrong for your layout.
SONAR_HOST_URLSonarQube server URL (with Phase 2).
SONAR_TOKENSonarQube token (with Phase 2).
SONAR_PROJECT_KEYSonarQube project key (with Phase 2).
SONAR_SCANNER_PATHFull path to sonar-scanner if not on PATH.
PHASE1_TIMEOUTPhase 1 timeout (ms), default 30000.
PHASE2_TIMEOUTPhase 2 timeout (ms), default 300000.
ENABLE_I18N_RULEStrue / false — stricter JSX literal checks for i18n projects.

MCP configuration
Cursor, Antigravity, etc..
{

"mcpServers": { "ai-quality-gate": { "command": "npx", "args": ["-y", "ai-quality-gate"] } } }

(OpenCode)

Create or edit OpenCode config (typically ~/.config/opencode/opencode.json or project-level config):

{

"$schema": "https://opencode.ai/config.json", "mcp": { "ai-quality-gate": { "type": "local", "enabled": true, "command": ["npx", "-y", "ai-quality-gate"] } } }

Environment variables can be added under the server config if needed (see C) SonarQube (Phase 2) above).


Local development (this repository)

To dogfood or contribute:

  1. `yarn build` — generates dist/server.js.
  2. Point MCP at the built file (absolute paths):
{

"mcpServers": { "ai-quality-gate-dev": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/ai-quality-gate/dist/server.js"] } } }

  1. Reload MCP. Use env.PROJECT_ROOT only if the repo you analyze differs from the inferred root.

2. Add AI Rule

Settings → Rules and Commands → Add Rule:

After every code change, before telling the user "done",

AI must call the quality_fix MCP tool. This is mandatory.

3. Use It
AI writes code → calls quality_fix → Fixes errors → "Done ✅"

CLI: interactive config (--setup)

The interactive wizard creates or updates .quality-gate.yaml without hand-editing: it walks you through project root, optional SonarQube (host URL + project key; token is not saved to disk — use SONAR_TOKEN in your environment), which Phase 1 tools to enable (ESLint, curly-brace / arrow AST fixers, Prettier, JSON validator), timeouts, and i18n rules. The generated file includes a fixers: block you can adjust later.

After yarn build (or install from npm), run from the target project (or any path under it):

node dist/server.js --setup

PROJECT_ROOT is inferred when unset (see MCP configuration). Use the same entrypoint as the MCP server (node dist/server.js or npx ai-quality-gate); only the --setup flag switches to wizard mode. Answer prompts in the terminal; on success you get a ready-to-use config next to your project root.

Other CLI modes: --check (read-only Phase 1), --fix (default behavior when using CLI quality run), --phase1-only, --phase2-only — see docs/DEVELOPMENT.md.


Optional: SonarQube Server (Phase 2)

Configure Sonar env in MCP as in [C) SonarQube (Phase 2)](#c-sonarqube-phase-2) above, or copy from .cursor/mcp.json.example. You need `sonar-scanner` on your machine for analysis (see below).

SonarQube Setup
Docker (Recommended)
# Start SonarQube

docker run -d --name sonarqube -p 9000:9000 sonarqube:community

First login: admin/admin → change password

http://localhost:9000

Docker Compose
# docker-compose.yml

version: '3' services: sonarqube: image: sonarqube:community ports:

  • '9000:9000' volumes:
  • sonarqube_data:/opt/sonarqube/data
  • sonarqube_logs:/opt/sonarqube/logs
  • sonarqube_extensions:/opt/sonarqube/extensions

volumes: sonarqube_data: sonarqube_logs: sonarqube_extensions:

docker-compose up -d
Creating SonarQube Token
  1. http://localhost:9000 → Login (admin)
  2. My Account → Security → Generate Tokens
  3. Select token type: Global Analysis Token
  4. Copy token → use as SONAR_TOKEN
Installing sonar-scanner
PlatformMethodCommand
Windowsnpm (global)npm install -g sonarqube-scanner
WindowsChocolateychoco install sonar-scanner
macOSnpm (global)npm install -g sonarqube-scanner
macOSHomebrewbrew install sonar-scanner
Linuxnpm (global)npm install -g sonarqube-scanner
DockerContainerdocker run sonarsource/sonar-scanner-cli

For custom path: SONAR_SCANNER_PATH env var


Configuration

Optional files (discovered by walking up from the inferred project root — same algorithm as package.json / tsconfig.json — or from PROJECT_ROOT when set): `.quality-gate.yaml` (preferred) or `.quality-gate.json`. Same fields as environment variables (camelCase); you may nest Sonar settings under sonar: { hostUrl, token, projectKey, scannerPath }.

Merge order: defaults → config file → environment variables (ENV wins on conflicts).

Set `QUALITY_GATE_CONFIG` to an explicit path to skip discovery.

Custom rules (customRules)

Optional line-based regex checks on lintable files (Phase 1). Each match is reported as an issue with rule set to custom: (and included in quality_fix remaining). Example:

customRules:
  • id: no-console message: 'Console.log is not allowed' pattern: 'console\\.log\\(' severity: error
  • id: no-debugger message: 'Debugger statement found' pattern: 'debugger' severity: warning

Patterns use JavaScript RegExp source (escape backslashes as in YAML strings). An invalid pattern is skipped, and says so in warnings.

JSON validator & i18n locale files

When `fixers.jsonValidator` is enabled and you pass JSON paths that match locale patterns (for example locales/en.json / locales/tr.json), the tool compares keys across those files.

  • Syntax errors, invalid UTF-8 BOM, etc. → reported as issues and fail Phase 1 / quality_fix until fixed.
  • Missing or extra keys between locale files → collected as `i18nIssues` in the validator result and printed as warnings on stderr during Phase 1. They do not set passed: false and do not block the gate.

Treat i18nIssues as advisory unless you add your own CI check on top.


Environment Variables

All variables are optional unless you use Phase 2, which requires `SONAR_HOST_URL`, `SONAR_TOKEN`, and `SONAR_PROJECT_KEY` together.

| Variable | Description

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く