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

Git Courer

โดย Alejandro-M-Pรุ่น 2.0.4i★ –i–
ชื่อใน registryio.github.Alejandro-M-P/git-courer

ติดตั้ง

ภาพรวม

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

Full git MCP server for LLM agents — 17 tools, AST annotator, auto-backups, real plumbing.

สามเสาของ PopNx MCP

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

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

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

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

ติดตั้ง

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

ก่อนติดตั้ง

ผู้ทำยังไม่ได้ใส่วิธีติดตั้งใน registry ให้ดู README ของผู้ทำด้านล่าง

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

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

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

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

  • ✓ ผ่าน

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

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

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

    ยังมีคนดูแล

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

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

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

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

  • – ไม่เกี่ยว

    endpoint ตอบ

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

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

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

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

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

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

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

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

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

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

Git Courer ปลอดภัยไหม?

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

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

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

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

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

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

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

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

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code

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

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

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

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

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

GitHub

โดย github

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

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

Desktop Commander

โดย wonderwhy-er

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

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

Cloudflare MCP

โดย cloudflare

Cloudflare MCP servers

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

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Issues & Bugs: @blak0p/git-courer/issues · Discussions: @blak0p/git-courer/discussions

DocDescription
WebVisit the official website
RoadmapWhat's coming next and the strategic vision
ArchitectureCodebase structure, patterns, and how to add features
TroubleshootingFix: Ollama not running, MCP not detected, permission errors
MCP ClientsAll 5 supported CLI agents, config formats, manual setup
Config OptionsAll ~/.config/git-courer/config.yaml and .git/git-courer/config.json settings
CommandsComplete reference for all 13 MCP tools
ContributingSetup, running tests, and how to collaborate

git-courer

Git, but agents can't break it.

An MCP server that gives AI agents a full, safe interface to Git — not just commits, the whole surface: status, diff, branch, stash, history, sync. Every mutation backs itself up automatically. Nothing routes through Bash, so there's no git reset --hard happening behind your back.

13 tools. Structured JSON in, structured JSON out. No pagers, no text parsing, no guessing what the agent actually did to your repo.


Install

curl -fsSL https://raw.githubusercontent.com/blak0p/git-courer/main/scripts/install.sh | sh
go install github.com/blak0p/git-courer@latest

Homebrew:

brew install blak0p/tap/git-courer
Quick start
git-courer mcp setup     # auto-configures your agent (OpenCode, Claude Code, Codex, pi, Antigravity)

Restart your agent, then ask it to run status on any repo. If it comes back with structured JSON instead of raw git status output, you're connected.

Diagnostics & lifecycle
git-courer doctor              # read-only health report for every detected MCP client

git-courer hook-check "git status" # classify a shell command (agent hook; never denies) git-courer init # TUI wizard to create/update project config git-courer version --predict # predict next release tag from conventional commits git-courer remove # remove project-level config (keeps the binary) git-courer update # self-update to the latest release + reconfigure MCP

doctor reports per client: config path, MCP configured, prompt block injected, hooks installed (yes/no/partial), and Claude inline hooks (Claude Code only).


How an agent works with git-courer

Agent receives a task

↓ session start → creates isolated worktree + branch ↓ All MCP tools (diff, status, commit, branch...) automatically redirect to that worktree ↓ commit PREVIEW → Go parses AST + dependency graph classifies type (feat/fix/breaking...) ↓ commit APPLY → two modes depending on config:

┌─ WITH LLM ──────────────────────────────┐ │ Local LLM writes the WHY/WHAT message │ │ Go decides the type (agent can │ │ override with type= if wrong) │ └─────────────────────────────────────────┘

┌─ WITHOUT LLM (toggle off) ─────────────┐ │ Perfect for modest laptops, no GPU │ │ Agent writes the message directly │ │ Preview, apply, and type override │ │ still work │ └─────────────────────────────────────────┘

↓ Security checks → auto backup → commit ↓ "✓ fix: refactor session finish workflow to stop automatic merging

WHY The previous implementation automatically attempted to merge session branches into the base branch, which forced a specific integration strategy and required managing two different git repositories.

WHAT

  • Removed automated merge logic and the dependency on a second Git instance (mainGit) in the session handler and workflow.
  • Updated cleanup to remove worktrees while leaving session branches alive for manual integration.
  • Switched to PreviewLight validation to prevent data loss from uncommitted changes.
  • Updated FinishResult to include BranchAlive status."

session finish → closes session + cleans up worktree


LLM Toggle

Modest laptop with no GPU? Flip the toggle and git-courer runs fully without an LLM. The agent writes messages directly, Go still decides the type.

llm:

enabled: false

Without LLM: commit with message, preview and type override work. Release is not available. Everything else (status, diff, branch, session, backup) works normally.


Why it's different

1. Commit type decided by Go, not the LLM

AST analysis + deterministic rules. The LLM only writes the message. If the type is wrong, the agent overrides it with type=.

2. Dependency graph

Before committing, it maps what your changes affect across the entire codebase. Real impact, not just "you touched 3 files".

3. Isolated worktrees

