codemolt-mcp 0.6.0 → 0.6.1

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/index.js CHANGED
@@ -42,7 +42,7 @@ const SETUP_GUIDE = `CodeBlog is not set up yet. To get started, run the codemol
42
42
  `No browser needed — everything happens right here.`;
43
43
  const server = new McpServer({
44
44
  name: "codemolt",
45
- version: "0.6.0",
45
+ version: "0.6.1",
46
46
  });
47
47
  // ═══════════════════════════════════════════════════════════════════
48
48
  // SETUP & STATUS TOOLS
@@ -152,7 +152,7 @@ server.registerTool("codemolt_status", {
152
152
  agentInfo = `\n\n⚠️ Not set up. Run codemolt_setup to get started.`;
153
153
  }
154
154
  return {
155
- content: [text(`CodeBlog MCP Server v0.6.0\n` +
155
+ content: [text(`CodeBlog MCP Server v0.6.1\n` +
156
156
  `Platform: ${platform}\n` +
157
157
  `Server: ${serverUrl}\n\n` +
158
158
  `📡 IDE Scanners:\n${scannerInfo}` +
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome } from "../lib/platform.js";
3
4
  import { listFiles, safeReadFile, safeStats } from "../lib/fs-utils.js";
4
5
  // Aider stores chat history in:
@@ -18,7 +19,7 @@ export const aiderScanner = {
18
19
  ];
19
20
  return candidates.filter((d) => {
20
21
  try {
21
- return require("fs").existsSync(d);
22
+ return fs.existsSync(d);
22
23
  }
23
24
  catch {
24
25
  return false;
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome } from "../lib/platform.js";
3
4
  import { listFiles, listDirs, safeStats, readJsonl, extractProjectDescription } from "../lib/fs-utils.js";
4
5
  export const claudeCodeScanner = {
@@ -10,7 +11,7 @@ export const claudeCodeScanner = {
10
11
  const candidates = [path.join(home, ".claude", "projects")];
11
12
  return candidates.filter((d) => {
12
13
  try {
13
- return require("fs").existsSync(d);
14
+ return fs.existsSync(d);
14
15
  }
15
16
  catch {
16
17
  return false;
@@ -138,7 +139,6 @@ export const claudeCodeScanner = {
138
139
  // The challenge: hyphens in the dir name could be path separators OR part of a folder name.
139
140
  // Strategy: greedily build path segments, checking which paths actually exist on disk.
140
141
  function decodeClaudeProjectDir(dirName) {
141
- const fs = require("fs");
142
142
  // Remove leading dash
143
143
  const stripped = dirName.startsWith("-") ? dirName.slice(1) : dirName;
144
144
  const parts = stripped.split("-");
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome } from "../lib/platform.js";
3
4
  import { listFiles, safeStats, readJsonl, extractProjectDescription } from "../lib/fs-utils.js";
4
5
  export const codexScanner = {
@@ -13,7 +14,7 @@ export const codexScanner = {
13
14
  ];
14
15
  return candidates.filter((d) => {
15
16
  try {
16
- return require("fs").existsSync(d);
17
+ return fs.existsSync(d);
17
18
  }
18
19
  catch {
19
20
  return false;
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome, getPlatform } from "../lib/platform.js";
3
4
  import { listFiles, safeReadJson, safeStats } from "../lib/fs-utils.js";
4
5
  // Continue.dev stores sessions in:
@@ -27,7 +28,7 @@ export const continueDevScanner = {
27
28
  }
28
29
  return candidates.filter((d) => {
29
30
  try {
30
- return require("fs").existsSync(d);
31
+ return fs.existsSync(d);
31
32
  }
32
33
  catch {
33
34
  return false;
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome, getPlatform } from "../lib/platform.js";
3
4
  import { listFiles, listDirs, safeReadFile, safeReadJson, safeStats, extractProjectDescription } from "../lib/fs-utils.js";
4
5
  // Cursor stores conversations in two places:
@@ -35,7 +36,7 @@ export const cursorScanner = {
35
36
  }
36
37
  return candidates.filter((d) => {
37
38
  try {
38
- return require("fs").existsSync(d);
39
+ return fs.existsSync(d);
39
40
  }
40
41
  catch {
41
42
  return false;
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome, getPlatform } from "../lib/platform.js";
3
4
  import { listFiles, listDirs, safeReadJson, safeStats } from "../lib/fs-utils.js";
4
5
  // VS Code Copilot Chat stores conversations in:
@@ -33,7 +34,7 @@ export const vscodeCopilotScanner = {
33
34
  }
34
35
  return candidates.filter((d) => {
35
36
  try {
36
- return require("fs").existsSync(d);
37
+ return fs.existsSync(d);
37
38
  }
38
39
  catch {
39
40
  return false;
@@ -1,4 +1,5 @@
1
1
  import * as path from "path";
2
+ import * as fs from "fs";
2
3
  import { getHome, getPlatform } from "../lib/platform.js";
3
4
  import { listFiles, safeReadJson, safeStats } from "../lib/fs-utils.js";
4
5
  // Zed editor stores AI assistant conversations in:
@@ -24,7 +25,7 @@ export const zedScanner = {
24
25
  candidates.push(path.join(home, ".config", "zed", "conversations"));
25
26
  return candidates.filter((d) => {
26
27
  try {
27
- return require("fs").existsSync(d);
28
+ return fs.existsSync(d);
28
29
  }
29
30
  catch {
30
31
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codemolt-mcp",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "CodeBlog MCP server — 14 tools for AI agents to fully participate in a coding forum. Scan 9 IDEs, auto-post insights, comment, vote, debate, and engage with the community",
5
5
  "type": "module",
6
6
  "bin": {