Skip to content

AI Agents & Native MCP

spechatch treats AI coding agents as first-class teammates by combining versioned skills & rule packs (synced across 5 IDEs) with a native Model Context Protocol (MCP) server exposing 15 SDD tools and 3 live resources.


1. Browse & Enable the 3-Tier Agent Catalog

Section titled “1. Browse & Enable the 3-Tier Agent Catalog”

spechatch ships 31 bundled packs (12 skills + 19 rule packs) localized across 5 languages (en-US, es-ES, it-IT, fr-FR, de-DE):

  • Core: SDD workflow skills (spechatch-driven-development, spechatch-context, spechatch-sync-cursor) and guardrails (spechatch-core, gitflow, quality-gate, release).
  • Tier 1 — Methodology: spechatch-code-review, spechatch-bug-triage, spechatch-safe-refactor, spechatch-security-review, spechatch-semver, spechatch-architecture-design, spechatch-accessibility-audit, spechatch-bdd-testing, spechatch-domain-driven-design, plus rule packs (conventional-commits, tdd-first, security-hygiene, sql-migrations, docs-sync, always-bump-semver, acceptance-criteria, clean-code, design-patterns, accessibility, domain-driven-design).
  • Tier 2 — Tooling: Stack-detected packs (python-uv, typescript-strict, go-standard, rust-cargo).
  • Tier 3 — Custom / Team: Repo-local .spechatch/packs/ or shared team directories configured in agents.pack_dirs.
Terminal window
# Browse the full catalog (or filter with --tier core|methodology|tooling|custom)
spechatch agents catalog
# Enable packs in spechatch.project.yml and sync immediately
spechatch agents add spechatch-code-review acceptance-criteria clean-code python-uv --sync
# Preview diffs before writing
spechatch agents sync --diff

Output of spechatch agents catalog showing all 29 bundled skills and rule packs

Configure agents.targets in spechatch.project.yml to mirror managed files automatically across any combination of:

