Spec-Driven Development for any AI tool that supports MCP
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add spec-driven --env SPEC_ROOT_DIR='<SPEC_ROOT_DIR>' -- npx -y spec-driven-mcp~/.codex/config.toml
[mcp_servers.spec-driven]
command = "npx"
args = ["-y", "spec-driven-mcp"]
env = { SPEC_ROOT_DIR = "<SPEC_ROOT_DIR>" }
# codex mcp add spec-driven --env SPEC_ROOT_DIR='<SPEC_ROOT_DIR>' -- npx -y spec-driven-mcp~/.cursor/mcp.json
{
"mcpServers": {
"spec-driven": {
"command": "npx",
"args": [
"-y",
"spec-driven-mcp"
],
"env": {
"SPEC_ROOT_DIR": "<SPEC_ROOT_DIR>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"spec-driven": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"spec-driven-mcp"
],
"env": {
"SPEC_ROOT_DIR": "<SPEC_ROOT_DIR>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"spec-driven": {
"command": "npx",
"args": [
"-y",
"spec-driven-mcp"
],
"env": {
"SPEC_ROOT_DIR": "<SPEC_ROOT_DIR>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"spec-driven": {
"command": "npx",
"args": [
"-y",
"spec-driven-mcp"
],
"env": {
"SPEC_ROOT_DIR": "<SPEC_ROOT_DIR>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"spec-driven": {
"command": "npx",
"args": [
"-y",
"spec-driven-mcp"
],
"env": {
"SPEC_ROOT_DIR": "<SPEC_ROOT_DIR>"
}
}
}
}Environment variables
SPEC_ROOT_DIR
Replace the placeholders with your own credentials and keep them out of version control.