mindlink 2.0.1 → 2.0.2
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/cli.js +6 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command as Command20 } from "commander";
|
|
|
6
6
|
import chalk20 from "chalk";
|
|
7
7
|
|
|
8
8
|
// src/utils/version.ts
|
|
9
|
-
var VERSION = "2.0.
|
|
9
|
+
var VERSION = "2.0.2";
|
|
10
10
|
|
|
11
11
|
// src/commands/init.ts
|
|
12
12
|
import { Command } from "commander";
|
|
@@ -605,7 +605,7 @@ Examples:
|
|
|
605
605
|
const cursorMcpDest = join3(projectPath, ".cursor", "mcp.json");
|
|
606
606
|
if (!existsSync2(cursorMcpDest)) {
|
|
607
607
|
mkdirSync2(join3(projectPath, ".cursor"), { recursive: true });
|
|
608
|
-
const cursorMcp = { mcpServers: { mindlink: { command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } } } };
|
|
608
|
+
const cursorMcp = { mcpServers: { mindlink: { type: "stdio", command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } } } };
|
|
609
609
|
writeFileSync2(cursorMcpDest, JSON.stringify(cursorMcp, null, 2));
|
|
610
610
|
created.push(`.cursor/mcp.json${" ".repeat(20)} ${chalk2.dim("Cursor MCP server")}`);
|
|
611
611
|
}
|
|
@@ -623,7 +623,7 @@ Examples:
|
|
|
623
623
|
const copilotMcpDest = join3(projectPath, ".vscode", "mcp.json");
|
|
624
624
|
if (!existsSync2(copilotMcpDest)) {
|
|
625
625
|
mkdirSync2(join3(projectPath, ".vscode"), { recursive: true });
|
|
626
|
-
const copilotMcp = {
|
|
626
|
+
const copilotMcp = { servers: { mindlink: { command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } } } };
|
|
627
627
|
writeFileSync2(copilotMcpDest, JSON.stringify(copilotMcp, null, 2));
|
|
628
628
|
created.push(`.vscode/mcp.json${" ".repeat(19)} ${chalk2.dim("GitHub Copilot MCP server")}`);
|
|
629
629
|
}
|
|
@@ -1612,7 +1612,7 @@ Examples:
|
|
|
1612
1612
|
...existing,
|
|
1613
1613
|
mcpServers: {
|
|
1614
1614
|
...typeof existing.mcpServers === "object" && existing.mcpServers !== null ? existing.mcpServers : {},
|
|
1615
|
-
mindlink: { command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } }
|
|
1615
|
+
mindlink: { type: "stdio", command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } }
|
|
1616
1616
|
}
|
|
1617
1617
|
};
|
|
1618
1618
|
writeFileSync6(cursorMcpDest, JSON.stringify(merged, null, 2));
|
|
@@ -1643,8 +1643,8 @@ Examples:
|
|
|
1643
1643
|
}
|
|
1644
1644
|
const merged = {
|
|
1645
1645
|
...existing,
|
|
1646
|
-
|
|
1647
|
-
...typeof existing.
|
|
1646
|
+
servers: {
|
|
1647
|
+
...typeof existing.servers === "object" && existing.servers !== null ? existing.servers : {},
|
|
1648
1648
|
mindlink: { command: "mindlink", args: ["mcp"], env: { MINDLINK_PROJECT_PATH: projectPath } }
|
|
1649
1649
|
}
|
|
1650
1650
|
};
|