@volute_cvc/cvc-mcp 0.3.4 โ 0.3.5
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/bin/cvc-mcp.js +1 -1
- package/bin/cvc.js +1 -1
- package/package.json +1 -1
- package/test-local-install.sh +29 -0
package/bin/cvc-mcp.js
CHANGED
|
@@ -44,7 +44,7 @@ function download(url, dest) {
|
|
|
44
44
|
return new Promise((resolve, reject) => {
|
|
45
45
|
const file = fs.createWriteStream(dest);
|
|
46
46
|
https.get(url, (response) => {
|
|
47
|
-
if (
|
|
47
|
+
if ([301, 302, 307, 308].includes(response.statusCode)) {
|
|
48
48
|
return download(response.headers.location, dest).then(resolve).catch(reject);
|
|
49
49
|
}
|
|
50
50
|
if (response.statusCode !== 200) {
|
package/bin/cvc.js
CHANGED
|
@@ -44,7 +44,7 @@ function download(url, dest) {
|
|
|
44
44
|
return new Promise((resolve, reject) => {
|
|
45
45
|
const file = fs.createWriteStream(dest);
|
|
46
46
|
https.get(url, (response) => {
|
|
47
|
-
if (
|
|
47
|
+
if ([301, 302, 307, 308].includes(response.statusCode)) {
|
|
48
48
|
return download(response.headers.location, dest).then(resolve).catch(reject);
|
|
49
49
|
}
|
|
50
50
|
if (response.statusCode !== 200) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
LOCAL_INSTALL=false
|
|
5
|
+
if [ "$1" == "--local" ]; then
|
|
6
|
+
LOCAL_INSTALL=true
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
echo "๐งน Cleaning up global cvc-mcp installation..."
|
|
10
|
+
npm uninstall -g @volute_cvc/cvc-mcp || true
|
|
11
|
+
|
|
12
|
+
echo "๐๏ธ Removing downloaded binary cache..."
|
|
13
|
+
rm -rf ~/.cvc/mcp-cache
|
|
14
|
+
|
|
15
|
+
if [ "$LOCAL_INSTALL" = true ]; then
|
|
16
|
+
echo "๐ฆ Packing local npm package..."
|
|
17
|
+
cd "$(dirname "$0")"
|
|
18
|
+
TARBALL=$(npm pack)
|
|
19
|
+
|
|
20
|
+
echo "๐ Installing local tarball globally..."
|
|
21
|
+
npm install -g "./$TARBALL"
|
|
22
|
+
else
|
|
23
|
+
echo "๐ Installing from NPM registry..."
|
|
24
|
+
npm install -g @volute_cvc/cvc-mcp
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
echo "โ
Installed successfully!"
|
|
28
|
+
echo "You can now test the CLI by running: cvc --version"
|
|
29
|
+
echo "And test the MCP server by running: cvc-mcp"
|