# sdd-mcp

Brings Spec-Driven Development to coding agents. It stops automated code generation until you approve written specs and plans.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 21
- Author: juanklagos
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/juanklagos/spec-driven-development-template
- Updated: 2026-08-30
- HTML: https://affpapa.org/en/nevibecode/mcp/sdd-mcp

## What it does

This server connects your assistant to a structured `specs/` directory and a `bitacora/` decision log. Specs come first. The workflow enforces a strict boundary: no production code gets written before `spec.md` and `plan.md` pass verification and receive explicit consent.

The system relies on validation checks to inspect requirements and record consent before implementation starts. The package runs directly via `npx` using `@juanklagos/sdd-mcp`.

Without configured `SDD_PROJECT_ROOT` and `SDD_WORKSPACES_ROOT` environment variables, the server cannot locate your project root.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `SDD_PROJECT_ROOT`, `SDD_WORKSPACES_ROOT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env SDD_PROJECT_ROOT=<SDD_PROJECT_ROOT> --env SDD_WORKSPACES_ROOT=<SDD_WORKSPACES_ROOT> --transport stdio sdd-mcp -- npx -y @juanklagos/sdd-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add sdd-mcp --env SDD_PROJECT_ROOT=<SDD_PROJECT_ROOT> --env SDD_WORKSPACES_ROOT=<SDD_WORKSPACES_ROOT> -- npx -y @juanklagos/sdd-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sdd-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@juanklagos/sdd-mcp"
            ],
            "env": {
                "SDD_PROJECT_ROOT": "<SDD_PROJECT_ROOT>",
                "SDD_WORKSPACES_ROOT": "<SDD_WORKSPACES_ROOT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sdd-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@juanklagos/sdd-mcp"
            ],
            "env": {
                "SDD_PROJECT_ROOT": "<SDD_PROJECT_ROOT>",
                "SDD_WORKSPACES_ROOT": "<SDD_WORKSPACES_ROOT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e SDD_PROJECT_ROOT=<SDD_PROJECT_ROOT> -e SDD_WORKSPACES_ROOT=<SDD_WORKSPACES_ROOT> sdd-mcp npx -y @juanklagos/sdd-mcp
```
Replace <…> with your own values

## When to use it
- establish formal requirements in `spec.md` before writing code
- verify consistency between execution plans and task specifications
- record architecture trade-offs and rationale inside `bitacora/`
- prevent agent code changes before approval gate validation

## Example prompts
- Verify `spec.md` against `plan.md` and run the gate check before coding.
- Record our database schema decision in `bitacora/decisiones/`.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
