@curenorway/kode-cli 1.3.2 → 1.3.4
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-JK2QLASG.js → chunk-A5J2KKFE.js} +52 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -434,6 +434,21 @@ 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)
|
|
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
|
+
\`\`\`
|
|
451
|
+
|
|
437
452
|
`;
|
|
438
453
|
}
|
|
439
454
|
function generateClaudeMd(siteName, scriptsDir = "scripts", siteSlug) {
|
|
@@ -619,6 +634,23 @@ If using the Kode MCP server, these tools are available:
|
|
|
619
634
|
- \`kode_read_context\` - Read context file
|
|
620
635
|
- \`kode_update_context\` - Update context file
|
|
621
636
|
- \`kode_site_info\` - Get site configuration and CDN URLs
|
|
637
|
+
|
|
638
|
+
### MCP Setup (Optional but Recommended)
|
|
639
|
+
|
|
640
|
+
To enable MCP tools in this project, create \`.claude/config.json\`:
|
|
641
|
+
|
|
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).
|
|
622
654
|
`;
|
|
623
655
|
}
|
|
624
656
|
|
|
@@ -720,6 +752,24 @@ async function initCommand(options) {
|
|
|
720
752
|
config.json
|
|
721
753
|
`;
|
|
722
754
|
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)) {
|
|
762
|
+
try {
|
|
763
|
+
claudeConfig = JSON.parse(readFileSync3(claudeConfigPath, "utf-8"));
|
|
764
|
+
} catch {
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
claudeConfig.mcpServers = claudeConfig.mcpServers || {};
|
|
768
|
+
claudeConfig.mcpServers["cure-kode"] = {
|
|
769
|
+
command: "npx",
|
|
770
|
+
args: ["@curenorway/kode-mcp"]
|
|
771
|
+
};
|
|
772
|
+
writeFileSync3(claudeConfigPath, JSON.stringify(claudeConfig, null, 2) + "\n");
|
|
723
773
|
spinner.text = "Generating AI context files...";
|
|
724
774
|
spinner.start();
|
|
725
775
|
let scripts = [];
|
|
@@ -839,6 +889,8 @@ config.json
|
|
|
839
889
|
} else {
|
|
840
890
|
console.log(chalk.dim(` \u251C\u2500\u2500 CLAUDE.md (existing - unchanged)`));
|
|
841
891
|
}
|
|
892
|
+
console.log(chalk.dim(` \u251C\u2500\u2500 .claude/`));
|
|
893
|
+
console.log(chalk.dim(` \u2502 \u2514\u2500\u2500 config.json (MCP server config)`));
|
|
842
894
|
console.log(chalk.dim(` \u251C\u2500\u2500 .cure-kode/`));
|
|
843
895
|
console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 config.json (your configuration)`));
|
|
844
896
|
console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 context.md (dynamic AI context)`));
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED