@curenorway/kode-cli 1.3.3 → 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)
639
-
640
- To enable MCP tools in this project, create \`.claude/config.json\`:
628
+ ### MCP Setup
641
629
 
642
- \`\`\`json
643
- {
644
- "mcpServers": {
645
- "cure-kode": {
646
- "command": "npx",
647
- "args": ["@curenorway/kode-mcp"]
648
- }
649
- }
650
- }
651
- \`\`\`
630
+ The \`.mcp.json\` file (created by \`kode init\`) enables MCP tools automatically.
631
+ **Restart Claude Code** after init to load the MCP server.
652
632
 
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,6 +732,20 @@ async function initCommand(options) {
752
732
  config.json
753
733
  `;
754
734
  writeFileSync3(gitignorePath, gitignoreContent);
735
+ const mcpConfigPath = join3(cwd, ".mcp.json");
736
+ let mcpConfig = {};
737
+ if (existsSync3(mcpConfigPath)) {
738
+ try {
739
+ mcpConfig = JSON.parse(readFileSync3(mcpConfigPath, "utf-8"));
740
+ } catch {
741
+ }
742
+ }
743
+ mcpConfig.mcpServers = mcpConfig.mcpServers || {};
744
+ mcpConfig.mcpServers["cure-kode"] = {
745
+ command: "npx",
746
+ args: ["@curenorway/kode-mcp"]
747
+ };
748
+ writeFileSync3(mcpConfigPath, JSON.stringify(mcpConfig, null, 2) + "\n");
755
749
  spinner.text = "Generating AI context files...";
756
750
  spinner.start();
757
751
  let scripts = [];
@@ -871,6 +865,7 @@ config.json
871
865
  } else {
872
866
  console.log(chalk.dim(` \u251C\u2500\u2500 CLAUDE.md (existing - unchanged)`));
873
867
  }
868
+ console.log(chalk.dim(` \u251C\u2500\u2500 .mcp.json (MCP server config)`));
874
869
  console.log(chalk.dim(` \u251C\u2500\u2500 .cure-kode/`));
875
870
  console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 config.json (your configuration)`));
876
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-23USWMU4.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-23USWMU4.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.3",
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": {