@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.
- package/dist/{chunk-A5J2KKFE.js → chunk-BE4YS6BD.js} +15 -40
- 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,20 @@ 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
746
|
args: ["@curenorway/kode-mcp"]
|
|
771
747
|
};
|
|
772
|
-
writeFileSync3(
|
|
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 .
|
|
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
package/dist/index.js
CHANGED