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

repoward

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

安装

概览

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

GitHub MCP server that blocks private-to-public leaks by agents, with approvals and audit.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward",
        "serve"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add repoward --env GITHUB_TOKEN=your-value -- uvx repoward serve

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward",
        "serve"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "repoward": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "repoward",
        "serve"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • GITHUB_TOKEN 机密 必填 env
    Fine-grained personal access token limited to the repositories in your policy.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

repoward 安全吗?

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

它需要哪些密钥或代码?

你需要填写:GITHUB_TOKEN

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

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

作者的 README

打开 README

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

repoward

A GitHub MCP server that stops AI agents acting on what an attacker's issue told them to do.

Status: alpha. It has not had an independent security review. Read

the threat model, especially the part about where it runs.

The problem

An agent with GitHub access can read a malicious public issue, read a private repository, and post the contents in a public pull request. Each call looks allowed on its own, so per-tool permissions do not stop the sequence. This is the attack Invariant Labs published against agents using GitHub's MCP server, and repoward's test suite replays it against real repositories.

Flow guard

Before every write, repoward checks what this agent has already read, using facts from GitHub:

If the agent has readThen
Anything from a private repositoryWrites to public repositories are denied
An issue, pull request or comment from an author outside OWNER, MEMBER and COLLABORATOR, or a job logEach write needs human approval

This does not depend on the model noticing an attack or on scanning text, so rewording or encoding the data does not get around it. The state survives restarts, and no tool can clear it. A person can:

uvx repoward flow status

uvx repoward flow reset

What it does not do:

  • It only sees this server's tools. A shell, a browser or another MCP server is still a way out, so it protects agents whose GitHub access and outbound routes are limited to this server.
  • Data can stay in an agent's context after the window (60 minutes by default) ends. Restart a long-running agent to clear its context.
  • Reading one private repository and writing to another private repository is allowed, unless you set single_repo: true.
  • Repository files and code search results do not count as untrusted input, because they were merged by someone with write access.
  • author_association is a coarse signal, and a compromised trusted account counts as trusted.
  • Maintainers of public repositories will see more approval requests. That is the cost of the default, and trusted_associations is configurable.

Features

  • Policy: default-deny YAML with roles, repository allowlists and path denylists. See policy.example.yaml.
  • Single guarded path: every tool attempt, including unknown tools and invalid arguments, passes through one pipeline and is logged.
  • Audit log: a hash-chained record of every decision, with optional HMAC and checkpoints.
  • Rate limits: per principal and per tool.
  • Read tools: github_list_issues, github_get_issue, github_search_code, github_get_file, ci_get_status and ci_get_job_logs.
  • Write tools: github_create_branch, github_commit_files, github_create_pull_request and github_comment. Writes only reach branches with the configured prefix (agent/ by default), pull requests are draft only by default, commit sizes are limited, nothing is forced or retried, and text holding a recognizable credential is refused.
  • Dangerous tools: github_merge_pull_request and github_delete_branch need human approval. An approval covers one exact call at one exact commit, works once and expires. Merging is off until a policy turns it on.
  • GitHub App tokens (optional): each call gets a short-lived token limited to one repository and only the permissions that tool needs, and GitHub enforces those limits itself.
  • Pull request review as approval (optional): a merge can be approved by a real GitHub review of the exact commit.
  • Pull request receipts (optional): a commit status summarizing how the agent's run has gone.
  • Policy replay: see which past decisions a policy edit would change before you deploy it.
  • Untrusted content handling: text from GitHub users comes back wrapped in a tag with a random id per response, after invisible characters, hidden HTML comments and images are removed and secrets are redacted. This is a mitigation, not a guarantee: a model can still be fooled, which is why the rules above are enforced outside the model.

Who it is for

Agents whose only route to GitHub is this server, such as CI bots and hosted agents. An agent with shell access can run git or read local credentials directly, so this server is not a security boundary for it.

Install

Requires uv. Create a starter policy, which also prints a client config to paste:

uvx repoward init --repo your-org/your-repo

The starter policy gives the server read-only tools. Add --role contributor for write tools. Files live in ~/.repoward, or wherever REPOWARD_HOME points. An existing policy is never overwritten.

Run this first, because the server will not start without a policy. Then add it to your MCP client, and use a token set up as described in GitHub token. Avoid committing a config that holds a real token.

Claude Code

claude mcp add --env GITHUB_TOKEN=<your-token> --transport stdio repoward -- uvx repoward serve

Claude Desktop

In claude_desktop_config.json, under Settings > Developer > Edit Config:

