@volute_cvc/cvc-mcp 0.3.4 โ†’ 0.3.6

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 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 (response.statusCode === 301 || response.statusCode === 302) {
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 (response.statusCode === 301 || response.statusCode === 302) {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@volute_cvc/cvc-mcp",
3
- "version": "0.3.4",
4
- "description": "CVC Model Context Protocol Server",
3
+ "version": "0.3.6",
4
+ "description": "NPM distributor for CVC MCP Server",
5
5
  "bin": {
6
6
  "cvc-mcp": "./bin/cvc-mcp.js",
7
7
  "cvc": "./bin/cvc.js"
@@ -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"