@artyfacts/claude 1.3.3 → 1.3.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.
package/dist/cli.js CHANGED
@@ -789,12 +789,13 @@ function configureMcp(apiKey, baseUrl) {
789
789
  const result = (0, import_child_process2.spawnSync)("claude", [
790
790
  "mcp",
791
791
  "add",
792
+ "artyfacts",
793
+ // Name first!
792
794
  "-s",
793
795
  "user",
794
796
  // Available across all projects
795
- `-e`,
797
+ "-e",
796
798
  `ARTYFACTS_API_KEY=${apiKey}`,
797
- "artyfacts",
798
799
  "--",
799
800
  "npx",
800
801
  "-y",
package/dist/cli.mjs CHANGED
@@ -30,12 +30,13 @@ function configureMcp(apiKey, baseUrl) {
30
30
  const result = spawnSync("claude", [
31
31
  "mcp",
32
32
  "add",
33
+ "artyfacts",
34
+ // Name first!
33
35
  "-s",
34
36
  "user",
35
37
  // Available across all projects
36
- `-e`,
38
+ "-e",
37
39
  `ARTYFACTS_API_KEY=${apiKey}`,
38
- "artyfacts",
39
40
  "--",
40
41
  "npx",
41
42
  "-y",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artyfacts/claude",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Claude adapter for Artyfacts - Execute tasks using Claude Code CLI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/cli.ts CHANGED
@@ -50,12 +50,13 @@ function configureMcp(apiKey: string, baseUrl: string): boolean {
50
50
 
51
51
  try {
52
52
  // Add MCP server with environment variable
53
- // Format: claude mcp add -e KEY=value name -- command
53
+ // Format: claude mcp add <name> -s user -e KEY=value -- command
54
+ // (name must come before options!)
54
55
  const result = spawnSync('claude', [
55
56
  'mcp', 'add',
57
+ 'artyfacts', // Name first!
56
58
  '-s', 'user', // Available across all projects
57
- `-e`, `ARTYFACTS_API_KEY=${apiKey}`,
58
- 'artyfacts',
59
+ '-e', `ARTYFACTS_API_KEY=${apiKey}`,
59
60
  '--',
60
61
  'npx', '-y', '@artyfacts/mcp-server',
61
62
  ], {