@curenorway/kode-cli 1.3.4 → 1.3.6

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,21 @@ 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
- args: ["@curenorway/kode-mcp"]
746
+ args: ["-y", "@curenorway/kode-mcp"],
747
+ env: {}
771
748
  };
772
- writeFileSync3(claudeConfigPath, JSON.stringify(claudeConfig, null, 2) + "\n");
749
+ writeFileSync3(mcpConfigPath, JSON.stringify(mcpConfig, null, 2) + "\n");
773
750
  spinner.text = "Generating AI context files...";
774
751
  spinner.start();
775
752
  let scripts = [];
@@ -889,8 +866,7 @@ config.json
889
866
  } else {
890
867
  console.log(chalk.dim(` \u251C\u2500\u2500 CLAUDE.md (existing - unchanged)`));
891
868
  }
892
- console.log(chalk.dim(` \u251C\u2500\u2500 .claude/`));
893
- console.log(chalk.dim(` \u2502 \u2514\u2500\u2500 config.json (MCP server config)`));
869
+ console.log(chalk.dim(` \u251C\u2500\u2500 .mcp.json (MCP server config)`));
894
870
  console.log(chalk.dim(` \u251C\u2500\u2500 .cure-kode/`));
895
871
  console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 config.json (your configuration)`));
896
872
  console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 context.md (dynamic AI context)`));
@@ -901,6 +877,9 @@ config.json
901
877
  console.log(chalk.cyan(" 1. kode pull ") + chalk.dim("Download existing scripts"));
902
878
  console.log(chalk.cyan(" 2. kode watch ") + chalk.dim("Watch for changes and auto-push"));
903
879
  console.log(chalk.cyan(" 3. kode deploy ") + chalk.dim("Deploy to staging/production"));
880
+ console.log(chalk.bold("\n\u{1F4A1} MCP Tools:"));
881
+ console.log(chalk.dim(" Restart Claude Code, then use /mcp to approve the cure-kode server."));
882
+ console.log(chalk.dim(" This enables AI tools like kode_update_script, kode_assign_script_to_page, etc."));
904
883
  if (claudeMdAction === "separate") {
905
884
  console.log(chalk.yellow("\n\u{1F4A1} Tip: Add this line to your CLAUDE.md to reference Kode instructions:"));
906
885
  console.log(chalk.dim(" See KODE.md for Cure Kode CDN management instructions."));
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-JJDHEHNA.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-JJDHEHNA.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.6",
4
4
  "description": "CLI tool for Cure Kode - manage JS/CSS scripts for Webflow sites",
5
5
  "type": "module",
6
6
  "bin": {