Target Generated Paths
antigravity .agents/skills/*/SKILL.md, .agents/rules/*.md
cursor .cursor/rules/*.mdc
claude .claude/skills/*/SKILL.md, managed block in CLAUDE.md
codex Managed block in AGENTS.md
copilot .github/skills/*/SKILL.md, .github/copilot-instructions.md, .github/instructions/*.instructions.md

Non-destructive by design: spechatch only updates files containing <!-- managed-by: spechatch --> and never overwrites your hand-written rules unless you pass --force.


Drop your organization’s custom skills and rules into .spechatch/packs/ (or any directory listed in agents.pack_dirs):

.spechatch/packs/
├── skills/
│ └── api-design/
│ └── SKILL.md
└── rules/
└── logging-standards.md

Custom packs support {{project}}, {{specs_dir}}, and {{locale}} placeholders, can override built-in packs, and are automatically mirrored to all configured agents.targets when you run spechatch agents sync.


3. Project-Specific Template Overrides (.spechatch/templates/)

Section titled “3. Project-Specific Template Overrides (.spechatch/templates/)”

Both CLI commands (spechatch new, spechatch constitute, spechatch create blueprint) and AI agents calling MCP (spechatch_new_spec) automatically use project-specific Markdown templates whenever you place override files under paths.templates_dir (default: .spechatch/templates/).

Git-friendly by design: .spechatch/.gitignore automatically ignores .spechatch/.env (local secrets) while keeping .spechatch/templates/ and .spechatch/packs/ committable so your entire team and every AI agent share the exact same templates.

.spechatch/templates/
├── constitution.md # Overrides `spechatch constitute`
├── blueprint.md # Overrides `spechatch create blueprint`
├── bugfix.md # Overrides single-file kind `bugfix`
├── hotfix.md # Overrides single-file kind `hotfix`
├── brainstorm.md # Overrides single-file kind `brainstorm`
├── epic/
│ └── EPIC.md # Overrides multi-artifact kind `epic`
└── spec/
├── specification.md # Overrides `spec` -> specification.md
├── plan.md # Overrides `spec` -> plan.md
└── tasks.md # Overrides `spec` -> tasks.md

Any file you omit falls back cleanly to spechatch’s built-in localized template — so you can override just .spechatch/templates/spec/specification.md without maintaining copies of plan.md or tasks.md.

spechatch uses safe string substitution (both {{token}} and {token} work, while JSON/code braces are left untouched):

Template Type Supported Placeholders
Specs, Epics & Single-File Kinds (spec/, epic/, <kind>.md) {{id}}, {{kind}}, {{title}}, {{status}}, {{created}}, {{updated}}, {{epic_id}}, {{version}}
Constitution (constitution.md) {{project}}, {{languages}}, {{frameworks}}, {{mode}}, {{date}}
Blueprint (blueprint.md) {{name}}, {{slug}}, {{project}}, {{date}}

Example custom .spechatch/templates/bugfix.md:

# {{id}} — {{title}}
## 1. Reproduction Steps
- [ ] Minimal failing test added
## 2. Root Cause Analysis
[NEEDS CLARIFICATION: describe root cause]
## 3. Acceptance Criteria
- [ ] **AC-1:** **GIVEN** ..., **WHEN** ..., **THEN** ...

(YAML frontmatter is generated and managed automatically by spechatch — write only the Markdown body in your override template.)


4. Connect the Native MCP Server ([mcp] extra)

Section titled “4. Connect the Native MCP Server ([mcp] extra)”

The native MCP server lets agents scaffold specs, verify drift, sync roadmaps, run tests, bump versions, and coordinate with the Incubator via structured JSON — without brittle shell parsing.

  • Resources: spechatch://constitution, spechatch://roadmap, spechatch://config
  • Tools: spechatch_context, spechatch_list_specs, spechatch_new_spec, spechatch_promote, spechatch_step, spechatch_verify, spechatch_doctor, spechatch_version, spechatch_roadmap_sync, spechatch_claim, spechatch_revise, spechatch_epic_status, spechatch_epic_next, spechatch_healthcheck, spechatch_test_run

All 15 spechatch MCP tools enabled inside the IDE MCP server manager

Project-Local — Cursor (.cursor/mcp.json) & Claude Code (.mcp.json)

Section titled “Project-Local — Cursor (.cursor/mcp.json) & Claude Code (.mcp.json)”
{
"mcpServers": {
"spechatch": {
"command": "uv",
"args": ["run", "--extra", "mcp", "spechatch", "mcp"]
}
}
}

VS Code / GitHub Copilot (.vscode/mcp.json)

Section titled “VS Code / GitHub Copilot (.vscode/mcp.json)”
{
"servers": {
"spechatch": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "${workspaceFolder}", "--extra", "mcp", "spechatch", "mcp"]
}
}
}

Antigravity Workspace Plugin (.agents/plugins/spechatch/)

Section titled “Antigravity Workspace Plugin (.agents/plugins/spechatch/)”

Create plugin.json ({"name": "spechatch"}) and mcp_config.json:

{
"mcpServers": {
"spechatch": {
"command": "/Users/<you>/.local/bin/uv",
"args": ["run", "--extra", "mcp", "spechatch", "mcp"]
}
}
}
[mcp_servers.spechatch]
command = "uv"
args = ["run", "--extra", "mcp", "spechatch", "mcp"]

Tip (macOS / GUI IDEs): Desktop apps often do not inherit your shell PATH. Use the absolute path from which uv (or a globally installed spechatch binary) in global MCP configs.


5. Enable Automatic Incubator Sync (SPECHATCH_INCUBATOR_AUTO_SYNC)

Section titled “5. Enable Automatic Incubator Sync (SPECHATCH_INCUBATOR_AUTO_SYNC)”

When using an Incubator server, enable auto-sync once so both CLI commands and MCP tools stay synchronized with your remote ledger (gracefully falling back locally if offline):

Terminal window
spechatch secret put INCUBATOR_AUTO_SYNC true

In practice, your AI agent now executes the entire SDD loop end-to-end — verifying specs, regenerating CHANGELOG.md, syncing ROADMAP.md to Neon, running tests via spechatch_test_run, and stopping at human approval checkpoints:

AI agent executing the end-to-end SDD verification, roadmap sync, and test attribution workflow