scanruler-mcp 0.3.0 → 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.
@@ -1,8 +1,15 @@
1
- #!/usr/bin/env node
2
- // SPDX-License-Identifier: AGPL-3.0-only
3
- import { main } from '../src/main.js'
4
-
5
- main().catch((error) => {
6
- process.stderr.write(`[scanruler-mcp] ${error instanceof Error ? error.message : String(error)}\n`)
7
- process.exit(1)
8
- })
1
+ #!/usr/bin/env node
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
+ // The launcher: a newer copy of the server, fetched in the background by an
4
+ // earlier start, runs in this one's place (src/update.js); otherwise this
5
+ // one does. Nothing here waits on the network.
6
+ import { launch } from '../src/update.js'
7
+
8
+ const code = await launch(process.argv.slice(2))
9
+ if (code !== null) process.exit(code)
10
+
11
+ const { main } = await import('../src/main.js')
12
+ main().catch((error) => {
13
+ process.stderr.write(`[scanruler-mcp] ${error instanceof Error ? error.message : String(error)}\n`)
14
+ process.exit(1)
15
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scanruler-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Drive ScanRuler, the 3D-scan measuring tool, from an AI agent: a local MCP server that reaches the ScanRuler tab open in your browser.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
@@ -11,11 +11,22 @@
11
11
  "url": "git+https://github.com/CNCKitchen/scanruler.git",
12
12
  "directory": "mcp"
13
13
  },
14
- "keywords": ["mcp", "model-context-protocol", "3d-scan", "metrology", "scanruler"],
14
+ "keywords": [
15
+ "mcp",
16
+ "model-context-protocol",
17
+ "3d-scan",
18
+ "metrology",
19
+ "scanruler"
20
+ ],
15
21
  "bin": {
16
22
  "scanruler-mcp": "bin/scanruler-mcp.js"
17
23
  },
18
- "files": ["bin", "src", "README.md", "LICENSE"],
24
+ "files": [
25
+ "bin",
26
+ "src",
27
+ "README.md",
28
+ "LICENSE"
29
+ ],
19
30
  "engines": {
20
31
  "node": ">=22"
21
32
  },