@blackwell-systems/agent-lsp 0.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/bin/agent-lsp +43 -0
- package/package.json +30 -0
package/bin/agent-lsp
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { execFileSync } = require("child_process");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"darwin-arm64": "@blackwell-systems/agent-lsp-darwin-arm64",
|
|
9
|
+
"darwin-x64": "@blackwell-systems/agent-lsp-darwin-x64",
|
|
10
|
+
"linux-arm64": "@blackwell-systems/agent-lsp-linux-arm64",
|
|
11
|
+
"linux-x64": "@blackwell-systems/agent-lsp-linux-x64",
|
|
12
|
+
"win32-x64": "@blackwell-systems/agent-lsp-win32-x64",
|
|
13
|
+
"win32-arm64": "@blackwell-systems/agent-lsp-win32-arm64",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const platform = os.platform();
|
|
17
|
+
const arch = os.arch();
|
|
18
|
+
const key = `${platform}-${arch}`;
|
|
19
|
+
const pkg = PLATFORMS[key];
|
|
20
|
+
|
|
21
|
+
if (!pkg) {
|
|
22
|
+
process.stderr.write(`agent-lsp: unsupported platform ${key}\n`);
|
|
23
|
+
process.stderr.write(`Supported: ${Object.keys(PLATFORMS).join(", ")}\n`);
|
|
24
|
+
process.stderr.write(`Install from https://github.com/blackwell-systems/agent-lsp/releases\n`);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ext = platform === "win32" ? ".exe" : "";
|
|
29
|
+
|
|
30
|
+
let binPath;
|
|
31
|
+
try {
|
|
32
|
+
binPath = require.resolve(`${pkg}/bin/agent-lsp${ext}`);
|
|
33
|
+
} catch {
|
|
34
|
+
process.stderr.write(`agent-lsp: platform package ${pkg} is not installed\n`);
|
|
35
|
+
process.stderr.write(`Try: npm install -g @blackwell-systems/agent-lsp\n`);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
41
|
+
} catch (err) {
|
|
42
|
+
process.exit(err.status ?? 1);
|
|
43
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@blackwell-systems/agent-lsp",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"mcpName": "io.github.blackwell-systems/agent-lsp",
|
|
5
|
+
"description": "MCP server exposing 50+ language server protocol tools to AI agents",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agent-lsp": "bin/agent-lsp"
|
|
8
|
+
},
|
|
9
|
+
"optionalDependencies": {
|
|
10
|
+
"@blackwell-systems/agent-lsp-darwin-arm64": "0.1.2",
|
|
11
|
+
"@blackwell-systems/agent-lsp-darwin-x64": "0.1.2",
|
|
12
|
+
"@blackwell-systems/agent-lsp-linux-arm64": "0.1.2",
|
|
13
|
+
"@blackwell-systems/agent-lsp-linux-x64": "0.1.2",
|
|
14
|
+
"@blackwell-systems/agent-lsp-win32-x64": "0.1.2",
|
|
15
|
+
"@blackwell-systems/agent-lsp-win32-arm64": "0.1.2"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"mcp",
|
|
19
|
+
"lsp",
|
|
20
|
+
"language-server",
|
|
21
|
+
"ai",
|
|
22
|
+
"agent"
|
|
23
|
+
],
|
|
24
|
+
"homepage": "https://github.com/blackwell-systems/agent-lsp",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/blackwell-systems/agent-lsp.git"
|
|
28
|
+
},
|
|
29
|
+
"license": "MIT"
|
|
30
|
+
}
|