@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 +3 -2
- package/dist/cli.mjs +3 -2
- package/package.json +1 -1
- package/src/cli.ts +4 -3
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
|
-
|
|
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
|
-
|
|
38
|
+
"-e",
|
|
37
39
|
`ARTYFACTS_API_KEY=${apiKey}`,
|
|
38
|
-
"artyfacts",
|
|
39
40
|
"--",
|
|
40
41
|
"npx",
|
|
41
42
|
"-y",
|
package/package.json
CHANGED
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
|
|
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
|
-
|
|
58
|
-
'artyfacts',
|
|
59
|
+
'-e', `ARTYFACTS_API_KEY=${apiKey}`,
|
|
59
60
|
'--',
|
|
60
61
|
'npx', '-y', '@artyfacts/mcp-server',
|
|
61
62
|
], {
|