genjo-mcp-server 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/index.js +15 -22
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -30642,37 +30642,30 @@ Checking Cursor MCP configuration at: ${cursorMcpPath}`);
30642
30642
  if (!fs.existsSync(sourceSkillsDir)) {
30643
30643
  sourceSkillsDir = path.join(process.cwd(), "src", "mcp", "skills");
30644
30644
  }
30645
- const targetRulesDir = path.join(process.cwd(), ".cursor", "rules");
30646
- const targetRuleFile = path.join(targetRulesDir, "genjo-ai-news.mdc");
30647
- console.log(`
30648
- Installing Cursor Rule (Skill) to: ${targetRuleFile}`);
30649
30645
  if (fs.existsSync(sourceSkillsDir)) {
30650
30646
  try {
30651
- if (!fs.existsSync(targetRulesDir)) {
30652
- fs.mkdirSync(targetRulesDir, { recursive: true });
30653
- }
30654
30647
  const sourceFile = path.join(sourceSkillsDir, "genjo-ai-news.mdc");
30655
30648
  if (fs.existsSync(sourceFile)) {
30656
- let content = fs.readFileSync(sourceFile, "utf-8");
30657
- if (!content.startsWith("---")) {
30658
- const frontmatter = `---
30659
- description: Expert AI News Agent for Asian markets. Use this rule when the user asks for AI news, needs fact-checking, or market analysis.
30660
- globs:
30661
- alwaysApply: false
30662
- ---
30663
- `;
30664
- content = frontmatter + content;
30665
- }
30666
- fs.writeFileSync(targetRuleFile, content);
30667
- console.log(" \u2705 Successfully installed Cursor Rule (Skill).");
30668
- console.log(" AI will now fetch this skill only when relevant.");
30649
+ const mdcContent = fs.readFileSync(sourceFile, "utf-8");
30650
+ const targetClaudeSkillsDir = path.join(process.cwd(), ".claude", "skills", "genjo-news-skill");
30651
+ fs.mkdirSync(path.dirname(targetClaudeSkillsDir), { recursive: true });
30652
+ const skillMdContent = mdcContent.replace(/---[\s\S]*?---/, "").trim();
30653
+ fs.mkdirSync(targetClaudeSkillsDir, { recursive: true });
30654
+ fs.writeFileSync(path.join(targetClaudeSkillsDir, "SKILL.md"), skillMdContent);
30655
+ console.log(`
30656
+ \u2705 Installed Claude Agent Skill to .claude/skills/`);
30657
+ const targetCursorRulesDir = path.join(process.cwd(), ".cursor", "rules");
30658
+ const targetRuleFile = path.join(targetCursorRulesDir, "genjo-ai-news.mdc");
30659
+ fs.mkdirSync(targetCursorRulesDir, { recursive: true });
30660
+ fs.writeFileSync(targetRuleFile, mdcContent);
30661
+ console.log(`\u2705 Installed Cursor Rule (Skill) to .cursor/rules/genjo-ai-news.mdc`);
30662
+ console.log(" (Note: Set to 'alwaysApply: false' to avoid being intrusive)");
30669
30663
  }
30670
30664
  } catch (error48) {
30671
- console.error(` \u274C Failed to copy rule: ${error48.message}`);
30665
+ console.error(` \u274C Failed to copy skills/rules: ${error48.message}`);
30672
30666
  }
30673
30667
  } else {
30674
30668
  console.warn(" \u26A0\uFE0F Could not locate source skills directory.");
30675
- console.warn(` Checked: ${sourceSkillsDir}`);
30676
30669
  }
30677
30670
  console.log("\n--------------------------------");
30678
30671
  console.log("\u{1F389} Setup complete!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genjo-mcp-server",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "MCP Server for Genjo AI News System - Asian Market Intelligence",
5
5
  "type": "module",
6
6
  "main": "index.js",