MCP Hub
Back to servers

forgespec-mcp

Forgespec MCP facilitates Spec-Driven Development (SDD) by providing tools for contract validation, task board management, and advisory file locking. It enables multi-agent AI systems to coordinate complex workflows through a structured nine-phase development pipeline with built-in dependency tracking.

glama
Updated
Mar 29, 2026

forgespec-mcp

MCP Server for Spec-Driven Development (SDD) — contract validation, task board management, and file reservation for multi-agent AI systems.

Works with any MCP-compatible client: Claude Code, Codex CLI, Gemini CLI, OpenClaw, and more.

Features

  • SDD Contract Validation — Enforce typed contracts across a 9-phase development pipeline
  • Task Board — SQLite-backed task management with dependency tracking and auto-unblocking
  • File Reservation — Advisory file locking to prevent multi-agent conflicts

Quick Start

Using npx (no installation required)

npx -y forgespec-mcp

Install globally

npm install -g forgespec-mcp

Configuration

Claude Code

claude mcp add forgespec --transport stdio -- npx -y forgespec-mcp

Codex CLI (~/.codex/config.toml)

[mcp_servers.forgespec]
command = "npx"
args = ["-y", "forgespec-mcp"]

Gemini CLI (settings.json)

{
  "mcpServers": {
    "forgespec": {
      "command": "npx",
      "args": ["-y", "forgespec-mcp"]
    }
  }
}

OpenClaw (openclaw.json)

mcp: {
  servers: {
    forgespec: { command: "npx", args: ["-y", "forgespec-mcp"] }
  }
}

Tools

SDD Contract Tools

ToolDescription
sdd_validateValidate an SDD contract against phase schema
sdd_saveValidate and persist a contract
sdd_historyGet phase transition history for a project
sdd_phasesGet all phases with transitions and confidence thresholds

Task Board Tools

ToolDescription
board_createCreate a new task board
board_statusGet board status with tasks grouped by status
board_listList all boards
task_addAdd a task with priority, spec ref, and acceptance criteria
task_claimClaim a task (checks dependencies)
task_updateUpdate task status (auto-unblocks dependents)
task_unblockedList tasks ready to work on

File Reservation Tools

ToolDescription
file_reserveReserve files/globs with TTL
file_checkCheck for conflicts
file_releaseRelease reservations

SDD Pipeline

The 9-phase Spec-Driven Development lifecycle:

init → explore → propose → spec → design → tasks → apply → verify → archive

Each phase has confidence thresholds and allowed transitions enforced by the contract validator.

PhaseConfidence ThresholdCan Transition To
init0.5explore, propose
explore0.5propose, spec
propose0.7spec, design, init
spec0.8design, tasks
design0.7tasks, spec
tasks0.8apply
apply0.6verify, tasks
verify0.9archive, apply
archive0.9

Environment Variables

VariableDefaultDescription
FORGESPEC_DIR~/.forgespecDatabase directory
FORGESPEC_DB~/.forgespec/forgespec.dbFull database path

Development

git clone https://github.com/lleontor705/forgespec-mcp.git
cd forgespec-mcp
npm install
npm run dev     # Run with tsx (hot reload)
npm test        # Run tests
npm run build   # Compile TypeScript
npm run inspect # Open MCP Inspector

License

MIT

Reviews

No reviews yet

Sign in to write a review