{

"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": " " } } } }

Cursor

In ~/.cursor/mcp.json, reading the token from your environment:

{

"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "${env:GITHUB_TOKEN}" } } } }

VS Code

In .vscode/mcp.json or your user profile's mcp.json, which prompts for the token once:

{

"inputs": [ { "type": "promptString", "id": "github-token", "description": "GitHub token", "password": true } ], "servers": { "repoward": { "type": "stdio", "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "${input:github-token}" } } } }

Codex

In ~/.codex/config.toml, forwarding the token from your environment:

[mcp_servers.repoward]

command = "uvx" args = ["repoward", "serve"] env_vars = ["GITHUB_TOKEN"]

Gemini CLI

In ~/.gemini/settings.json, reading the token from your environment:

{

"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "$GITHUB_TOKEN" } } } }

OpenCode

In opencode.json in your project, or ~/.config/opencode/opencode.json, reading the token from your environment:

{

"mcp": { "repoward": { "type": "local", "command": ["uvx", "repoward", "serve"], "environment": { "GITHUB_TOKEN": "{env:GITHUB_TOKEN}" } } } }

Any other client that can launch a stdio MCP server runs the same command: uvx repoward serve.

If your client reports that the server failed to connect, run uvx repoward serve in a terminal to see why. The usual cause is that repoward init has not been run yet, so there is no policy.

Useful commands:

uvx repoward validate-policy

uvx repoward audit verify

Approving risky actions

A call that needs approval does not run. It returns an approval_id, and a person decides from a terminal:

uvx repoward approvals list

uvx repoward approvals show uvx repoward approvals approve

The agent then repeats the same call. Pushing new commits changes the commit the call names, so the old approval no longer applies, and GitHub refuses a merge whose head has moved.

Approving with a pull request review

A merge can also be approved by a normal GitHub review, so the approver needs their own GitHub identity and not just access to this machine. Turn it on in your policy:

approvals:

github_review: { enabled: true, min_permission: write }

A review counts only if it approves the exact commit being merged, comes from a user other than the pull request's author and this server's own identity, and that user has the required access. Any reviewer's outstanding request for changes blocks it. Each check is made again at merge time.

This needs the server to act as a GitHub App or a separate bot account. With your own token, your own reviews are refused. If an agent can reach the reviewer's GitHub credentials, such as a logged-in gh on the same machine, this protection is lost.

Limits of approvals

If the agent runs as the same OS user as this server and has a shell, it could run these commands or edit the database itself. Run the server and its files under a separate user or in a container for approvals to mean anything.

GitHub token

Use a fine-grained personal access token limited to the repositories you allow, with short expiry. Choose Only select repositories so that repository permissions appear. The read tools need these, all read-only:

PermissionUsed for
MetadataRequired by GitHub
Contentsgithub_get_file
Issuesgithub_list_issues, github_get_issue
Pull requestsPull requests in those same tools
Actionsci_get_status, ci_get_job_logs
Commit statusesci_get_status

To use the write tools, also give it read and write access to Contents, Issues and Pull requests. Leave the Workflows permission off: GitHub then refuses workflow file changes even if your policy allows the path.

Contents: write lets a token push to any branch and merge, and GitHub cannot limit it to agent/ branches. That limit lives in this server, so also protect your default branch with a ruleset that requires pull requests and has no bypass for the token's owner. If the token leaks or the server is misconfigured, that ruleset still holds.

Limits to know about:

  • ci_get_status does not show third-party checks reported only through the Checks API, which GitHub documents as unavailable to fine-grained tokens.
  • github_search_code covers the default branch and files under 384 KB. New repositories can return nothing until GitHub indexes them, and its handling of real results has so far only been tested against simulated responses.
  • github_get_file refuses symlinks, submodules, binary files and files over 1 MB. It walks the Git tree, so each read makes one request per folder in the path.
  • ci_get_job_logs fails closed if GitHub moves log storage to a host it does not recognize.
  • github_merge_pull_request does not support merge queues or stacked pull requests.
  • github_delete_branch checks the commit and then deletes, because GitHub has no conditional delete, so a small window remains between the two.
Using a GitHub App instead

A GitHub App gives each tool call its own short-lived token, limited to one repository and that tool's permissions. The App also has its own identity, which review approvals need.

Register an App with webhooks off and only the permissions you need, then install it on the repositories in your policy, and generate a private key:

PermissionLevelUsed for
ContentsRead, or write for write toolsFiles, search, branches, commits, merges
IssuesRead, or write for commentsIssues and comments

| Pull requests | Read, o

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx