greenrun-cli 0.1.1 → 0.1.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/commands/init.js +2 -2
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -66,12 +66,12 @@ async function validateToken(token) {
|
|
|
66
66
|
}
|
|
67
67
|
function configureMcpLocal(token) {
|
|
68
68
|
try {
|
|
69
|
-
execSync(`claude mcp add --transport stdio -e GREENRUN_API_TOKEN=${token}
|
|
69
|
+
execSync(`claude mcp add greenrun --transport stdio -e GREENRUN_API_TOKEN=${token} -- npx -y greenrun-cli@latest`, { stdio: 'inherit' });
|
|
70
70
|
}
|
|
71
71
|
catch {
|
|
72
72
|
console.error('\nFailed to run "claude mcp add". Make sure Claude Code is installed and in your PATH.');
|
|
73
73
|
console.error('You can add the MCP server manually by running:\n');
|
|
74
|
-
console.error(` claude mcp add --transport stdio -e GREENRUN_API_TOKEN=${token}
|
|
74
|
+
console.error(` claude mcp add greenrun --transport stdio -e GREENRUN_API_TOKEN=${token} -- npx -y greenrun-cli@latest\n`);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
function configureMcpProject(token) {
|