mcp-3d-printer-server 1.2.4 → 1.2.5

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,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ var _a;
3
+ (_a = process.env).MCP_TRANSPORT ?? (_a.MCP_TRANSPORT = "streamable-http");
4
+ if (!process.env.MCP_HTTP_PORT && process.env.HTTP_PORT) {
5
+ process.env.MCP_HTTP_PORT = process.env.HTTP_PORT;
6
+ }
7
+ void import("./index.js");
8
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ var _a;
3
+ (_a = process.env).MCP_TRANSPORT ?? (_a.MCP_TRANSPORT = "streamable-http");
4
+ if (!process.env.MCP_HTTP_PORT && process.env.SSE_PORT) {
5
+ process.env.MCP_HTTP_PORT = process.env.SSE_PORT;
6
+ }
7
+ void import("./index.js");
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-3d-printer-server",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "MCP server for connecting Claude with 3D printer management systems",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://github.com/DMontgomery40/mcp-3D-printer-server",
@@ -15,25 +15,33 @@
15
15
  "inspect": "npm run build && npx @modelcontextprotocol/inspector dist/index.js"
16
16
  },
17
17
  "bin": {
18
- "mcp-3d-printer-server": "./dist/index.js"
18
+ "mcp-3d-printer-server": "./dist/index.js",
19
+ "mcp-3d-printer-server-http": "./dist/http-server.js",
20
+ "mcp-3d-printer-server-sse": "./dist/sse-server.js"
19
21
  },
20
22
  "files": [
21
23
  "dist/3mf_parser.d.ts",
22
24
  "dist/3mf_parser.js",
23
25
  "dist/fulu-orca.d.ts",
24
26
  "dist/fulu-orca.js",
27
+ "dist/http-server.d.ts",
28
+ "dist/http-server.js",
25
29
  "dist/index.d.ts",
26
30
  "dist/index.js",
27
31
  "dist/index.js.map",
28
32
  "dist/printers",
33
+ "dist/sse-server.d.ts",
34
+ "dist/sse-server.js",
29
35
  "dist/stl",
30
36
  "dist/test",
31
37
  "dist/types.d.ts",
32
38
  "dist/types.js",
33
39
  "src/3mf_parser.ts",
34
40
  "src/fulu-orca.ts",
41
+ "src/http-server.ts",
35
42
  "src/index.ts",
36
43
  "src/printers",
44
+ "src/sse-server.ts",
37
45
  "src/stl",
38
46
  "src/test/3DBenchy.3mf",
39
47
  "src/test/stl-manipulator-test.js",
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ process.env.MCP_TRANSPORT ??= "streamable-http";
4
+
5
+ if (!process.env.MCP_HTTP_PORT && process.env.HTTP_PORT) {
6
+ process.env.MCP_HTTP_PORT = process.env.HTTP_PORT;
7
+ }
8
+
9
+ void import("./index.js");
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ process.env.MCP_TRANSPORT ??= "streamable-http";
4
+
5
+ if (!process.env.MCP_HTTP_PORT && process.env.SSE_PORT) {
6
+ process.env.MCP_HTTP_PORT = process.env.SSE_PORT;
7
+ }
8
+
9
+ void import("./index.js");