@caseywebb/elm-package-mcp-server 0.2.2 → 0.2.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/bin/cli.js CHANGED
@@ -8,18 +8,26 @@ function getBinaryPath() {
8
8
  const platform = os.platform();
9
9
  const arch = os.arch();
10
10
 
11
- if (platform !== 'darwin') {
12
- console.error('Error: Only macOS is currently supported');
13
- process.exit(1);
14
- }
15
-
16
11
  let binaryName;
17
- if (arch === 'arm64') {
18
- binaryName = 'elm-package-mcp-server-macos-aarch64';
19
- } else if (arch === 'x64') {
20
- binaryName = 'elm-package-mcp-server-macos-x86_64';
12
+
13
+ if (platform === 'linux') {
14
+ if (arch === 'x64') {
15
+ binaryName = 'elm-package-mcp-server-linux-x86_64';
16
+ } else {
17
+ console.error(`Error: Unsupported Linux architecture: ${arch}`);
18
+ process.exit(1);
19
+ }
20
+ } else if (platform === 'darwin') {
21
+ if (arch === 'arm64') {
22
+ binaryName = 'elm-package-mcp-server-macos-aarch64';
23
+ } else if (arch === 'x64') {
24
+ binaryName = 'elm-package-mcp-server-macos-x86_64';
25
+ } else {
26
+ console.error(`Error: Unsupported macOS architecture: ${arch}`);
27
+ process.exit(1);
28
+ }
21
29
  } else {
22
- console.error(`Error: Unsupported architecture: ${arch}`);
30
+ console.error(`Error: Unsupported platform: ${platform}`);
23
31
  process.exit(1);
24
32
  }
25
33
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseywebb/elm-package-mcp-server",
3
3
  "private": false,
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "Model Context Protocol (MCP) server for Elm language package documentation. Provides tools to list Elm packages from elm.json and fetch README/API docs from package.elm-lang.org",
6
6
  "bin": {
7
7
  "elm-package-mcp-server": "./bin/cli.js"
@@ -11,7 +11,7 @@
11
11
  "binaries/"
12
12
  ],
13
13
  "scripts": {
14
- "prepublishOnly": "test -f binaries/elm-package-mcp-server-macos-x86_64 && test -f binaries/elm-package-mcp-server-macos-aarch64 || (echo 'Error: Binaries not found. Run just npm-prepare-binaries first.' && exit 1)"
14
+ "prepublishOnly": "test -f binaries/elm-package-mcp-server-macos-x86_64 && test -f binaries/elm-package-mcp-server-macos-aarch64 && test -f binaries/elm-package-mcp-server-linux-x86_64 || (echo 'Error: Binaries not found. Run just npm-prepare-binaries first.' && exit 1)"
15
15
  },
16
16
  "keywords": [
17
17
  "elm",
@@ -31,6 +31,7 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "os": [
34
- "darwin"
34
+ "darwin",
35
+ "linux"
35
36
  ]
36
37
  }