プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

PatchPilot MCP

作者:ahmedsaeed1-engバージョン 0.4.2i★ 1iパソコンで動くリポジトリ ↗

インストール方法

できること

Incremental, local review of supplied diffs and source, with syntax and maintainability findings.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ その他

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気4/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア16/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

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

ひとことで AI にインストールしてもらう

PatchPilot MCP をインストールして。https://mcp.popnx.com/i/ahmedsaeed1-eng-patchpilot-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月28日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server PatchPilot MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "patchpilot": { "command": "uvx", "args": [ "patchpilot-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、PatchPilot MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "patchpilot": {
          "command": "uvx",
          "args": [
            "patchpilot-mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    PatchPilot MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が PatchPilot MCP を使っていると言うか、回答に PatchPilot MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ PatchPilot MCP につなげません

PatchPilot MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · PatchPilot MCP につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · その他 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server PatchPilot MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user patchpilot -- uvx patchpilot-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、PatchPilot MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user patchpilot -- uvx patchpilot-mcp
  4. Claude Code で /mcp と入力

    PatchPilot MCP が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    PatchPilot MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が PatchPilot MCP を使っていると言うか、回答に PatchPilot MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server PatchPilot MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "patchpilot": { "command": "uvx", "args": [ "patchpilot-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、PatchPilot MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    PatchPilot MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が PatchPilot MCP を使っていると言うか、回答に PatchPilot MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server PatchPilot MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "patchpilot": { "type": "stdio", "command": "uvx", "args": [ "patchpilot-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、PatchPilot MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    PatchPilot MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が PatchPilot MCP を使っていると言うか、回答に PatchPilot MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?PatchPilot MCP を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user patchpilot -- uvx patchpilot-mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

{
  "servers": {
    "patchpilot": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "patchpilot-mcp"
      ]
    }
  }
}

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

ひと目でわかる

レジストリ名
io.github.ahmedsaeed1-eng/patchpilot-mcp
週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.4.2
カテゴリi
その他
レジストリ公開日i
2026年11月28日
コードの最終更新i
2026年11月28日
作者
ahmedsaeed1-eng
パッケージ
pypi: patchpilot-mcp
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

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

基本チェックi

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

  • ✓ 合格

    作者とリポジトリが一致

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

  • ✓ 合格

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

    コードの最終更新:今日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

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

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

  • – 対象外

    OAuthでサインイン

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

  • … 未チェック

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

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

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ahmedsaeed1-eng-patchpilot-mcp.svg)](https://mcp.popnx.com/en/servers/ahmedsaeed1-eng-patchpilot-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

その他のほかのサーバーとの比較i

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

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

よくある質問

PatchPilot MCPは安全ですか?

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

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

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

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

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

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

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

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

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

代わりに使えるものは?

同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

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

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73広く使われている★ 9.1万12 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

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

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer広く使われている★ 2.4万 リポジトリ全体のスター39 日前更新

すぐ接続できる(URL あり)ツール 2 個 · 軽め✓ 提供元 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI成長中★ 582314 か月前更新

すぐ接続できる(URL あり) · キーが必要リポジトリはアーカイブ済み✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

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

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · jitsu.com
似たものと比べる
これ
PatchPilot MCP
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック3/34/44/44/41/44/4
ライセンスMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

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

PatchPilot MCP

A focused review loop, not a fresh repository scan.

PatchPilot helps coding agents and developers inspect *explicitly supplied changes* after an edit. It extracts changed line locations, highlights ordinary Python correctness and maintainability issues, strict JSON syntax and duplicate object keys, JavaScript/JSX/TypeScript/TSX grammar and conservative maintainability diagnostics, Go/Java/C#/Dart grammar diagnostics, tracks a change budget and guides targeted testing. A caller-retained manifest allows repeated reviews to skip unchanged, previously reviewed source. It does not execute project code, edit files, inspect the workspace, perform vulnerability discovery or contact external services. It can summarize metadata from externally generated SARIF reports without executing the external tools.

Review contract: your agent supplies the diff and the affected source, PatchPilot returns observations and next actions. The agent decides what to fix and runs the relevant project tests.

Quick start (3 steps)

1. Install the published package in your Python 3.10+ environment:

python -m pip install patchpilot-mcp==0.4.2

Alternatively, download the exact v0.4.2 GitHub release and install from source.

2. Connect your coding assistant (Codex example):

codex mcp add patchpilot -- patchpilot-mcp

codex mcp list

3. Review your current edit in the host: select review_changed, provide the unified diff and complete affected source, then address observations and run focused project tests. For a manual local trial from the source checkout:

python -m patchpilot changed < examples/changed.json
Four core MCP tools
ToolPurpose
review_diffMap changed lines, budget and test targets.
review_changedVerify post-edit source against the diff; separate changed and outside-line observations.
review_sourceReview explicit source, choosing language and optional policy.
review_snapshotReuse caller-retained manifest and review only changed inputs.

Other tools are optional advanced interfaces: review_python, review_json, review_javascript (specialized compatibility tools), compare_call_signature, compact_report, suggest_formatting_patch, export_sarif, and import_external_sarif. Full arguments below.

The demo shows actual v0.4.1 output; try changed source and compact report. The benchmark slide is labeled v0.4.0 historical evidence.

Use the same changed scope after each edit; PatchPilot cannot observe your editor or execute project tests. The host supplies inputs explicitly.

Additional MCP host configuration

The package includes the official MCP Python SDK and static grammar dependencies.

If the entry point is not available on your PATH, configure the absolute path to the Python executable in your environment and use the module invocation.

Codex MCP configuration:

[mcp_servers.patchpilot]

command = "/absolute/path/to/python" args = ["-m", "patchpilot.server"]

Claude Desktop MCP configuration (use the same installed Python environment):

{

"mcpServers": { "patchpilot": { "command": "/absolute/path/to/python", "args": ["-m", "patchpilot.server"] } } }

Restart or reconnect the host if required. All twelve tools use stdio and expose structured JSON results.

Quick start: explicit CLI

From the checkout, Python/JSON/diff operations need only the Python standard library; Static grammar checks require the listed static parser dependencies. The caller supplies text via stdin.

python -m patchpilot diff < examples/inventory.diff

python -m patchpilot python --path inventory.py --complete-module < inventory.py python -m patchpilot json < examples/settings.json python -m patchpilot snapshot < examples/snapshot.json python -m patchpilot javascript --language typescript --path examples/sample.ts < examples/sample.ts python -m patchpilot sarif < report.json

Replace the illustrative filename with an actual affected source file. The tool itself never opens a path; redirection is performed by the calling shell. You can also install the project and call patchpilot instead of python -m patchpilot.

For a caller-controlled Git workflow, supply the particular staged diff:

git diff --cached --no-color --no-ext-diff --no-textconv | python -m patchpilot diff

If no staged changes exist, the CLI reports NO_INPUT, syntax_ok: null, and exit 3 (no review performed). The optional manual pre-commit wrapper checks for an empty staged diff first and treats that intentional no-op as success. The tool never invokes Git; that command is a separate explicit action by the caller. CLI output is JSON on stdout. Exit code 0 means there is no detected error-level finding (warnings may still exist), 1 means an error-level finding (or signature mismatch), 2 means malformed/rejected input, and 3 means missing input or incomplete review coverage without a detected error, including finding caps. Compact, external import, and formatting print projections without an error-level gate.

Empty input and encoding

Direct CLI input is decoded as strict UTF-8. In v0.4.2 invalid bytes return error_code: INPUT_ENCODING, the zero-based byte_offset, status 2 and empty stdout; they are never replaced. The prior v0.4.1 release already reports the human-readable encoding error and status 2, but not the two additional fields. Direct empty stdin and empty diff/Python-fragment/JSON/JS/source requests without explicit complete-file intent return NO_INPUT with syntax_ok: null and unknown coverage. An intentional empty complete file can be identified with review_source (complete: true), an explicit snapshot/changed-file entry, or Python CLI --complete-module. An empty full Python/JS file may be valid; a full empty JSON document is invalid. Nonempty whitespace-only source is still actual supplied text, not missing input.

Byte-exact test (Windows, macOS, Linux). Avoid piping through a text shell: some PowerShell/terminal paths may decode and re-encode bytes before the CLI receives them. Use the interpreter itself to hand off raw bytes:

python -c "import subprocess,sys; p=subprocess.run([sys.executable,'-m','patchpilot','python'],input=bytes([120,61,255])); print(p.returncode)"

The raw FF byte is not UTF-8; expect INPUT_ENCODING, zero-based offset 2, and exit 2. If a caller already substituted Unicode U+FFFD (replacement character), the received bytes are valid UTF-8 (EF BF BD), so the Python parser can correctly report PYTHON_SYNTAX and exit 1. The tool cannot recover discarded bytes. MCP source arguments are strings, not raw byte streams. Unpaired surrogate text is rejected, not silently repaired; a raw byte offset is unavailable in that case.

All direct source parsers count omitted findings; review_source reports checked_incomplete_findings when output truncation occurs. Snapshot and changed reports carry omitted_source_findings as a separately identified unclassified subset of aggregate omissions; no complete replacement stamp is issued for a truncated source. Smaller explicit scopes are needed to recover every observation.

What the review reports

FindingSeverityEvidence
NO_INPUTwarningfact: no source content supplied; no syntax verdict
PYTHON_SYNTAXerrorfact about supplied text in isolation
JS_TS_SYNTAXerrorselected static grammar reports a missing/error node
MUTABLE_DEFAULTwarningheuristic: literal mutable function default
BARE_EXCEPTwarningheuristic: broad exception handler
BUILTIN_SHADOWINGinfoheuristic: binding shadows a builtin name
POSSIBLY_UNUSED_LOCALinfoheuristic: no lexical reference in supplied function
JSON_SYNTAXerrorgrammar error in supplied JSON text
JSON_DUPLICATE_KEYwarningrepeated decoded key in one JSON object
DUPLICATE_LITERAL_KEYwarningfact: repeated constant dict key
CHANGE_BUDGETwarningfact: changed lines or files exceed selected budget
TRAILING_WHITESPACEinfofact about the added line; removal may be inappropriate
UNREACHABLE_STATEMENTwarningheuristic: direct statement after unconditional terminator
DUPLICATE_DEFINITIONwarningheuristic: repeated sibling definition
BRANCH_COMPLEXITYwarningheuristic: branch score meets or exceeds threshold
POSSIBLY_UNUSED_IMPORTinfoheuristic: no explicit read in complete supplied module
NO_TEST_PATHinfoheuristic: common test-path naming conventions

Each MCP/CLI finding contains id, code, severity, evidence, path, line, message and recommendation. JSON findings and repeated Python literal keys also include a one-based Unicode-character column. IDs deduplicate equal observations and are stable only when label, code, position and message remain equal. They are not guaranteed across line moves. A null line means the observation applies to the diff as a whole. Python checks never execute the submitted source: AST parsing and syntax compilation are used only to validate the supplied text; compiled objects are discarded.

The example diff reports two changed files, four additions, one deletion and churn of five. Its test plan points to new lines in inventory.py and tests/test_inventory.py.

Tools

review_diff
ArgumentMeaningDefault / range
diffUnified diff text (required)text
change_budgetCombined additions and removals300 / 1–10000
file_budgetNumber of file sections10 / 1–100

Returns counts, per-file added and removed line coordinates, common test paths, focused review suggestions, and budget status. The review effort label describes change size only, not security or a correctness pass. Git rename metadata, quoted UTF-8 paths with C-style escaping, file addition/deletion and mode-only changes are parsed. Each file now includes change_kind, old_mode and new_mode. Binary/copy/combined diffs remain unsupported.

review_python
ArgumentMeaningDefault / range
sourcePython text (required)text
pathDisplay label, not a file path to opensnippet.py
start_lineFirst original source line represented in snippet1 / 1–100000000

| complexity_threshol

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