bambu-printer-mcp 1.1.70 → 1.1.71

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
@@ -996,7 +996,7 @@ npx -y -p bambu-printer-mcp bambu-printer-mcp-native-setup
996
996
 
997
997
  Use the same package version as the server, for example `bambu-printer-mcp@1.2.3`; when the installation is missing or stale, the server's error names the exact command. The setup downloads the Linux plug-in that Bambu Studio itself installs, pinned to an exact version and SHA-256, and stores it with the certificates under `~/.config/bambu-printer-mcp/bambu-native` (`BAMBU_NATIVE_HOME` or `XDG_CONFIG_HOME` move it; set the same value for the server). The plug-in is not redistributed by this package, and Bambu Studio's own auto-updating copy is never used. The server finds the installation automatically and passes the plug-in and certificate paths to the helper. Rerun the setup with the server's package version after upgrading: the server refuses a helper built from another version. Only missing or changed files are downloaded again. The setup then loads the plug-in once, offline, so missing system libraries are reported during installation rather than on a stop command. `--verify` repeats these checks without network access. On Linux the server uses only this managed helper or `BAMBU_NATIVE_HELPER`; a package-local `npm run build:native` binary is not used.
998
998
 
999
- `--check-update` asks Bambu's plug-in service for the newest Linux plug-in and compares the `PrintParams` layout in the matching Bambu Studio header with the helper. It reports only: the setup never installs an unpinned plug-in, because a changed layout would send wrong print parameters. A pin is raised by a package release after the check passes and a hardware test.
999
+ `--check-update` asks Bambu's plug-in service for the newest Linux plug-in and compares the `PrintParams` layout in the matching Bambu Studio header with the helper. It reports only: the setup never installs an unpinned plug-in, because a changed layout would send wrong print parameters. A pin is raised by a package release after the check passes and the offered archive and required libraries are checksum-verified. Offline plug-in loading and physical X2D printing are separate validation steps, reported with each release.
1000
1000
 
1001
1001
  Once the helper, plug-in and certificates are installed, X2D printing, upload and controls use the same routing, safety checks and authorization handshake described for macOS above. On Linux, stop and heater-off go out over the native route and MQTT at the same time, so a stuck helper cannot delay them. MQTT is sent again once every older print or heating helper for that printer has exited and the immediate MQTT attempt has settled, so none can dispatch after it; either the native route or that later MQTT send succeeding counts, and the result lists all sends under `routes`. Each MQTT send gives up after 15 seconds (`BAMBU_EMERGENCY_MQTT_TIMEOUT_MS`), so an unreachable MQTT connection cannot hold back a stop the native route already sent. A connection completing after that deadline cannot dispatch its expired command; an already queued MQTT publish is discarded by force-closing and invalidating that client. A repeated stop or heater-off is harmless. macOS keeps its native-only route. On both systems a print goes to the printer's SD card or USB stick when the printer reports one ready, so it can be reprinted from the printer and archived by tools that read the card; otherwise it goes to internal storage (eMMC), as Bambu Studio's Print button always does. `BAMBU_NATIVE_TRY_EMMC_PRINT=1` (or `0`) forces the choice. The server accepts only the pinned plug-in checksums; `BAMBU_NATIVE_ALLOW_UNPINNED_PLUGIN=1` is a trusted override for testing another build at your own risk. Without a complete installation, Linux keeps its previous behavior: X2D status and slicing work, stop, pause and heater-off use MQTT, and native print requests name the setup command before contacting the printer. Bambu publishes the Linux plug-in for x86-64 only; other architectures keep the MQTT behavior.
1002
1002
 
