SpecHatch
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SPECHATCH_URL | No | Base URL of the incubator server used by CLI commands and MCP tools. | http://127.0.0.1:8787 |
| SPECHATCH_AUTHOR | No | Default author handle auto-populated into frontmatter authors by spechatch new and spechatch_new_spec. | |
| SPECHATCH_CONFIG | No | Default path to the project configuration file. | spechatch.project.yml |
| SPECHATCH_LOCALE | No | BCP 47 locale override for generated templates and roadmap (en-US, es-ES, it-IT, fr-FR, de-DE). | |
| SPECHATCH_API_KEY | No | Bearer API key (shk_...) for authenticating against the incubator. | |
| SPECHATCH_API_TOKEN | No | Legacy alias for SPECHATCH_API_KEY. | |
| SPECHATCH_INCUBATOR_AUTO_SYNC | No | Set true so CLI commands and MCP tools automatically sync with the Incubator, gracefully warning and continuing locally if unreachable. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| spechatch_contextC | Get SDD project orientation context, constitution hash, and active specs. |
| spechatch_list_specsB | List local specifications, optionally filtered by kind or status. |
| spechatch_new_specC | Scaffold a new specification using configured counters and templates. |
| spechatch_stepB | Report tasks.md progress for a spec and optionally sync to the Incubator. |
| spechatch_verifyC | Validate specs, roadmap drift, and optional staged spec-implementation drift. |
| spechatch_roadmap_syncC | Sync deterministic specs/ROADMAP.md, optionally upsert specs, and prune orphaned remote rows. |
| spechatch_claimC | Acquire, renew, or release a soft advisory TTL lease on the Incubator. |
| spechatch_reviseC | Open a living revision with a Change Delta on the Incubator. |
| spechatch_epic_statusC | Query live roll-up progress for an epic from the Incubator. |
| spechatch_epic_nextA | List unblocked, unleased child specs ready for parallel dispatch under an epic. |
| spechatch_healthcheckB | Check Incubator server & DB health (or ping SPECHATCH_DATABASE_URL directly). |
| spechatch_test_runC | Run configured test runners, attribute JUnit results to specs, and optionally ingest health. |
| spechatch_promoteC | Promote a brainstorm (BS-) or nice-to-have (NTH-) spec to a full spec or epic. |
| spechatch_doctorC | Run a single-command health and configuration audit of this spechatch workspace. |
| spechatch_versionC | Inspect or bump the project's version across manifests (locally or atomically via Incubator). |
| spechatch_clarifyC | Audit a spec for ambiguities, optionally resolve numbered [NEEDS CLARIFICATION] markers, and promote to clarified. |
| spechatch_security_auditC | Run deterministic Layer 1 SDD & AI-agent security audit (secrets, ai-rules, workspace, ci). |
| spechatch_security_scanC | Run Layer 2 configured external security scanners from spechatch.project.yml. |
| spechatch_inspectC | Inspect one or all specs for structural conformance against configured templates. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| resource_constitution | Read the project's Phase 0 constitution.md guardrails. |
| resource_roadmap | Read the deterministic specs/ROADMAP.md table. |
| resource_config | Read normalized spechatch.project.yml configuration as JSON. |
TDQS
Scored across 19 tools
Most tools target distinct actions across a well-structured SDD lifecycle (new_spec, clarify, revise, promote, claim, step). A few pairs could be confused: spechatch_doctor vs spechatch_healthcheck, and spechatch_inspect vs spechatch_verify, while spechatch_security_scan (Layer 2 external scanners) vs spechatch_security_audit (Layer 1 deterministic) relies on the descriptions to separate them.
All tools share the spechatch_ prefix and snake_case, which is highly predictable. There are minor style deviations (noun-style entries like context, version, doctor, healthcheck alongside verb-style verify, promote, new_spec), but readability remains high.
19 tools is on the heavy side for a spec-driven development workflow. The domain is genuinely broad (specs, roadmap, epics, leases, tests, security, versions), but a few tools look mergeable (doctor/healthcheck, security_scan/security_audit).
The surface covers a full lifecycle: scaffold, list, inspect, clarify, revise, promote, verify, roadmap sync, epic dispatch/status, leases, testing, versioning, and two security layers. Minor gaps exist around explicit spec deletion/archival and fetching a single full spec body, but agents can work around these via inspect/list_specs and roadmap pruning.