kiviui-mcp 1.0.3 → 1.0.5
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/install.js +6 -29
- package/package.json +1 -1
package/dist/install.js
CHANGED
|
@@ -54,38 +54,15 @@ export async function installForClient(client) {
|
|
|
54
54
|
break;
|
|
55
55
|
}
|
|
56
56
|
case "cursor": {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
console.log("To use Kivi UI MCP in Cursor:");
|
|
61
|
-
console.log("1. Open Cursor Settings (Cursor Settings > Features > MCP)");
|
|
62
|
-
console.log("2. Click '+ Add New MCP Server'");
|
|
63
|
-
console.log("3. Type: command");
|
|
64
|
-
console.log(`4. Name: ${serverName}`);
|
|
65
|
-
console.log(`5. Command: ${MCP_SERVER_COMMAND} ${MCP_SERVER_ARGS.join(" ")}`);
|
|
57
|
+
const configPath = path.join(process.cwd(), ".cursor", "mcp.json");
|
|
58
|
+
await updateJsonConfig(configPath, serverName, MCP_SERVER_COMMAND, MCP_SERVER_ARGS);
|
|
59
|
+
console.log(`Successfully configured Kivi UI MCP for Cursor in ${configPath}`);
|
|
66
60
|
break;
|
|
67
61
|
}
|
|
68
62
|
case "vscode": {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (isMac) {
|
|
73
|
-
configPath = path.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json");
|
|
74
|
-
}
|
|
75
|
-
else if (isWindows) {
|
|
76
|
-
configPath = path.join(process.env.APPDATA || path.join(homeDir, "AppData", "Roaming"), "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json");
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
configPath = path.join(homeDir, ".config", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json");
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
await updateJsonConfig(configPath, serverName, MCP_SERVER_COMMAND, MCP_SERVER_ARGS);
|
|
83
|
-
console.log("Successfully configured Kivi UI MCP for Cline/Roo Code in VS Code.");
|
|
84
|
-
}
|
|
85
|
-
catch (err) {
|
|
86
|
-
console.log("Could not find Cline MCP config. To configure manually in VS Code:");
|
|
87
|
-
console.log(`Command: ${MCP_SERVER_COMMAND} ${MCP_SERVER_ARGS.join(" ")}`);
|
|
88
|
-
}
|
|
63
|
+
const configPath = path.join(process.cwd(), ".vscode", "cline_mcp_settings.json");
|
|
64
|
+
await updateJsonConfig(configPath, serverName, MCP_SERVER_COMMAND, MCP_SERVER_ARGS);
|
|
65
|
+
console.log(`Successfully configured Kivi UI MCP for VS Code (Cline) in ${configPath}`);
|
|
89
66
|
break;
|
|
90
67
|
}
|
|
91
68
|
case "antigravity":
|