@@ -73,12 +73,12 @@ export declare const BAMBU_NATIVE_CERTIFICATES: readonly ["slicer_base64.cer", "
73
73
  */
74
74
  export declare const BAMBU_NATIVE_PLUGIN_LIBRARIES: readonly ["libbambu_networking.so", "libBambuSource.so"];
75
75
  /**
76
- * The only Linux plug-in build whose PrintParams layout matches the helper
77
- * (Bambu Studio v02.08.02.61, network agent 02.08.02.54). The setup installs
76
+ * The pinned Linux plug-in build whose PrintParams layout matches the helper
77
+ * (Bambu Studio v02.09.01.70, network agent 02.09.01.54). The setup installs
78
78
  * exactly these files and the server refuses anything else.
79
79
  */
80
80
  export declare const BAMBU_NATIVE_PINNED_PLUGIN: Readonly<{
81
- version: "02.08.02.54";
81
+ version: "02.09.01.54";
82
82
  sha256: Readonly<Record<"libbambu_networking.so" | "libBambuSource.so", string>>;
83
83
  }>;
84
84
  /** Layout shared by the Linux setup script, the server and the helper's environment. */
@@ -39,14 +39,14 @@ export const BAMBU_NATIVE_CERTIFICATES = ["slicer_base64.cer", "printer.cer"];
39
39
  */
40
40
  export const BAMBU_NATIVE_PLUGIN_LIBRARIES = ["libbambu_networking.so", "libBambuSource.so"];
41
41
  /**
42
- * The only Linux plug-in build whose PrintParams layout matches the helper
43
- * (Bambu Studio v02.08.02.61, network agent 02.08.02.54). The setup installs
42
+ * The pinned Linux plug-in build whose PrintParams layout matches the helper
43
+ * (Bambu Studio v02.09.01.70, network agent 02.09.01.54). The setup installs
44
44
  * exactly these files and the server refuses anything else.
45
45
  */
46
46
  export const BAMBU_NATIVE_PINNED_PLUGIN = Object.freeze({
47
- version: "02.08.02.54",
47
+ version: "02.09.01.54",
48
48
  sha256: Object.freeze({
49
- "libbambu_networking.so": "bba49709c8dea14ba70251b43965646c0a5e2cde8fd133c64f764d425691bdf2",
49
+ "libbambu_networking.so": "a3d3fb6e6568cbf62a81c88248f4ddfee90ecaa47685d5156ada411271aa5ad3",
50
50
  "libBambuSource.so": "4e05f16fa02740fd12f0040b9efc3e70d43446c7a1a877c6a3926ef0758ca7db",
51
51
  }),
52
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bambu-printer-mcp",
3
- "version": "1.1.70",
3
+ "version": "1.1.71",
4
4
  "description": "MCP server for Bambu Lab 3D printers with STL manipulation, slicing, and print management",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -21,15 +21,15 @@ const BUILD_SCRIPT = path.join(PACKAGE_ROOT, "scripts/build-bambu-native.sh");
21
21
  const DOWNLOAD_TIMEOUT_MS = 300_000;
22
22
  const MAX_DOWNLOAD_BYTES = 128 * 1024 * 1024;
23
23
 
24
- // Bambu Studio v02.08.02.61 declares network agent 02.08.02.54 with the same
24
+ // Bambu Studio v02.09.01.70 declares network agent 02.09.01.54 with the same
25
25
  // PrintParams layout as native/bambu-native-print.cpp. The server owns the
26
26
  // version and library checksums; this adds where to download them from.
27
27
  export const PINNED = Object.freeze({
28
- studioTag: "v02.08.02.61",
28
+ studioTag: "v02.09.01.70",
29
29
  plugin: Object.freeze({
30
30
  version: BAMBU_NATIVE_PINNED_PLUGIN.version,
31
- url: `https://public-cdn.bblmw.com/upgrade/studio/plugins/${BAMBU_NATIVE_PINNED_PLUGIN.version}/f1a94b8828/linux_${BAMBU_NATIVE_PINNED_PLUGIN.version}.zip`,
32
- sha256: "a7ea8ccec85ab5a7b8959a5697f7be957d58da82e67aad1cb0ad9b3cdf5baed6",
31
+ url: `https://public-cdn.bblmw.com/upgrade/studio/plugins/${BAMBU_NATIVE_PINNED_PLUGIN.version}/61dbe71463/linux_${BAMBU_NATIVE_PINNED_PLUGIN.version}.zip`,
32
+ sha256: "fffba3ebfd919dd5154ba613b6e3b3ab759a533b3f3c39841519030e7cc9b56a",
33
33
  // The networking plug-in opens the eMMC file tunnel through libBambuSource
34
34
  // in its own directory; without it uploads fail with -4.
35
35
  members: BAMBU_NATIVE_PINNED_PLUGIN.sha256,
@@ -117,14 +117,14 @@ export const BAMBU_NATIVE_CERTIFICATES = ["slicer_base64.cer", "printer.cer"] as
117
117
  export const BAMBU_NATIVE_PLUGIN_LIBRARIES = ["libbambu_networking.so", "libBambuSource.so"] as const;
118
118
 
119
119
  /**
120
- * The only Linux plug-in build whose PrintParams layout matches the helper
121
- * (Bambu Studio v02.08.02.61, network agent 02.08.02.54). The setup installs
120
+ * The pinned Linux plug-in build whose PrintParams layout matches the helper
121
+ * (Bambu Studio v02.09.01.70, network agent 02.09.01.54). The setup installs
122
122
  * exactly these files and the server refuses anything else.
123
123
  */
124
124
  export const BAMBU_NATIVE_PINNED_PLUGIN = Object.freeze({
125
- version: "02.08.02.54",
125
+ version: "02.09.01.54",
126
126
  sha256: Object.freeze({
127
- "libbambu_networking.so": "bba49709c8dea14ba70251b43965646c0a5e2cde8fd133c64f764d425691bdf2",
127
+ "libbambu_networking.so": "a3d3fb6e6568cbf62a81c88248f4ddfee90ecaa47685d5156ada411271aa5ad3",
128
128
  "libBambuSource.so": "4e05f16fa02740fd12f0040b9efc3e70d43446c7a1a877c6a3926ef0758ca7db",
129
129
  } as Record<(typeof BAMBU_NATIVE_PLUGIN_LIBRARIES)[number], string>),
130
130
  });