microsandbox-mcp 0.3.14 → 0.4.1
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/microsandbox-mcp.js +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -7
- package/postinstall.cjs +0 -39
package/bin/microsandbox-mcp.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { registerVolumeTools } from "./tools/volume.js";
|
|
|
7
7
|
import { registerMetricsTools } from "./tools/metrics.js";
|
|
8
8
|
const server = new McpServer({
|
|
9
9
|
name: "microsandbox",
|
|
10
|
-
version: "0.3.
|
|
10
|
+
version: "0.3.8",
|
|
11
11
|
});
|
|
12
12
|
registerSandboxTools(server);
|
|
13
13
|
registerExecTools(server);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC7B,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC1B,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAChC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAC5B,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsandbox-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "MCP server for microsandbox — manage microVM sandboxes from any AI agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,18 +9,16 @@
|
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"bin"
|
|
13
|
-
"postinstall.cjs"
|
|
12
|
+
"bin"
|
|
14
13
|
],
|
|
15
14
|
"scripts": {
|
|
16
15
|
"build": "tsc",
|
|
17
16
|
"dev": "tsc --watch",
|
|
18
|
-
"start": "node dist/index.js"
|
|
19
|
-
"postinstall": "node postinstall.cjs"
|
|
17
|
+
"start": "node dist/index.js"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
20
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
23
|
-
"microsandbox": "^0.
|
|
21
|
+
"microsandbox": "^0.4.1",
|
|
24
22
|
"zod": "^4.3.6"
|
|
25
23
|
},
|
|
26
24
|
"devDependencies": {
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
"@types/node": "^22.0.0"
|
|
29
27
|
},
|
|
30
28
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
29
|
+
"node": ">=22"
|
|
32
30
|
},
|
|
33
31
|
"license": "Apache-2.0",
|
|
34
32
|
"repository": {
|
package/postinstall.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Re-exports the microsandbox SDK postinstall to ensure msb + libkrunfw are available.
|
|
4
|
-
// The microsandbox npm package already handles this in its own postinstall, but when
|
|
5
|
-
// installed via npx (which may use a cache), the postinstall might not re-run.
|
|
6
|
-
// This script ensures the runtime dependencies are always present.
|
|
7
|
-
|
|
8
|
-
const { execFileSync } = require("child_process");
|
|
9
|
-
const fs = require("fs");
|
|
10
|
-
const os = require("os");
|
|
11
|
-
const path = require("path");
|
|
12
|
-
|
|
13
|
-
const BASE_DIR = path.join(os.homedir(), ".microsandbox");
|
|
14
|
-
const BIN_DIR = path.join(BASE_DIR, "bin");
|
|
15
|
-
const MSB_PATH = path.join(BIN_DIR, "msb");
|
|
16
|
-
|
|
17
|
-
function isInstalled() {
|
|
18
|
-
if (!fs.existsSync(MSB_PATH)) return false;
|
|
19
|
-
try {
|
|
20
|
-
execFileSync(MSB_PATH, ["--version"], { encoding: "utf8", stdio: "pipe" });
|
|
21
|
-
return true;
|
|
22
|
-
} catch {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (!isInstalled()) {
|
|
28
|
-
// Delegate to the microsandbox SDK's postinstall by requiring it directly.
|
|
29
|
-
try {
|
|
30
|
-
const sdkPostinstall = require.resolve("microsandbox/postinstall.js");
|
|
31
|
-
require(sdkPostinstall);
|
|
32
|
-
} catch {
|
|
33
|
-
console.error(
|
|
34
|
-
"microsandbox-mcp: msb runtime not found. Install manually:\n" +
|
|
35
|
-
" curl -fsSL https://install.microsandbox.dev | sh"
|
|
36
|
-
);
|
|
37
|
-
// Don't fail npm install.
|
|
38
|
-
}
|
|
39
|
-
}
|