composter-cli 1.0.10 → 1.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "composter-cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "description": "Your personal vault for React components. Push, pull, and sync reusable components across projects — like shadcn/ui but for YOUR code.",
6
6
  "main": "src/index.js",
@@ -40,5 +40,9 @@
40
40
  "dotenv": "^16.4.5",
41
41
  "inquirer": "^13.0.1",
42
42
  "node-fetch": "^3.3.2"
43
- }
43
+ },
44
+ "files": [
45
+ "src/",
46
+ "bin/"
47
+ ]
44
48
  }
@@ -0,0 +1,10 @@
1
+ // MCP configuration has moved to a separate package: composter-mcp
2
+ // This command now redirects users to the new package
3
+
4
+ export async function initMcp(client) {
5
+ console.log("\nšŸ“¦ MCP Server has moved to a separate package!\n");
6
+ console.log("To configure MCP for your AI assistant, run:\n");
7
+ console.log(` npx composter-mcp init ${client || "<client>"}\n`);
8
+ console.log("Supported clients: claude, cursor, vscode, windsurf\n");
9
+ console.log("For more info: https://www.npmjs.com/package/composter-mcp\n");
10
+ }
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ import { mkcat } from "./commands/mkcat.js";
6
6
  import { listCategories } from "./commands/listCat.js";
7
7
  import { pushComponent } from "./commands/push.js";
8
8
  import { pullComponent } from "./commands/pull.js";
9
+ import { initMcp } from "./commands/init.js";
9
10
  import { createRequire } from "module";
10
11
 
11
12
  const require = createRequire(import.meta.url);
@@ -23,6 +24,13 @@ program
23
24
  .description("Log into your Composter account")
24
25
  .action(login);
25
26
 
27
+ program
28
+ .command("init [client]")
29
+ .description("Shows how to configure MCP for your AI assistant")
30
+ .action((client) => {
31
+ initMcp(client);
32
+ });
33
+
26
34
  program
27
35
  .command("mkcat <category-name>")
28
36
  .description("Create a new category")