@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.
- package/dist/{chunk-A5J2KKFE.js → chunk-JJDHEHNA.js} +20 -41
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
437
|
+
### MCP Tools
|
|
438
438
|
|
|
439
|
-
|
|
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
|
|
628
|
+
### MCP Setup
|
|
639
629
|
|
|
640
|
-
|
|
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
|
-
|
|
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
|
|
756
|
-
|
|
757
|
-
if (
|
|
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
|
-
|
|
739
|
+
mcpConfig = JSON.parse(readFileSync3(mcpConfigPath, "utf-8"));
|
|
764
740
|
} catch {
|
|
765
741
|
}
|
|
766
742
|
}
|
|
767
|
-
|
|
768
|
-
|
|
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(
|
|
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 .
|
|
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
package/dist/index.js
CHANGED