@artyfacts/claude 1.3.2 → 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 -6
- package/dist/cli.mjs +3 -6
- package/package.json +1 -1
- package/src/cli.ts +5 -6
package/dist/cli.js
CHANGED
|
@@ -789,16 +789,13 @@ function configureMcp(apiKey, baseUrl) {
|
|
|
789
789
|
const result = (0, import_child_process2.spawnSync)("claude", [
|
|
790
790
|
"mcp",
|
|
791
791
|
"add",
|
|
792
|
-
"
|
|
793
|
-
|
|
794
|
-
"
|
|
792
|
+
"artyfacts",
|
|
793
|
+
// Name first!
|
|
794
|
+
"-s",
|
|
795
795
|
"user",
|
|
796
796
|
// Available across all projects
|
|
797
797
|
"-e",
|
|
798
798
|
`ARTYFACTS_API_KEY=${apiKey}`,
|
|
799
|
-
"-e",
|
|
800
|
-
`ARTYFACTS_BASE_URL=${baseUrl}`,
|
|
801
|
-
"artyfacts",
|
|
802
799
|
"--",
|
|
803
800
|
"npx",
|
|
804
801
|
"-y",
|
package/dist/cli.mjs
CHANGED
|
@@ -30,16 +30,13 @@ function configureMcp(apiKey, baseUrl) {
|
|
|
30
30
|
const result = spawnSync("claude", [
|
|
31
31
|
"mcp",
|
|
32
32
|
"add",
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"
|
|
33
|
+
"artyfacts",
|
|
34
|
+
// Name first!
|
|
35
|
+
"-s",
|
|
36
36
|
"user",
|
|
37
37
|
// Available across all projects
|
|
38
38
|
"-e",
|
|
39
39
|
`ARTYFACTS_API_KEY=${apiKey}`,
|
|
40
|
-
"-e",
|
|
41
|
-
`ARTYFACTS_BASE_URL=${baseUrl}`,
|
|
42
|
-
"artyfacts",
|
|
43
40
|
"--",
|
|
44
41
|
"npx",
|
|
45
42
|
"-y",
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -49,15 +49,14 @@ function configureMcp(apiKey: string, baseUrl: string): boolean {
|
|
|
49
49
|
console.log('🔧 Configuring Artyfacts tools for Claude Code...');
|
|
50
50
|
|
|
51
51
|
try {
|
|
52
|
-
// Add MCP server with environment
|
|
53
|
-
//
|
|
52
|
+
// Add MCP server with environment variable
|
|
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',
|
|
56
|
-
'
|
|
57
|
-
'
|
|
57
|
+
'artyfacts', // Name first!
|
|
58
|
+
'-s', 'user', // Available across all projects
|
|
58
59
|
'-e', `ARTYFACTS_API_KEY=${apiKey}`,
|
|
59
|
-
'-e', `ARTYFACTS_BASE_URL=${baseUrl}`,
|
|
60
|
-
'artyfacts',
|
|
61
60
|
'--',
|
|
62
61
|
'npx', '-y', '@artyfacts/mcp-server',
|
|
63
62
|
], {
|