Each agent gets its own directory and branch. No stepping on each other. session start creates, session finish closes and cleans up.

4. Commits as LLM context

Structured summary with WHY/WHAT. Any LLM consumes it directly. Fewer tokens, fewer hallucinations.

5. Automatic backup

Every write operation backs up before executing. One command undoes anything.

6. Releases that survive squashes

Commits are stored in refs/courer/*. Squash, rebase, force push — your changelog doesn't disappear.


What a release looks like

❯ git-courer release

Tag? [v3.0.0]: Add guidance for changelog generation? (y/N): n

📦 Release Preview

Tag: v3.0.0 Version Bump: major

--- Changelog --- ...

Apply? (y/N/r/e):

This is the changelog it writes:

v2.8.0 — This update introduces an advanced session management system using git worktrees to enable parallel workflows and improves the robustness of agent execution rules.

Session Management and Isolation

- Implemented isolated sessions using git worktrees to prevent agents from interfering with each other; includes full lifecycle with listing, selection, and automatic cleanup via slugified identifiers.

- Integrated sessionGit wrapper into the MCP server for automatic directory redirection.

Developer Experience and Configuration

- Refined golden rules, now prohibiting work in the repository root to enforce strict workspace isolation.

- Automatic injection of prompt rule blocks into client configuration files.

- Fixed TUI MCP setup bug where clients were not configured correctly.

System Robustness and Refactoring

- Refactored agent instruction structure, removing unnecessary tool maps.

- Improved file cleanup using robust base names to prevent errors with complex paths.


Workflows

Session

session start → isolated worktree + branch. All MCP tools redirect there. session finish closes and cleans up. session discard throws it away.

Commit

PREVIEW → review proposed commits. APPLY → executes them. Go splits files by dependency graph into atomic commits.

PR Review

pr-review → tests + conflicts + diff stats + divergence. All in one call.

Release

git-courer release → interactive. Pick the tag, guide the LLM, preview the changelog, confirm. Commits live in refs/courer/* — they survive squashes.

Undo

backup RESTORE → undoes any operation.


Tools (13)

ToolSubcommandsWhat it does
status—Full repo state: branch, changes, conflicts, stash, etc.
diff—Diff with AST tags (NEW_FUNC, MOD_SIG, DEPS, DEL)
commitPREVIEW → APPLY3-phase LLM pipeline: preview, review, apply
branchCREATE / SWITCH / DELETE / RENAME / LISTBranch management
stageRM / RESTORE / CLEANStaging area control
stashSAVE / POP / SHOWStash management
historyLOG / REFLOG / BLAMEHistory inspection
syncPUSH / PULL / FETCHRemote sync
pr-review—Tests + conflicts + diff stats + divergence in one call
backupRESTORE / LISTUndo amend/merge/rebase
rewriteAMEND / REVERT / SOFT / HARDHistory rewriting
integrateMERGE / UPDATE / PICK / CONTINUE / ABORTBranch integration
sessionstart / finish / status / select / discardIsolated worktree lifecycle

Full reference with examples: docs/commands.md.


Supported clients

ToolAuto-configured
OpenCode✓
Claude Code✓
Codex✓
pi✓
Antigravity✓

git-courer mcp setup configures all at once. Manual setup and config formats: docs/mcp-clients.md.


Hooks & golden rules

mcp setup does more than register the MCP server — it also injects guardrails so agents route git operations through git-courer instead of raw Bash.

Golden rules injection. A / block is injected (and kept up to date) in each client's instructions file (AGENTS.md for OpenCode, CLAUDE.md for Claude Code, GEMINI.md for Antigravity). The block encodes the golden rules: check status before mutating, run diff + review before a PR, always session start first.

Hooks. Clients that support shell hooks get entries wired to git-courer subcommands:

EventMatcherCommandFires when
PreToolUsegit *git-courer hook-checkBefore any Bash git ... run
SessionStart—git-courer session-start-hookAgent session opens
SubagentStart—git-courer subagent-start-hookA sub-agent starts
PreInvocation—git-courer pre-invocation-hookBefore each model call (Antigravity)

hook-check classifies the command and emits additionalContext suggesting the matching git-courer MCP tool — it never denies. The session/subagent/pre-invocation hooks inject the golden rules as additionalContext. Claude Code uses inline settings.json hooks (UserPromptSubmit instead of PreInvocation); Codex uses a separate hooks.json; Antigravity uses a separate hooks.json with a run_command matcher and only 2 events. Full reference: docs/hooks.md.

OpenCode policy. For OpenCode (which has no shell hooks), mcp setup merges into opencode.json:

  • permission.bash["git *"] = "ask" — OpenCode prompts the user before any git Bash command, so the agent is nudged toward the MCP tool.
  • instructions array includes the AGENTS.md path (legacy GIT_COURER.md entries are removed). The merge is idempotent; a .bak backup is written before any change.

Run git-courer doctor to verify all of the above per client.


FAQ

Who decides the commit type? Go. The LLM only writes the message. The agent can override it.

Do I need a GPU or local LLM? No. Flip the toggl

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

ถาม PopNx