@ledgerful/mcp-server 0.1.8 → 0.1.10

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.
Files changed (2) hide show
  1. package/lib/install.js +7 -4
  2. package/package.json +2 -1
package/lib/install.js CHANGED
@@ -15,6 +15,11 @@ function packageVersion() {
15
15
  return packageJson.version;
16
16
  }
17
17
 
18
+ function engineReleaseTag() {
19
+ const packageJson = require("../package.json");
20
+ return packageJson.ledgerfulEngineTag || `v${packageVersion()}`;
21
+ }
22
+
18
23
  function cacheRoot() {
19
24
  if (process.env.LEDGERFUL_MCP_CACHE_DIR) {
20
25
  return process.env.LEDGERFUL_MCP_CACHE_DIR;
@@ -35,7 +40,7 @@ function releaseBaseUrl() {
35
40
  if (process.env.LEDGERFUL_MCP_RELEASE_TAG) {
36
41
  return `https://github.com/${OWNER}/${REPO}/releases/download/${process.env.LEDGERFUL_MCP_RELEASE_TAG}`;
37
42
  }
38
- return `https://github.com/${OWNER}/${REPO}/releases/download/v${packageVersion()}`;
43
+ return `https://github.com/${OWNER}/${REPO}/releases/download/${engineReleaseTag()}`;
39
44
  }
40
45
 
41
46
  function parseChecksum(text) {
@@ -92,9 +97,7 @@ async function extractArchive(archivePath, destination, target) {
92
97
  "-ExecutionPolicy",
93
98
  "Bypass",
94
99
  "-Command",
95
- "Expand-Archive -LiteralPath $args[0] -DestinationPath $args[1] -Force",
96
- archivePath,
97
- destination
100
+ `Expand-Archive -LiteralPath '${archivePath}' -DestinationPath '${destination}' -Force`
98
101
  ]);
99
102
  } else {
100
103
  await spawnFile("tar", ["-xzf", archivePath, "-C", destination]);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@ledgerful/mcp-server",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
+ "ledgerfulEngineTag": "v0.1.8",
4
5
  "description": "Ledgerful MCP stdio server wrapper for AI coding agents",
5
6
  "license": "SEE LICENSE IN LICENSE",
6
7
  "repository": {