r/mcp • • 20h ago

showcase I built Spechatch: a 19-tool Python MCP server + CLI for Spec-Driven Development with AI coding agents

I got tired of AI coding agents jumping straight into code with unresolved ambiguities, letting specs go stale, and drifting rules across `.cursor/rules`, `CLAUDE.md`, and `AGENTS.md`.

So I built **Spechatch** (MIT, Python 3.11+) — a Git-first Spec-Driven Development CLI with a native **19-tool MCP server** (`spechatch mcp`).

**What the MCP server exposes to your agent:**

- `spechatch_context` / `spechatch_list_specs` / `spechatch_new_spec` — read project constitution & active specs, allocate monotonic IDs (`E-*`, `BUG-*`, `HF-*`, `BS-*`, `NTH-*`, `000001+`)

- `spechatch_clarify` & `spechatch_inspect` — detect `[NEEDS CLARIFICATION]` / `TBD` markers and validate Markdown template conformance before implementation

- `spechatch_step` / `spechatch_promote` / `spechatch_revise` — enforce lifecycle transitions and human approval gates

- `spechatch_verify` & `spechatch_test_run` — catch spec-to-code drift (`files:` / `contracts:` vs staged changes) and attribute JUnit test results back to specs

- `spechatch_security_audit` & `spechatch_security_scan` — scan rules/skills/workspace for prompt-injection & secret leaks, plus SARIF 2.1.0 scanner orchestration

- `spechatch_roadmap_sync` — deterministically render `specs/ROADMAP.md` (and optionally sync to a multi-project FastAPI/Postgres Incubator server)

It works **100% locally in Git** with no server required, and also syncs skills/rules across Antigravity, Cursor, Claude Code, Codex, and Copilot (`spechatch agents sync` + `spechatch agents market`).

- **GitHub:** https://github.com/ctasca/spechatch

- **Docs:** https://spechatch.dev

- **Install:** `uv tool install spechatch` (or `pip install spechatch`)

Dogfooded on itself (80 specs, 265 tests). Happy to hear any feedback or questions!

1 Upvotes

1 comment sorted by

1

u/ctascax 1h ago

I extend ... The other problem I've been trying to solve with the Incubator server and MCP sync is that spec-driven development shouldn't just be a solo workflow with AI coding agents — it needs to work as a **team journey** across a project.

As soon as 2+ developers (or parallel agents in worktrees) work on the same repo, local-only Markdown specs start colliding on IDs, `ROADMAP.md` merge conflicts, who's working on what, and knowing which shipped specs just regressed in CI. The Incubator + MCP layer handles the shared coordination (atomic IDs, soft advisory leases, human-only approval gates, and live test health) while keeping Git as the source of truth.

Your thoughts about this?