ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

Running ai-devkit install causing broken .ai-devkit.json

Open codeaholicguy opened this issue 7 months ago • 1 comments

Precondition:

  • There is artifacts folder (docs/ai)
  • There is config in .ai-devkit.json
{
  "version": "0.23.0",
  "environments": [
    "cursor",
    "claude",
    "codex"
  ],
  "phases": [
    "requirements",
    "design",
    "planning",
    "implementation",
    "testing"
  ],
  "createdAt": "2026-04-17T17:17:15.973Z",
  "updatedAt": "2026-04-17T17:17:34.208Z",
  "mcpServers": {
    "memory": {
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-devkit/memory"
      ]
    },
    "notion": {
      "transport": "http",
      "url": "https://mcp.notion.com/mcp"
    }
  }
}

Reproduce:

  • Run ai-devkit install
  • Choose no when the overwrite question is prompted
  • It makes the .ai-devkit.json broken
{
  "version": "0.23.0",
  "environments": [],
  "phases": [],
  "createdAt": "2026-04-17T17:17:15.973Z",
  "updatedAt": "2026-04-17T17:22:45.706Z",
  "mcpServers": {
    "memory": {
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-devkit/memory"
      ]
    },
    "notion": {
      "transport": "http",
      "url": "https://mcp.notion.com/mcp"
    }
  },
  "skills": []
}

codeaholicguy avatar Apr 17 '26 17:04 codeaholicguy

Fixed in https://github.com/codeaholicguy/ai-devkit/commit/cfb49e06f45cf02a436b1caae62ebef52da72d8f

codeaholicguy avatar Apr 17 '26 17:04 codeaholicguy