nscript-mcp 0.0.0-stage → 0.3.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 imattau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
- # Temporary Holding Version
1
+ # nscript-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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.
6
+
7
+ The default transport is stdio. Add --http to run the opt-in Streamable HTTP
8
+ transport. HTTP mode requires NSCRIPT_MCP_BEARER_TOKEN; configure
9
+ NSCRIPT_MCP_ALLOWED_ORIGINS and, when serving a non-local hostname,
10
+ NSCRIPT_MCP_ALLOWED_HOSTS.
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { spawn } = require('node:child_process');
5
+ const { existsSync } = require('node:fs');
6
+ const path = require('node:path');
7
+
8
+ const platform = process.platform;
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;
15
+
16
+ if (!target) {
17
+ process.stderr.write('nscript-mcp: unsupported platform ' + platform + '/' + arch + '; supported: linux/x64, darwin/arm64\n');
18
+ process.exit(1);
19
+ }
20
+
21
+ const binDir = path.join(__dirname, target);
22
+ const cli = path.join(binDir, 'nscript');
23
+ const server = path.join(binDir, 'nscript-mcp');
24
+ if (!existsSync(cli) || !existsSync(server)) {
25
+ process.stderr.write('nscript-mcp: bundled binaries are missing; reinstall the package\n');
26
+ process.exit(1);
27
+ }
28
+
29
+ const child = spawn(server, process.argv.slice(2), {
30
+ stdio: 'inherit',
31
+ env: { ...process.env, NSCRIPT_CLI_PATH: cli }
32
+ });
33
+ child.on('error', error => {
34
+ process.stderr.write('nscript-mcp: could not start server: ' + error.message + '\n');
35
+ process.exitCode = 1;
36
+ });
37
+ child.on('exit', (code, signal) => {
38
+ process.exitCode = signal ? 1 : (code ?? 1);
39
+ });
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "nscript-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.4",
4
+ "description": "MCP server for checking, inspecting, and simulating NScript programs",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/imattau/nscript.git"
9
+ },
10
+ "bin": {
11
+ "nscript-mcp": "bin/nscript-mcp.js"
12
+ },
13
+ "files": [
14
+ "bin/nscript-mcp.js",
15
+ "bin/linux-x64/nscript",
16
+ "bin/linux-x64/nscript-mcp",
17
+ "bin/darwin-arm64/nscript",
18
+ "bin/darwin-arm64/nscript-mcp",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ }
28
+ }