@artyfacts/claude 1.3.1 → 1.3.2
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 +2 -2
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/src/cli.ts +3 -2
package/dist/cli.js
CHANGED
|
@@ -794,9 +794,9 @@ function configureMcp(apiKey, baseUrl) {
|
|
|
794
794
|
"--scope",
|
|
795
795
|
"user",
|
|
796
796
|
// Available across all projects
|
|
797
|
-
"
|
|
797
|
+
"-e",
|
|
798
798
|
`ARTYFACTS_API_KEY=${apiKey}`,
|
|
799
|
-
"
|
|
799
|
+
"-e",
|
|
800
800
|
`ARTYFACTS_BASE_URL=${baseUrl}`,
|
|
801
801
|
"artyfacts",
|
|
802
802
|
"--",
|
package/dist/cli.mjs
CHANGED
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 variables
|
|
53
|
+
// Use -e KEY=value format (separate -e for each)
|
|
53
54
|
const result = spawnSync('claude', [
|
|
54
55
|
'mcp', 'add',
|
|
55
56
|
'--transport', 'stdio',
|
|
56
57
|
'--scope', 'user', // Available across all projects
|
|
57
|
-
'
|
|
58
|
-
'
|
|
58
|
+
'-e', `ARTYFACTS_API_KEY=${apiKey}`,
|
|
59
|
+
'-e', `ARTYFACTS_BASE_URL=${baseUrl}`,
|
|
59
60
|
'artyfacts',
|
|
60
61
|
'--',
|
|
61
62
|
'npx', '-y', '@artyfacts/mcp-server',
|