@nataliapc/mcp-openmsx 1.1.0 → 1.1.2

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/dist/openmsx.js CHANGED
@@ -7,6 +7,7 @@
7
7
  import fs from "fs/promises";
8
8
  import { extractDescriptionFromXML, decodeHtmlEntities } from "./utils.js";
9
9
  import { spawn } from 'child_process';
10
+ import path from 'path';
10
11
  /**
11
12
  * OpenMSX class for controlling the openMSX emulator via TCL commands over TCP socket
12
13
  */
@@ -218,7 +219,7 @@ export class OpenMSX {
218
219
  .map(async (file) => {
219
220
  return {
220
221
  name: file.replace('.xml', ''),
221
- description: await extractDescriptionFromXML(`${machinesDirectory}+path.sep+${file}`)
222
+ description: await extractDescriptionFromXML(path.join(machinesDirectory, file))
222
223
  };
223
224
  }));
224
225
  }
@@ -245,7 +246,7 @@ export class OpenMSX {
245
246
  .map(async (file) => {
246
247
  return {
247
248
  name: file.replace('.xml', ''),
248
- description: await extractDescriptionFromXML(`${extensionDirectory}+path.sep+${file}`)
249
+ description: await extractDescriptionFromXML(path.join(extensionDirectory, file))
249
250
  };
250
251
  }));
251
252
  }
package/dist/server.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * through TCL commands via stdio.
7
7
  *
8
8
  * @package @nataliapc/mcp-openmsx
9
- * @version 1.1.0
9
+ * @version 1.1.2
10
10
  * @author Natalia Pujol Cremades (@nataliapc)
11
11
  * @license GPL2
12
12
  */
@@ -21,7 +21,7 @@ import fs from "fs/promises";
21
21
  import path from "path";
22
22
  import { openMSXInstance } from "./openmsx.js";
23
23
  // Version info for CLI
24
- const PACKAGE_VERSION = "1.1.0";
24
+ const PACKAGE_VERSION = "1.1.2";
25
25
  // Defaults for openMSX paths
26
26
  var OPENMSX_EXECUTABLE = 'openmsx';
27
27
  var OPENMSX_SHARE_DIR = '/usr/share/openmsx';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nataliapc/mcp-openmsx",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Model context protocol server for openMSX automation and control",
5
5
  "main": "dist/server.js",
6
6
  "type": "module",