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

whygit

作者:Srikarmk版本 0.1.2i★ –i在你的电脑上运行
注册名称io.github.Srikarmk/whygit

安装

概览

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

Read-only Git explainer: what state a repo is in, what an error means, and the exact fix.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

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

你需要

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

你用的是哪个应用?

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

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

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

在终端中运行这条命令

claude mcp add whygit -- uvx whygit mcp

在 Cursor 中打开

或者自己复制设置

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

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

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

在 VS Code 中打开

或者自己复制设置

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

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

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

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

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

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

whygit 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.2)于17天前进入注册中心。

哪些应用可以使用它?

支持 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,245MIT3天前更新
安装

Desktop Commander

作者:wonderwhy-er

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

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

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

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

作者的 README

打开 README

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

whygit

What just happened to my Git repository, and how do I fix it?

whygit looks at a Git repository and tells you, in plain English, what state it is in and which commands will get you out of it: a merge conflict, a rebase stopped halfway, a detached HEAD, a rejected push, a login GitHub won't accept, a 120 MB CSV that GitHub will refuse. Paste it an error message and it explains that too.

It is written for people meeting Git for the first time. Git's own messages are accurate but hard to read; whygit turns them into a short explanation and the exact fix.

It only ever reads your repository. It never runs the fixes it suggests, so you stay in control and learn the commands as you go.

There are two ways to use it, built on the same engine:

  • On the command line, with no AI tools involved: whygit.
  • As an MCP server, so an assistant such as Claude Code, Claude Desktop or Cursor gets a reliable diagnosis instead of guessing from git status.

Install

whygit needs Python 3.10 or newer and Git. Pick one:

uv tool install whygit     # with uv (https://docs.astral.sh/uv/)

pipx install whygit # with pipx uvx whygit # run once without installing

This works the same on macOS, Windows and Linux.

Use it from the terminal

Run it inside your project folder:

whygit                    # what's wrong here, most urgent first

whygit status # a plain summary: branch, upstream, what's changed whygit explain "fatal: refusing to merge unrelated histories" git push 2>&1 | whygit explain -

Options: --path (or -C) to look at another folder, --json for machine-readable output, --no-color to turn off colour. Colour is only used in a real terminal and never when NO_COLOR is set.

Exit codes: 0 nothing blocking, 1 something blocking was found, 2 bad usage (for example the folder does not exist), 3 explain did not recognise the message.

Example
$ whygit

whygit: /Users/sam/ds3500/hw2 (branch main)

[BLOCKING] Merge in progress with conflicts in 1 file Git tried to combine two lines of work, but both changed the same part of these files, so it stopped and is waiting for you to choose what the result should be. Nothing is lost while you decide. Conflicted files:

  • analysis.py (both changed) How to fix: Finish the merge:
  1. Open each file and find the blocks between <<<<<<< and >>>>>>>. The part above ======= is one version, the part below is the other. Keep what you want, and delete the three marker lines.
  2. git add analysis.py Marks the files as resolved
  3. git commit --no-edit Records the merge and finishes it Or cancel the merge:
  4. git merge --abort Puts everything back the way it was before the merge started Learn more: https://git-scm.com/docs/git-merge#_how_to_resolve_conflicts

1 blocking. whygit never runs these commands for you; copy the ones you want.

Commands that can lose work (git restore, git rebase --skip, git push --force-with-lease and so on) are always marked with a warning, and a safer option is listed first when one exists.

Use it with an AI assistant (MCP)

whygit mcp runs a Model Context Protocol server over stdio with three read-only tools:

ToolUse it whenReturns
diagnose_repo(path=".")something seems stuck or brokenevery problem found, most urgent first, with explanation and fix
explain_git_error(error_text, path=None)a git command printed an errorwhat the error means and the fix, using the repository's state if path is given
explain_state(path=".")you want a neutral summarybranch, upstream, ahead/behind, remotes, staged and changed files, operations in progress

Results are small JSON objects. Pass an absolute path: relative paths resolve against the server's working directory, which for desktop apps is usually not your project. ~ works.

Claude Code
claude mcp add --scope user whygit -- uvx whygit mcp

--scope user makes it available in every project; leave it out to add it to the current project only. Check it with claude mcp list.

Claude Desktop

Open Settings > Developer > Edit Config, and add whygit to claude_desktop_config.json (on macOS ~/Library/Application Support/Claude/, on Windows %APPDATA%\Claude\):

{

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

Restart Claude Desktop. If it can't find uvx, use the full path that which uvx (macOS) or where uvx (Windows) prints as the command.

Cursor

Add the same block to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in a project:

{

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

If you installed whygit with uv tool install or pipx, you can use "command": "whygit" with "args": ["mcp"] instead.

What it recognises

Repository states: merge conflicts (and a merge that is resolved but not committed, including leftover <<<<<<< markers), a rebase stopped on a conflict or an edit, cherry-pick, revert, git am and bisect in progress, detached HEAD (and commits that no branch points to), diverged / behind / ahead of the upstream, no upstream yet (the first git push -u), no remote, upstream branch deleted, no commits yet, not a repository (including being one folder too high, and your home folder), a home folder that was accidentally turned into a repository, nested repositories (common with downloaded starter code), files over GitHub's 100 MB limit (and over 50 MB) staged or in unpushed commits, files that usually hold secrets (.env, id_rsa, *.pem, kaggle.json, credentials JSON), notebooks with large saved outputs, Jupyter notebook conflicts, missing user.name / user.email, a leftover index.lock, and folders Git refuses because of "dubious ownership".

Error messages: rejected pushes, "You have divergent branches", "refusing to merge unrelated histories", GitHub login failures (passwords no longer work; it explains tokens, SSH and gh auth login, and never asks for your token), Permission denied (publickey), repository not found, 403, "Your local changes would be overwritten", untracked files in the way, "not a git repository", "src refspec main does not match any", "pathspec did not match", "remote origin already exists", missing upstream, "couldn't find remote ref", GitHub's large-file rejection (GH001), "detected dubious ownership", "Please tell me who you are", index.lock exists, line-ending warnings, network errors, and more. If it doesn't recognise a message, it says so and shows what it can see in the repository instead.

The read-only promise

whygit never changes your repository, and this is enforced in code rather than left to good intentions:

  • Every Git command goes through a single function that only accepts read-only subcommands (status, rev-parse, for-each-ref, rev-list, diff, log, ls-files, cat-file, config --get, remote -v, ...) and refuses anything else, including the writing forms of config, remote and symbolic-ref.
  • It sets GIT_OPTIONAL_LOCKS=0, so even git status doesn't refresh the index, and turns off external diff programs and the fsmonitor hook.
  • It never runs git fetch. Ahead/behind counts are "as of your last fetch", and whygit tells you to run git fetch yourself when that matters.
  • The test suite builds each state in a real repository, snapshots every file under .git (names, timestamps and contents) before and after diagnosing, and checks nothing changed. It also checks that no other module in the package can start a process or write a file.

Credentials are never printed: a remote address like https://name:token@github.com/... is shown as https://***@github.com/..., in every output.

Privacy

whygit collects nothing and makes no network calls. It reads your repository on your own computer and prints the result. That's all.

Licence

MIT. Copyright (c) 2026 Kameswara Sai Srikar Manda.

问 PopNx