kiviui-mcp 1.0.4 → 1.0.6

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/dist/install.js +6 -29
  2. 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
- // Cursor doesn't have a standard global json for this yet, but we can instruct the user
58
- // or try to update a known cursor path if it exists.
59
- // For now, let's just give instructions since cursor configuration is often project-specific or manual in UI.
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
- // VSCode doesn't have native MCP support yet without extensions like Cline or Roo.
70
- // We will provide instructions for Cline.
71
- let configPath = "";
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":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiviui-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Local MCP server for Kivi UI designed for Claude Desktop and VS Code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",