Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Deterministic API regression checks for AI agents: snapshot a baseline, catch broken contracts.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 Bharath-code 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.4)于34天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
同一分类中有:Spec Driven Development, Remote Desktop Commander, topo^alpin
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Avalanche bulletins and mountain weather forecasts for any place in the Alps.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Before you commit, know what broke.
When an AI coding agent edits your app it can silently break an API contract — a removed field, a changed status code, a test that now fails — and still report success. RegressGuard records a known-good baseline and tells you (or the agent) exactly what regressed.
It is built to live inside the agent's own loop. RegressGuard ships as an MCP server, so agents like Claude Code and Cursor can verify their own work and self-correct *before* a human ever sees the diff — zero extra steps. The same engine also runs as a plain CLI for humans and CI.
# Agent-native (primary): the agent calls these as MCP tools in its loop
check → status # see "Agent-native verification (MCP)" below
regressguard snapshot # record the known-good state regressguard check # compare after edits — see what broke
*Break → detect → fix → green. Reproduce it yourself: ./demo/demo.sh.*
macOS / Linux (recommended)
curl -fsSL https://raw.githubusercontent.com/Bharath-code/regressguard/main/install.sh | sh
Verify
regressguard version # first line must say "RegressGuard"
Upgrading from v0.1.x? The binary was renamed from
rgtoregressguardbecauserg
collides with ripgrep. There is no
rgshim and the oldrg upgradecan't fetch v0.2.0:
re-run the installer, delete the old
rg, then runregressguard hook install
(old hooks call
rg;regressguard doctorflags them).
cd your-project
regressguard init
RegressGuard detects your test command, framework, and dev server URL automatically.
Make sure your dev server is running, then:
regressguard snapshot
Output:
Snapshot
OK Tests 42 passed, 0 failed 6.8s OK Routes 6 captured, 2 skipped OK Schemas 6 hashed
Saved: .regressguard/snapshot.json
Next: Ask your AI agent to make the code change, then run: regressguard check
Let Claude Code, Cursor, or Codex make its changes.
regressguard check
Clean — safe to commit:
Check
OK No regressions detected
Tests 42 passed, 0 failed Routes 6 unchanged Timing within tolerance
Safe to commit.
Regression found — commit blocked:
Check
X 2 regressions detected
Route Before After Change GET /api/users schema schema schema
Likely cause: Auth/session behavior or routing changed during the last code edit.
Changed files since snapshot: app/api/users/route.ts internal/auth/session.go
Next: regressguard check --verbose git diff
Commit blocked.
Exit code 1 on critical — works with git hooks and CI.
regressguard hook install
Now regressguard check runs automatically before every git commit. When a critical regression is detected, the commit is blocked with a compact output:
RegressGuard pre-commit
X 1 regression detected POST /api/user/update status changed from 200 to 500
Run: regressguard check --verbose
Commit blocked. Use --no-verify only if you accept the risk.
Bypass with git commit --no-verify only when you accept the risk.
This is RegressGuard's primary mode. Instead of waiting for a human to run regressguard check, the AI agent calls it as a tool inside its own edit loop — so it catches and fixes regressions it just introduced, before handing the change back to you.
Start the server (stdio transport):
regressguard mcp serve
Register with Claude Code:
claude mcp add regressguard -- regressguard mcp serve
Register with Cursor (.cursor/mcp.json):
{
"mcpServers": { "regressguard": { "command": "regressguard", "args": ["mcp", "serve"] } } }
The agent then has two tools:
| Tool | Purpose |
|---|---|
check | Compare current state against the snapshot; returns structured findings with severity |
status | Sub-second health check (snapshot age, route/config/hook status) — no tests run |
The baseline is human-owned. Agents get no snapshot tool by default. If they could re-record the baseline, an agent could accept its own regression (check fails → snapshot → check passes). You record the baseline with regressguard snapshot. To let agents re-baseline anyway, set this in .regressguard/config.json and restart the MCP server:
{ "mcp": { "allowSnapshot": true } }
Tool responses are the same machine-readable payload as `regressguard check --json` — see docs/json-contract.md. Every tool call is recorded to an append-only audit log under .regressguard/ (tool, status, duration, timestamp).
A typical loop: the agent edits code → calls check → reads the structured findings → fixes the regression → calls check again → only then reports done.
| Command | Purpose |
|---|---|
regressguard init | Configure RegressGuard for this project |
regressguard quickstart | Auto-configure and snapshot in one command |
regressguard snapshot | Record the current passing state |
regressguard check | Compare current state against the snapshot |
regressguard status | Sub-second health check (snapshot age, routes, hook) — no tests run |
regressguard explain | Show before/after diff for a specific route |
regressguard watch | Watch files and auto-run check on changes |
regressguard mcp serve | Run the MCP server so AI agents can self-verify (see above) |
regressguard hook install | Install the pre-commit git hook |
regressguard hook uninstall | Remove the git hook |
regressguard config get | Read a config value |
regressguard config set | Write a config value |
regressguard doctor | Diagnose setup issues |
regressguard upgrade | Update regressguard to the latest version |
regressguard completion | Generate shell autocompletions (bash, zsh, fish) |
regressguard version | Print version and build metadata |
Run regressguard --help for flags, examples, and exit codes.
Config lives in .regressguard/config.json (human-readable, git-ignoreable).
{
"version": 1, "testCommand": "npm test", "serverUrl": "http://localhost:3000", "auth": { "mode": "bearer", "testToken": "your-test-token", "headerName": "Authorization", "prefix": "Bearer" }, "ignoreFields": ["requestId", "traceId"], "routes": [ { "method": "GET", "path": "/api/health" }, { "method": "GET", "path": "/api/users" }, { "method": "GET", "path": "/api/admin", "skip": true } ] }
Auth modes: bearer (Authorization header), cookie (Cookie header), or omit for public routes only.
ignoreFields: Fields to exclude from schema comparison — useful for volatile app-specific values like requestId or traceId.
regressguard snapshot runs your test suite and hits each configured route. It records pass/fail counts, HTTP status codes, and a normalized schema hash for each response.regressguard check reruns the same tests and routes, then diffs against the snapshot:id, uuid, token, nonce, timestamp, createdAt, updatedAt, deletedAt, created_at, updated_at, deleted_at, sessionId, accessToken, refreshToken, expiresAt, expires_at) before hashing."date", "uuid", "token").ignoreFields defined in config.This ensures the shape integrity of endpoints remains stable across runs even when database IDs and timestamps change.
summary.passed of --json output.These are deliberate trade-offs in v1 — favoring zero false positives over exhaustive detection. They are on the roadmap, not accidental:
regressguard check records failing test *names* (jest, vitest, bun, go test output) and flags a CRITICAL when a test that passed at baseline starts failing — even if the net failure count is unchanged. When names cannot be parsed from your runner's output (or the baseline predates name recording), it falls back to count comparison: a CRITICAL only when the number of failing tests *increases*. Pair regressguard check with your normal test runner in CI for exhaustive per-test assertions.| Code | Meaning |
|---|---|
0 | Pass or warnings only — safe to commit |
1 | Critical regression detected — commit blocked |
2 | Usage, config, or runtime error |
# JSON output for scripts and agents
regressguard check --json | jq .status
regressguard check --json --verbose
NO_COLOR=1 regressguard check
GitHub Action — runs regressguard check on every PR and comments the findings:
- uses: Bharath-code/regressguard@v0
with: server-command: npm run dev
On pull requests the action compares against the snapshot committed on the base branch (regressguard check --base origin/main), so a PR that edits .regressguard/snapshot.json to hide a regression still fails. Require a human approval when the baseline changes with a CODEOWNERS rule:
/.regressguard/snapshot.json @your-handle
Commit .regressguard/snapshot.json (regressguard init adds .regressguard/* + !.regressguard/snapshot.json to .gitignore); everything else in .regressguard/ stays local.
See action.yml for all inputs (version pinning, working directory, server URL).
Python, FastAPI, and Django support i
只显示了开头部分;其余内容请在仓库中阅读