Client Setup Recipes
How-to Steps for one specific job. Assumes you already know the basics.
Purpose
Section titled “Purpose”This guide gives exact copy-paste setup recipes for the main local AI clients used with this framework.
Shortcut (spec 032):
npx @juanklagos/sdd-mcp@latest connectdoes all of this for you — it detects your clients, writes the configuration into each one’s own file (merging, never clobbering yours) and installs the/sdd-serveskill. It also covers Windsurf, VS Code, Gemini CLI and opencode, which this guide does not. See guide 51. The recipes below are the manual reference and the path for people developing the template itself (they usenode …/dist/index.jsinstead ofnpx @juanklagos/sdd-mcp@latest).
Client setup map
Section titled “Client setup map”flowchart LR A["Build MCP"] --> B["Cursor"] A --> C["Claude Code"] A --> D["Codex"]Shared rule
Section titled “Shared rule”- Open this repository as the workspace root.
- Build first:
npm installnpm run buildCursor
Section titled “Cursor”Config file:
~/.cursor/mcp.json
Example:
{ "mcpServers": { "sdd": { "type": "stdio", "command": "node", "args": [ "/ABSOLUTE/PATH/TO/spec-driven-development-template/packages/sdd-mcp/dist/index.js" ] } }}Validation:
- restart Cursor
- confirm the
sddserver is listed - ask the agent to read
sdd://policy/current
Claude Code
Section titled “Claude Code”Project-scoped config:
.mcp.json
User-scoped config:
~/.claude.json
Project example:
{ "mcpServers": { "sdd": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/spec-driven-development-template/packages/sdd-mcp/dist/index.js" ], "env": {} } }}Validation:
- open the repository
- confirm Claude can access the
sddserver - ask it to list tools and read the quickstart resource
Config file:
~/.codex/config.toml
Example:
[mcp_servers.sdd]command = "node"args = ["/ABSOLUTE/PATH/TO/spec-driven-development-template/packages/sdd-mcp/dist/index.js"]Validation:
- restart Codex
- confirm the server is available
- ask it to use
sdd_validateor readsdd://docs/quickstart
Recommended first prompt
Section titled “Recommended first prompt”Use the connected sdd MCP server for this repository.Create the SDD base first.Prefer ./www/<project-name> as the recommended default workspace; external target paths are also supported.Read the policy and quickstart resources before making changes.Do not implement code before approved spec and consistent plan.