GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Git-native policy layer for AI agents: check_action verdicts against rules approved via PR.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://api.gntai.dev/mcp在终端中运行这条命令
claude mcp add --transport http gnt https://api.gntai.dev/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gnt": {
"url": "https://api.gntai.dev/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gnt": {
"type": "http",
"url": "https://api.gntai.dev/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://api.gntai.dev/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 gnt-ai 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(0.6.0)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Run the setup below once and every agent your team runs has a git-native rulebook it has to check over MCP before it acts, approved the same way your code already is: a merged pull request.
check_action over MCP before anything risky (a refund, a delete, a message to a customer) and get back an allow/block/escalate verdict.Prefer not to run any of this yourself? The hosted version at gntai.dev does the same thing without you standing up a Postgres instance.
npm install -g @gnt-ai/cli
gnt login gnt connect github gnt prebrain
To see a real check_action response before installing Node or npm, clone the repository and run the Docker-only demo:
./demo.sh
It builds the full local stack in an isolated gnt-demo Compose project, seeds an approved refund rule, calls check_action, and prints a curl command you can run again. Without an Anthropic key the real fail-closed path returns needs_human; pass GNT_DEMO_ANTHROPIC_API_KEY=sk-ant-... ./demo.sh to opt in to the model's grounded policy verdict. The demo uses deterministic local embeddings and throwaway localhost-only secrets, so it does not need a ZeroEntropy key.
Nothing for
gnt prebrainto scan yet? Rungnt initfirst — it scaffoldsrules/locally
with a couple of example rule files so there's something real to look at and edit, and points
you at
gnt prebrain --starter-packsfor a curated pack to start from instead.
That merge lands a rule file in your connected repo, shaped like this:
your-repo/
└── rules/ ├── refund-approval-threshold.md └── contract-legal-cc.md
Each file is plain markdown with YAML frontmatter:
---
title: Never refund over $500 without a manager status: approved confidence: 0.91 owner_id: finance-team source_citations: [...] source: slack tags: [refunds, finance] last_validated_at: 2026-07-20 version: 1 superseded_by: null approved_by: jane@company.com approved_at: 2026-07-21T14:03:00Z created_at: 2026-07-18T09:12:00Z pr_number: 142 pr_url: https://github.com/your-org/your-repo/pull/142
Refunds over $500 need manager sign-off before they go out...
There's no captured transcript to show yet (see the gap noted at the bottom of this README). Here's the actual response shape a check_action call returns, straight from the tool's contract:
{
"verdict": "blocked", "reason": "Refund exceeds the $500 threshold without manager sign-off (rules/refund-approval-threshold.md)", "cited_rules": [ { "id": "refund-approval-threshold", "title": "Never refund over $500 without a manager" } ], "rules_retrieved": 3 }
verdict is one of allowed, blocked, or needs_human. needs_human is the fail-closed default: no approved rule covers the action, retrieval failed, or the check couldn't complete. It never guesses.
One MCP endpoint, five tools:
| Tool | What it does |
|---|---|
check_action | Checks a described action against your approved rules before an agent takes it. Returns allowed, blocked, or needs_human with cited rules and a one-line reason. |
search_rules | Semantic search over your org's approved rules, optionally filtered by tag. An empty list means no approved rule covers the query. |
get_rule | Fetches one approved rule by id, with its provenance (who approved it, when, what it was cited from). |
list_skill_packs | Lists every compiled skill pack version for your org, newest first. |
get_skill_pack | Fetches a compiled skill pack's manifest and file list by id. |
| Requirement | Check | Get it |
|---|---|---|
| Node >=22.13 | node --version | nodejs.org |
| Method | Command | |
|---|---|---|
| curl | `curl -fsSL gntai.dev/install.sh \ | sh` |
| npm | npm install -g @gnt-ai/cli |
gnt needs Node >=22.13. If the CLI fails to start with a version error, update Node first and confirm with
node --version.
gnt login # sign in, store an API key locally
gnt init # scaffold a local rules/ dir with example rule files gnt connect github # connect the repo your rules PRs open against gnt prebrain # scan sources, extract candidate rules, open PRs gnt review # review rules awaiting approval gnt status # show brain status gnt pull # download the latest skill pack gnt gaps # list uncovered queries with no approved rule
| Variable | Default | What it controls |
|---|---|---|
GNT_API_URL | https://api.gntai.dev | API endpoint the CLI and MCP calls hit |
GNT_WEB_URL | https://gntai.dev | Web app used for gnt login's browser step |
GNT_CONFIG_DIR | ~/.gnt | Where credentials.json and local config live |
gnt prebrain's default extraction mode is cloud, not on-device: your source text goes straight to Anthropic's API (or Vercel AI Gateway with zero-data-retention, if you configure it), never to gnt's own servers. Fully on-device extraction needs --mode local against a local Ollama daemon.apps/api only sends error data to Sentry if you set SENTRY_DSN yourself. Leave it unset and nothing goes out.gnt prebrain (batch-extracted from real sources) or gnt review (hand-proposed).rules/ .md files with the frontmatter shown above and a plain markdown body.gnt rules lint checks a rule file's frontmatter locally, and gnt-ai/gnt/.github/actions/lint-rules runs the same check as a CI step on your rules repo's own PRs, so a bad frontmatter fails the PR instead of the review.Self-hosting: `gnt login`'s browser step has nowhere to land.
gnt loginopens a browser to a/cli-loginpage and polls the API for the resulting key — that page is served by the hosted product's web app, which isn't part of this repo. There's no CLI-only login flow (device code or otherwise) today, and nogntcommand to set a key manually. Self-hosting this stack currently means building your own thin frontend for that one route (it just needs to complete the sign-in flow and hand the CLI a key). This is a real, open gap in the self-host path, not a config issue — closing it properly means adding a CLI-only login flow.
`ValueError: refusing to start: these settings still have their .env.example placeholder value...` A
change-me-...string is still sitting inapps/api/.env. The error names every offending field; generate a real value for each and retry.
`store` fails to start with `GNT_STORE_INTERNAL_API_SECRET is not set`.
apps/store/.envwasn't filled in, or wasn't picked up. Confirm the file exists at that exact path, not still named.env.example.
Every store-to-api call gets rejected with 401 or 403, even though both services are up.
STORE_INTERNAL_API_SECRET/APPROVAL_SIGNING_SECRETinapps/api/.envdon't byte-for-byte matchGNT_STORE_INTERNAL_API_SECRET/GNT_APPROVAL_SIGNING_SECRETinapps/store/.env. This fails closed by design. Regenerate both pairs so the two files agree.
A rule fails to save with an embedding or rerank error.
apps/store/.envis missingZEROENTROPY_API_KEY, or it's still empty. Get a real one from zeroentropy.dev.
gnt login
gnt logout gnt init scaffold a local rules/ dir with example rule files (--dir ) gnt connect github, slack, notion-mcp, monday-mcp, linear-mcp, jira-mcp, sentry-mcp, granola-mcp, zoom-mcp, figma, datadog, gitlab-threads, hubspot, airtable, openclaw, hermes gnt disconnect gnt status gnt billing gnt review gnt pull gnt gaps gnt prebrain scan local sources, extract candidate rules, open batched draft PRs (~60 flags for source paths and extraction mode, see gnt prebrain --help; --mode cloud|local, cloud is the default) gnt stale gnt keys list|create|revoke|rotate gnt webhook list|create|revoke gnt org show|rename|invite|remove
# bash, add to ~/.bashrc
eval "$(gnt completion bash)"
eval "$(gnt completion zsh)"
gnt completion fish | source
docs/self-hosting/README.mdSECURITY.mdSelf-hosting is a first-class, fully supported path — Apache-2.0 from day one, run it on your own infra with your own keys, or use the hosted version at gntai.dev. The homepage FAQ and the self-hosting docs both describe this same path; there is no "not today" caveat.
Copyright © 2026 gnt.ai. Licensed under Apache-2.0 — see LICENSE for the terms and NOTICE for the trademark rule on forks.
Self-hosting gnt costs you nothing, forever — clone it, run docker compose up, bring your own keys. What we sell is the part self-hosting doesn't give you: hosting at gntai.dev, managed OAuth connectors (GitHub, Slack, Linear, Notion, Zendesk — no app-approval process on your end), and usage-based AI features. If you'd rather run it yourself, that's a fully supported, fully free path, not a crippled trial of the real thing.
See CONTRIBUTING.md for dev setup and how to open a PR. Every commit needs a Signed-off-by trailer (git commit -s), the Developer Certificate of Origin instead of a CLA. No separate form, just the flag.
Thanks to everyone who's sent a PR:
[](https://github.com/gnt-ai
只显示了开头部分;其余内容请在仓库中阅读