@edgescaleai/cube-mcp 0.3.28-dev.20260527152356 → 0.3.28-dev.20260527184452

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.
Files changed (2) hide show
  1. package/bin/cube-mcp.js +13 -13
  2. package/package.json +1 -1
package/bin/cube-mcp.js CHANGED
@@ -3,20 +3,20 @@
3
3
  const { spawnSync } = require('child_process');
4
4
  const { version } = require('../package.json');
5
5
 
6
- // Dev builds (e.g. 0.3.28-dev.20260520) need --prerelease allow
7
- // so uvx picks up the matching .dev PyPI version.
8
- const isDev = version.includes('-dev.');
6
+ // Dev builds: npm version 0.3.28-dev.20260520151603
7
+ // maps to PyPI version 0.3.28.dev20260520151603 (PEP 440).
8
+ // We pin the exact PyPI version so --prerelease allow isn't needed
9
+ // (which would also allow pre-release versions of dependencies like httpx).
9
10
  const pkg = 'edgescaleai-cube-mcp';
10
-
11
- const runners = isDev
12
- ? [
13
- { cmd: 'uvx', args: ['--prerelease', 'allow', pkg] },
14
- { cmd: 'pipx', args: ['run', '--pip-args=--pre', pkg] },
15
- ]
16
- : [
17
- { cmd: 'uvx', args: [pkg] },
18
- { cmd: 'pipx', args: ['run', pkg] },
19
- ];
11
+ const devMatch = version.match(/^(.+)-dev\.(\d+)$/);
12
+ const pypiSpec = devMatch
13
+ ? `${pkg}==${devMatch[1]}.dev${devMatch[2]}`
14
+ : pkg;
15
+
16
+ const runners = [
17
+ { cmd: 'uvx', args: ['--from', pypiSpec, 'cube-mcp'] },
18
+ { cmd: 'pipx', args: ['run', '--spec', pypiSpec, 'cube-mcp'] },
19
+ ];
20
20
 
21
21
  for (const { cmd, args } of runners) {
22
22
  const result = spawnSync(cmd, args, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgescaleai/cube-mcp",
3
- "version": "0.3.28-dev.20260527152356",
3
+ "version": "0.3.28-dev.20260527184452",
4
4
  "description": "MCP server for EdgescaleAI Cube cluster management and Apollo deployments",
5
5
  "bin": {
6
6
  "cube-mcp": "./bin/cube-mcp.js"