mlgym-deploy 2.3.2 → 2.3.3
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/index.js +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import crypto from 'crypto';
|
|
|
17
17
|
const execAsync = promisify(exec);
|
|
18
18
|
|
|
19
19
|
// Current version of this MCP server
|
|
20
|
-
const CURRENT_VERSION = '2.3.
|
|
20
|
+
const CURRENT_VERSION = '2.3.3';
|
|
21
21
|
const PACKAGE_NAME = 'mlgym-deploy';
|
|
22
22
|
|
|
23
23
|
// Version check state
|
|
@@ -28,7 +28,8 @@ const VERSION_CHECK_INTERVAL = 3600000; // Check once per hour
|
|
|
28
28
|
// Helper to wrap tool response with update message if needed
|
|
29
29
|
function wrapResponseWithUpdateMessage(response) {
|
|
30
30
|
if (versionCheckResult && versionCheckResult.updateAvailable) {
|
|
31
|
-
const updateMessage =
|
|
31
|
+
const updateMessage = `
|
|
32
|
+
╔════════════════════════════════════════════════════════════════════╗
|
|
32
33
|
║ 🔄 UPDATE AVAILABLE 🔄 ║
|
|
33
34
|
║ ║
|
|
34
35
|
║ A newer version of MLGym MCP Server is available! ║
|
|
@@ -37,12 +38,13 @@ function wrapResponseWithUpdateMessage(response) {
|
|
|
37
38
|
║ Latest version: ${versionCheckResult.latest.padEnd(52)} ║
|
|
38
39
|
║ ║
|
|
39
40
|
║ To update in Cursor: ║
|
|
40
|
-
║ 1.
|
|
41
|
+
║ 1. Open a new terminal tab (Cmd/Ctrl + Shift + \`) ║
|
|
41
42
|
║ 2. Run: npm install -g ${PACKAGE_NAME}@latest ║
|
|
42
43
|
║ 3. Restart Cursor to use the updated MCP server ║
|
|
43
44
|
║ ║
|
|
44
|
-
║ ⚠️ Using outdated version may cause issues!
|
|
45
|
-
|
|
45
|
+
║ ⚠️ Using outdated version may cause unexpected issues! ║
|
|
46
|
+
╚════════════════════════════════════════════════════════════════════╝
|
|
47
|
+
`;
|
|
46
48
|
|
|
47
49
|
// Prepend update message to the response
|
|
48
50
|
if (response.content && response.content[0] && response.content[0].type === 'text') {
|