GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Checks a coding agent's handback against the pull request's GitHub record. No model decides.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GITHUB_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add dunstan --env GITHUB_TOKEN=your-value -- npx -y dunstan mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"dunstan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 BargLabs 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GITHUB_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.16)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Verify an AI coding agent's pull request claims, with a verdict anyone can rerun. The agent says which files it changed, which tests ran and which issues it closed; Dunstan checks each claim against the pull request, its commits and its CI runs, and reports the verdict as a check run. Every verdict comes with a record: dunstan verify recomputes it offline and dunstan rerun re-reads the sources, so a reviewer or customer can check it themselves. Deterministic, no LLM.
Add it to a workflow; the agent's report goes in the pull request body (npx -y dunstan template --base main writes the block for you):
on:
pull_request: types: [opened, edited, synchronize, reopened, ready_for_review] permissions: contents: read pull-requests: read issues: read deployments: read checks: write actions: read jobs: handback: runs-on: ubuntu-latest steps:
More in docs/action.md.
Dunstan holds a coding agent's completion report to the record.
An agent finishes and writes a handback: files changed, tests run, references closed, head commit, merged at. Dunstan reads a declared block in that handback and checks each claim against the repository's own record (pull request state, changed files, commits, CI runs) with deterministic checks. It writes a record anyone can re-run on their own machine and get the same verdict.
unverifiable, never a pass by absence.The claim format, the block an agent declares and the record Dunstan writes, is an open specification: spec/claim-format.md, with JSON Schemas in spec/schema/ and examples in spec/examples/. A record is an in-toto Statement. How it reads in in-toto, SLSA and PER terms, and what does not carry over: docs/interop.md (informative; no export exists).
Dunstan ships as a Claude Code plugin: three MCP tools and a skill that has Claude declare, check and report a pull request's handback before it says done (plugins/dunstan/).
Install. In Claude Code:
/plugin marketplace add BargLabs/dunstan
/plugin install dunstan@barglabs
The plugin runs the MCP server with npx -y dunstan@0.1.16 mcp, the dunstan npm package at that exact version: one self-contained file, no dependencies.
The token. When you enable the plugin, Claude Code asks for an optional GitHub token and keeps it in your system's secure credential store. Use a fine-grained personal access token with read-only permissions, limited to the repositories you check, with an expiry; the permissions are in docs/mcp.md. Leave it empty to read public repositories anonymously. Two kinds of claim need a token, even on a public repository: GitHub's GraphQL API refuses anonymous calls, so a closes reference is unverifiable, never fail; and GitHub answers an artifact download only with a token (401 "Requires authentication" anonymously, observed 2026-11-02), so a tests count is unverifiable (source_unreadable:artifact). The plugin never reads a token from your environment.
What it reads, and from where. The server runs on your machine and calls GitHub's API directly from it: the pull request, its changed files, commits, check runs, workflow runs and test artifacts, deployments, and the issues the block references. Every request is a read. Nothing is written to GitHub or to the repository, and nothing is sent to Barg Labs.
Try it. Three prompts on a public Barg Labs pull request:
Use Dunstan to check this handback for BargLabs/cejel#408: head commit 35d6201d00cf926f9af10df61bfec05b6624ee12, files changed .github/workflows/verify-published-windows-binary.yml and scripts/validate-distribution-metadata.mjs, merged at 2026-10-04T13:30:48Z. Every claim holds, so the verdict is pass.Before I report BargLabs/cejel#408 as done, use Dunstan to list the claims in this report that my handback block does not declare: followed by the report and its dunstan-handback block. Dunstan lists each prose claim the block leaves out, such as a test count or a closes, with the field that would declare it. It is never a verdict.Use Dunstan to check whether BargLabs/cejel#408 closes #407, with head commit 35d6201d00cf926f9af10df61bfec05b6624ee12 and the same two files. Without a token the closes row is unverifiable (source_unreadable:closing_references): the record could not settle it, which is not the same as false. With a token it is pass.Support. GitHub issues or team@barglabs.ai. Privacy and terms.
pnpm install && pnpm build # writes dist/dunstan.mjs and prints its SHA-256
GITHUB_TOKEN=... dist/dunstan.mjs check --repo --pr --report-pr-body --out record.json
dist/dunstan.mjs verify record.json # offline: recompute claims, verdict and digests dist/dunstan.mjs rerun record.json # online: re-read the sources, report evidence_changed
Exit codes: 0 pass, 1 fail, 2 unverifiable, 3 no record: a usage error, a pull request that cannot be read or that moved while it was checked and again when checked once more (pull_request_moved), or an internal error (verify: 0 verified, 1 not). --sign-key --signer writes the record as its JCS bytes with a detached SSH signature; verify --sig --allowed-signers checks it.
dist/dunstan.mjs mcp serves the same checker as an MCP tool, dunstan_check_handback, which an agent calls with its block before it says done, beside dunstan_suggest_declarations (below): docs/mcp.md.
checker.digest in a record is the SHA-256 of dist/dunstan.mjs, the single-file bundle that ran: the checker code, its dependencies and both schemas from spec/schema/, inlined at build time.
Dunstan checks the claims a handback declares against the record. It does not check that the handback covers what the issue asked for: an accurate report of the wrong work passes.
What to declare: docs/agents.md.
dunstan survey (DRAFT) runs dunstan check over a repository's recent closed pull requests and reports settleability: which claims the record could not settle, why, and what would let it settle them. It is read-only and needs no token to start.
dist/dunstan.mjs survey --repo <owner/name> --last 30 [--author <agent-login>] --out survey.json --summary survey.md
dist/dunstan.mjs verify survey.json # offline: every embedded record, the selection, the aggregate and the digest
It reports two rates, each with its numerator, denominator and Wilson 95% interval:
With --advisory it also runs the advisory prose reader and counts its notes in a table of their own. Advisory notes never enter either rate. A tests claim can be settled only with GITHUB_TOKEN set and a JUnit record that CI uploads: GitHub serves no artifact to an anonymous reader, and a test run CI never recorded, or a local run declared as one, is not record-checkable. The survey record says whether it read with a token, and an anonymous survey's summary says its cannot-settle share is higher for it. The survey measures what the record can settle. A survey record is unsigned: verify proves it consistent with itself and every embedded record valid, not that its listing is what GitHub returned, so to trust its completeness, run it again online. Details: docs/survey.md.
Checking a declared claim is exact. Finding the claims in prose is where readers fail: a hosted model judge clears far fewer false reports once it is handed the right paragraph, and Dunstan's own extractor missed the planted false claims it was tested on. Both fail at the reading, not at the checking. The agent that wrote the report is its best reader, and it is still there before handback. So Dunstan makes the block nearly free to write, then asks the author about the prose the block does not cover:
dist/dunstan.mjs template # the block for HEAD, filled from local git
dist/dunstan.mjs suggest --report-file report.md # prose claims the block does not declare
template fills headCommit and filesChanged (HEAD against its merge base with the remote's default branch, or --base). With --tests-ci it fills tests from the JUnit record CI published at HEAD, read as the gate reads it; with --tests-local it declares a local run as one (below). It never fills references or mergedAt, and when git cannot answer it prints no block. suggest runs the advisory extractor over the prose outside the fence and lists each claim it proposes that the block does not declare, to declare or reword. It is never a verdict, writes nothing to a record and always exits 0; the MCP server offers it as dunstan_suggest_declarations. The loop, an instruction block to copy into AGENTS.md or CLAUDE.md, and example output: docs/agents.md.
Most claims about tests in a completion report ("all tests pass", "142 passed") cannot be checked from a repository's records today: the tests ran on the agent's machine, or CI ran them and published no counts. Dunstan settles a tests claim only against a JUnit file a CI run uploaded. Two changes make such claims checkable:
dunstan-junit holding junit.xml, uploaded even when the tests fail. Recipes for pytest, jest, vitest, Maven, Gradle and Go, with dunstan junit-merge for runners that write one file per test class: docs/ci-test-records.md.dunstan template --tests-ci --tests-command --tests-workflow --tests-job reads the counts from that record, as the gate will, and declares them. A run made only locally is declared with --tests-local as {"kind": "local"}, which the gate reports unverifiable (local_run_not_in_record), never pass.Reading the artifact needs a token: without one a tests row is unverifiable (source_unreadable:artifact). Each tests row the record cannot settle is printed with a remedy: line saying what to do.
One step in a workflow, one required check in branch protection:
permissions: { contents: read, pull-requests: read, issues: read, deployments: read, checks: write, actions: read }
steps:
It writes a dunstan check run on the head commit whose summary is the claims table, the record as the artifact dunstan-record, and the same table in the job summary. Only pass concludes `succes
只显示了开头部分;其余内容请在仓库中阅读