@pragmalabs/mcp-studio 0.3.38
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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("child_process");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
|
|
7
|
+
const PLATFORM_MAP = {
|
|
8
|
+
"darwin-arm64": "@pragmalabs/mcp-studio-darwin-arm64",
|
|
9
|
+
"darwin-x64": "@pragmalabs/mcp-studio-darwin-x64",
|
|
10
|
+
"linux-x64": "@pragmalabs/mcp-studio-linux-x64",
|
|
11
|
+
"linux-arm64": "@pragmalabs/mcp-studio-linux-arm64",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function getBinaryPath() {
|
|
15
|
+
const key = `${os.platform()}-${os.arch()}`;
|
|
16
|
+
const pkg = PLATFORM_MAP[key];
|
|
17
|
+
if (!pkg) {
|
|
18
|
+
throw new Error(`mcp-studio: unsupported platform ${key}`);
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
return require(pkg);
|
|
22
|
+
} catch {
|
|
23
|
+
throw new Error(`mcp-studio: platform package "${pkg}" not installed. Try reinstalling mcp-studio.`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const result = spawnSync(getBinaryPath(), process.argv.slice(2), { stdio: "inherit" });
|
|
28
|
+
process.exit(result.status ?? 1);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pragmalabs/mcp-studio",
|
|
3
|
+
"version": "0.3.38",
|
|
4
|
+
"description": "A local studio to debug MCP Servers and MCP Applications",
|
|
5
|
+
"license": "Unlicense",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/pragmalabs-tech/mcp-studio.git"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"mcp-studio": "bin/mcp-studio.js"
|
|
12
|
+
},
|
|
13
|
+
"optionalDependencies": {
|
|
14
|
+
"@pragmalabs/mcp-studio-darwin-arm64": "0.3.38",
|
|
15
|
+
"@pragmalabs/mcp-studio-darwin-x64": "0.3.38",
|
|
16
|
+
"@pragmalabs/mcp-studio-linux-x64": "0.3.38",
|
|
17
|
+
"@pragmalabs/mcp-studio-linux-arm64": "0.3.38"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=14"
|
|
21
|
+
}
|
|
22
|
+
}
|