nscript-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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # nscript-mcp
2
2
 
3
- Install the NScript MCP server with npx -y nscript-mcp or add it as a project
4
- dependency. The package includes the NScript CLI and MCP server for Linux
5
- x86_64 and macOS Apple Silicon.
3
+ Install the NScript MCP server with npx -y nscript-mcp@0.3.6 or add it as a project
4
+ dependency. The package includes the NScript CLI and MCP server for Linux x86_64/arm64,
5
+ macOS Apple Silicon, and Windows x64/arm64.
6
6
 
7
7
  The default transport is stdio. Add --http to run the opt-in Streamable HTTP
8
8
  transport. HTTP mode requires NSCRIPT_MCP_BEARER_TOKEN; configure
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -7,20 +7,21 @@ const path = require('node:path');
7
7
 
8
8
  const platform = process.platform;
9
9
  const arch = process.arch;
10
- const target = platform === 'linux' && arch === 'x64'
11
- ? 'linux-x64'
12
- : platform === 'darwin' && arch === 'arm64'
13
- ? 'darwin-arm64'
14
- : null;
10
+ const executable = platform === 'win32' ? '.exe' : '';
11
+ const target = {
12
+ linux: { x64: 'linux-x64', arm64: 'linux-arm64' },
13
+ darwin: { arm64: 'darwin-arm64' },
14
+ win32: { x64: 'win-x64', arm64: 'win-arm64' }
15
+ }[platform]?.[arch] ?? null;
15
16
 
16
17
  if (!target) {
17
- process.stderr.write('nscript-mcp: unsupported platform ' + platform + '/' + arch + '; supported: linux/x64, darwin/arm64\n');
18
+ process.stderr.write('nscript-mcp: unsupported platform ' + platform + '/' + arch + '; supported: linux/x64, linux/arm64, darwin/arm64, win32/x64, win32/arm64\n');
18
19
  process.exit(1);
19
20
  }
20
21
 
21
22
  const binDir = path.join(__dirname, target);
22
- const cli = path.join(binDir, 'nscript');
23
- const server = path.join(binDir, 'nscript-mcp');
23
+ const cli = path.join(binDir, 'nscript' + executable);
24
+ const server = path.join(binDir, 'nscript-mcp' + executable);
24
25
  if (!existsSync(cli) || !existsSync(server)) {
25
26
  process.stderr.write('nscript-mcp: bundled binaries are missing; reinstall the package\n');
26
27
  process.exit(1);
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nscript-mcp",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "MCP server for checking, inspecting, and simulating NScript programs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -14,8 +14,14 @@
14
14
  "bin/nscript-mcp.js",
15
15
  "bin/linux-x64/nscript",
16
16
  "bin/linux-x64/nscript-mcp",
17
+ "bin/linux-arm64/nscript",
18
+ "bin/linux-arm64/nscript-mcp",
17
19
  "bin/darwin-arm64/nscript",
18
20
  "bin/darwin-arm64/nscript-mcp",
21
+ "bin/win-x64/nscript.exe",
22
+ "bin/win-x64/nscript-mcp.exe",
23
+ "bin/win-arm64/nscript.exe",
24
+ "bin/win-arm64/nscript-mcp.exe",
19
25
  "README.md",
20
26
  "LICENSE"
21
27
  ],