Dunstan
Checks an agent's PR handback claims against GitHub's own record with no model involved
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 0.1.23
- Listing updated
- 3 days ago
About Dunstan
Dunstan is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Dunstan targets a specific failure: a coding agent says it finished, and the report is wrong. The agent declares a small block in its pull request description, with head commit, files changed, referenced issues, test counts and times, and Dunstan compares each claim to what GitHub records.
Every claim comes back pass, fail or unverifiable with a reason code, and a claim the record cannot answer is never a pass. The result is an in-toto statement whose digests let anyone recompute each verdict offline. Dunstan only returns evidence; your branch protection decides what blocks, and it never comments, labels, reviews or merges. It does not check that the work matches what the issue asked for.
Use it as a GitHub Action, a CLI, or a Claude Code plugin with three MCP tools run over stdio from the dunstan npm package. A read-only GITHUB_TOKEN is optional; public repos can be read anonymously.
Install
Run in a terminal
claude mcp add dunstan --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y dunstanAdd to claude_desktop_config.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"dunstan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dunstan"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"dunstan": {
"command": "npx",
"args": [
"-y",
"dunstan"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Configuration
GITHUB_TOKENOptional fine-grained, read-only GitHub token; without it, public repositories are read anonymously.
What it does
- Deterministic checks
- No model decides pass or fail.
- Five claim types
- Head commit, scope, references, counts and times.
- Fail closed
- Unanswerable claims are unverifiable, not passes.
- Re-runnable record
- In-toto statement with digests for offline verification.
- GitHub Action
- Add a required status check named dunstan.
- Claude Code plugin
- Three MCP tools plus a skill to declare and check handbacks.
Good for
- Gate merges on accurate agent reports
- Audit whether an agent changed the files it claimed
- Verify test counts against CI
- Keep verifiable records of agent work
Pricing
Open source
Free; open source
Prices change. Check barglabs.ai before you buy.
Dunstan FAQ
Does it use an AI model?
No. The site states no model decides the verdict.
Does it block merges itself?
No, you require the dunstan status check in branch protection.
Do I need a token?
Optional; without one public repositories are read anonymously.
What can it miss?
An accurate report of the wrong work passes.
Is Dunstan free?
Yes. Dunstan is open source, so you can use and self-host it for free.
How do I add Dunstan to Claude Code?
Run this command in your terminal: claude mcp add dunstan --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y dunstan
What are the best alternatives to Dunstan?
The closest alternatives to Dunstan are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Dunstan

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools