@curenorway/kode-cli 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -434,20 +434,10 @@ Scripts have two properties: **scope** and **autoLoad**.
434
434
 
435
435
  Update context.md after your session with discoveries and changes.
436
436
 
437
- ### MCP Tools (Optional)
437
+ ### MCP Tools
438
438
 
439
- For richer AI tools (page assignment, HTML caching, context updates), create \`.claude/config.json\`:
440
-
441
- \`\`\`json
442
- {
443
- "mcpServers": {
444
- "cure-kode": {
445
- "command": "npx",
446
- "args": ["@curenorway/kode-mcp"]
447
- }
448
- }
449
- }
450
- \`\`\`
439
+ The \`.mcp.json\` file enables AI tools for page assignment, HTML caching, and context updates.
440
+ Restart Claude Code after \`kode init\` to load the MCP server.
451
441
 
452
442
  `;
453
443
  }
@@ -635,22 +625,12 @@ If using the Kode MCP server, these tools are available:
635
625
  - \`kode_update_context\` - Update context file
636
626
  - \`kode_site_info\` - Get site configuration and CDN URLs
637
627
 
638
- ### MCP Setup (Optional but Recommended)
628
+ ### MCP Setup
639
629
 
640
- To enable MCP tools in this project, create \`.claude/config.json\`:
630
+ The \`.mcp.json\` file (created by \`kode init\`) enables MCP tools automatically.
631
+ **Restart Claude Code** after init to load the MCP server.
641
632
 
642
- \`\`\`json
643
- {
644
- "mcpServers": {
645
- "cure-kode": {
646
- "command": "npx",
647
- "args": ["@curenorway/kode-mcp"]
648
- }
649
- }
650
- }
651
- \`\`\`
652
-
653
- The MCP server reads \`.cure-kode/config.json\` automatically. MCP tools provide richer functionality than CLI alone (page assignment, context updates, HTML caching).
633
+ MCP tools provide richer functionality than CLI alone (page assignment, context updates, HTML caching).
654
634
  `;
655
635
  }
656
636
 
@@ -752,24 +732,20 @@ async function initCommand(options) {
752
732
  config.json
753
733
  `;
754
734
  writeFileSync3(gitignorePath, gitignoreContent);
755
- const claudeConfigDir = join3(cwd, ".claude");
756
- const claudeConfigPath = join3(claudeConfigDir, "config.json");
757
- if (!existsSync3(claudeConfigDir)) {
758
- mkdirSync2(claudeConfigDir, { recursive: true });
759
- }
760
- let claudeConfig = {};
761
- if (existsSync3(claudeConfigPath)) {
735
+ const mcpConfigPath = join3(cwd, ".mcp.json");
736
+ let mcpConfig = {};
737
+ if (existsSync3(mcpConfigPath)) {
762
738
  try {
763
- claudeConfig = JSON.parse(readFileSync3(claudeConfigPath, "utf-8"));
739
+ mcpConfig = JSON.parse(readFileSync3(mcpConfigPath, "utf-8"));
764
740
  } catch {
765
741
  }
766
742
  }
767
- claudeConfig.mcpServers = claudeConfig.mcpServers || {};
768
- claudeConfig.mcpServers["cure-kode"] = {
743
+ mcpConfig.mcpServers = mcpConfig.mcpServers || {};
744
+ mcpConfig.mcpServers["cure-kode"] = {
769
745
  command: "npx",
770
746
  args: ["@curenorway/kode-mcp"]
771
747
  };
772
- writeFileSync3(claudeConfigPath, JSON.stringify(claudeConfig, null, 2) + "\n");
748
+ writeFileSync3(mcpConfigPath, JSON.stringify(mcpConfig, null, 2) + "\n");
773
749
  spinner.text = "Generating AI context files...";
774
750
  spinner.start();
775
751
  let scripts = [];
@@ -889,8 +865,7 @@ config.json
889
865
  } else {
890
866
  console.log(chalk.dim(` \u251C\u2500\u2500 CLAUDE.md (existing - unchanged)`));
891
867
  }
892
- console.log(chalk.dim(` \u251C\u2500\u2500 .claude/`));
893
- console.log(chalk.dim(` \u2502 \u2514\u2500\u2500 config.json (MCP server config)`));
868
+ console.log(chalk.dim(` \u251C\u2500\u2500 .mcp.json (MCP server config)`));
894
869
  console.log(chalk.dim(` \u251C\u2500\u2500 .cure-kode/`));
895
870
  console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 config.json (your configuration)`));
896
871
  console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 context.md (dynamic AI context)`));
package/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  readPageContext,
16
16
  statusCommand,
17
17
  watchCommand
18
- } from "./chunk-A5J2KKFE.js";
18
+ } from "./chunk-BE4YS6BD.js";
19
19
 
20
20
  // src/cli.ts
21
21
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  updateScriptPurpose,
28
28
  watchCommand,
29
29
  writeContext
30
- } from "./chunk-A5J2KKFE.js";
30
+ } from "./chunk-BE4YS6BD.js";
31
31
  export {
32
32
  KodeApiClient,
33
33
  KodeApiError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curenorway/kode-cli",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "CLI tool for Cure Kode - manage JS/CSS scripts for Webflow sites",
5
5
  "type": "module",
6
6
  "bin": {