@infinitedusky/indusk-mcp 1.11.2 → 1.11.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.
@@ -289,6 +289,11 @@ export async function init(projectRoot, options = {}) {
289
289
  const mcpConfig = JSON.parse(readFileSync(mcpJsonPath, "utf-8"));
290
290
  const cgcEnv = mcpConfig.mcpServers?.codegraphcontext?.env;
291
291
  if (cgcEnv?.FALKORDB_HOST === "falkordb.orb.local") {
292
+ execSync("claude mcp remove -s project codegraphcontext", {
293
+ cwd: projectRoot,
294
+ stdio: "pipe",
295
+ timeout: 10000,
296
+ });
292
297
  execSync(`claude mcp add -t stdio -s project -e DATABASE_TYPE=falkordb-remote -e FALKORDB_HOST=localhost -e FALKORDB_GRAPH_NAME=${cgcEnv.FALKORDB_GRAPH_NAME || `cgc-${projectName}`} -- codegraphcontext cgc mcp start`, { cwd: projectRoot, stdio: "pipe", timeout: 10000 });
293
298
  console.info(" migrated: codegraphcontext FALKORDB_HOST → localhost (indusk-infra)");
294
299
  }
@@ -241,6 +241,52 @@ export async function update(projectRoot) {
241
241
  else {
242
242
  console.info(" not installed (run init to install)");
243
243
  }
244
+ // 5b. Migrate stale MCP configs
245
+ const mcpJsonPath = join(projectRoot, ".mcp.json");
246
+ if (existsSync(mcpJsonPath)) {
247
+ try {
248
+ const mcpConfig = JSON.parse(readFileSync(mcpJsonPath, "utf-8"));
249
+ let mcpChanged = false;
250
+ // Migrate CGC: falkordb.orb.local → localhost (indusk-infra)
251
+ const cgcEnv = mcpConfig.mcpServers?.codegraphcontext?.env;
252
+ if (cgcEnv?.FALKORDB_HOST === "falkordb.orb.local") {
253
+ const { basename } = await import("node:path");
254
+ const projectName = basename(projectRoot);
255
+ const graphName = cgcEnv.FALKORDB_GRAPH_NAME || `cgc-${projectName}`;
256
+ try {
257
+ run("claude mcp remove -s project codegraphcontext");
258
+ run(`claude mcp add -t stdio -s project -e DATABASE_TYPE=falkordb-remote -e FALKORDB_HOST=localhost -e FALKORDB_GRAPH_NAME=${graphName} -- codegraphcontext cgc mcp start`);
259
+ console.info(" migrated: codegraphcontext FALKORDB_HOST → localhost");
260
+ mcpChanged = true;
261
+ }
262
+ catch {
263
+ console.info(" could not migrate codegraphcontext — update .mcp.json manually");
264
+ }
265
+ }
266
+ // Migrate indusk: npx without --yes → npx --yes
267
+ const induskArgs = mcpConfig.mcpServers?.indusk?.args;
268
+ if (induskArgs &&
269
+ Array.isArray(induskArgs) &&
270
+ induskArgs[0] === "@infinitedusky/indusk-mcp" &&
271
+ !induskArgs.includes("--yes")) {
272
+ try {
273
+ run("claude mcp remove -s project indusk");
274
+ run("claude mcp add -t stdio -s project -e PROJECT_ROOT=. -- indusk npx --yes @infinitedusky/indusk-mcp serve");
275
+ console.info(" migrated: indusk MCP → npx --yes");
276
+ mcpChanged = true;
277
+ }
278
+ catch {
279
+ console.info(" could not migrate indusk MCP — update .mcp.json manually");
280
+ }
281
+ }
282
+ if (!mcpChanged) {
283
+ console.info(" MCP config: current");
284
+ }
285
+ }
286
+ catch {
287
+ // ignore parse errors
288
+ }
289
+ }
244
290
  // 6. Sync built-in extensions
245
291
  console.info("\n[Built-in Extensions]\n");
246
292
  const builtinDir = join(packageRoot, "extensions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinitedusky/indusk-mcp",
3
- "version": "1.11.2",
3
+ "version": "1.11.4",
4
4
  "description": "InDusk development system — skills, MCP tools, and CLI for structured AI-assisted development",
5
5
  "type": "module",
6
6
  "files": [