@intangle/mcp-server 2.1.0 → 2.1.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.
- package/dist/index.js +7 -1
- package/index.ts +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26,7 +26,13 @@ if (!MCP_API_KEY) {
|
|
|
26
26
|
console.log("Intangle MCP Server starting - connecting to", API_BASE_URL);
|
|
27
27
|
// Version checking - automatically read from package.json
|
|
28
28
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
29
|
-
|
|
29
|
+
let packageJson;
|
|
30
|
+
try {
|
|
31
|
+
packageJson = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
|
|
35
|
+
}
|
|
30
36
|
const CURRENT_VERSION = packageJson.version;
|
|
31
37
|
let latestVersion = null;
|
|
32
38
|
let versionCheckDone = false;
|
package/index.ts
CHANGED
|
@@ -41,9 +41,16 @@ console.log("Intangle MCP Server starting - connecting to", API_BASE_URL);
|
|
|
41
41
|
|
|
42
42
|
// Version checking - automatically read from package.json
|
|
43
43
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
let packageJson;
|
|
45
|
+
try {
|
|
46
|
+
packageJson = JSON.parse(
|
|
47
|
+
readFileSync(join(__dirname, "package.json"), "utf-8"),
|
|
48
|
+
);
|
|
49
|
+
} catch {
|
|
50
|
+
packageJson = JSON.parse(
|
|
51
|
+
readFileSync(join(__dirname, "../package.json"), "utf-8"),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
47
54
|
const CURRENT_VERSION = packageJson.version;
|
|
48
55
|
let latestVersion: string | null = null;
|
|
49
56
|
let versionCheckDone = false;
|