GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Checks a coding agent's handback against the pull request's GitHub record. No model decides.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GITHUB_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add dunstan --env GITHUB_TOKEN='ใส่ค่าของคุณ' -- npx -y dunstan mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"dunstan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dunstan",
"mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub BargLabs ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GITHUB_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.16) เข้า registry 3 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo