@repoprism/mcp 0.0.0-stage → 0.5.0
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/launcher.js +42 -0
- package/package.json +32 -4
- package/README.md +0 -3
package/launcher.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// RepoPrism MCP launcher.
|
|
3
|
+
// 只做一件事:找到当前平台的二进制并把 stdio 原样透传。
|
|
4
|
+
// 不联网、不下载、不写缓存目录 —— 与 "100% local" 叙事一致。
|
|
5
|
+
const { spawnSync } = require("node:child_process");
|
|
6
|
+
const { existsSync } = require("node:fs");
|
|
7
|
+
const path = require("node:path");
|
|
8
|
+
|
|
9
|
+
const key = process.platform + "-" + process.arch;
|
|
10
|
+
const PLATFORMS = {
|
|
11
|
+
"linux-x64": ["@repoprism/mcp-linux-x64", "repoprism-mcp"],
|
|
12
|
+
"darwin-x64": ["@repoprism/mcp-darwin-x64", "repoprism-mcp"],
|
|
13
|
+
"darwin-arm64": ["@repoprism/mcp-darwin-arm64", "repoprism-mcp"],
|
|
14
|
+
"win32-x64": ["@repoprism/mcp-win32-x64", "repoprism-mcp.exe"],
|
|
15
|
+
};
|
|
16
|
+
const hit = PLATFORMS[key];
|
|
17
|
+
if (!hit) {
|
|
18
|
+
console.error("Unsupported platform: " + key);
|
|
19
|
+
console.error("Supported: linux-x64, darwin-x64, darwin-arm64, win32-x64");
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
const [pkg, binName] = hit;
|
|
23
|
+
let root;
|
|
24
|
+
try {
|
|
25
|
+
root = path.dirname(require.resolve(pkg + "/package.json"));
|
|
26
|
+
} catch {
|
|
27
|
+
console.error("Missing platform package " + pkg + ".");
|
|
28
|
+
console.error("Reinstall with: npx -y @repoprism/mcp");
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
const bin = path.join(root, "bin", binName);
|
|
32
|
+
if (!existsSync(bin)) {
|
|
33
|
+
console.error("Binary missing: " + bin);
|
|
34
|
+
console.error("Reinstall with: npx -y @repoprism/mcp");
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
const r = spawnSync(bin, [], { stdio: "inherit" });
|
|
38
|
+
if (r.error) {
|
|
39
|
+
console.error("Failed to start RepoPrism MCP binary: " + r.error.message);
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
process.exit(r.status == null ? 1 : r.status);
|
package/package.json
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repoprism/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "A 100% local, read-only MCP server for repository intelligence",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/repo-prism/repo-prism.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/repo-prism/repo-prism#readme",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mcp",
|
|
13
|
+
"git",
|
|
14
|
+
"read-only",
|
|
15
|
+
"local",
|
|
16
|
+
"code-review",
|
|
17
|
+
"agent"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"repoprism-mcp": "launcher.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"launcher.js"
|
|
27
|
+
],
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@repoprism/mcp-linux-x64": "0.5.0",
|
|
30
|
+
"@repoprism/mcp-darwin-x64": "0.5.0",
|
|
31
|
+
"@repoprism/mcp-darwin-arm64": "0.5.0",
|
|
32
|
+
"@repoprism/mcp-win32-x64": "0.5.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/README.md
DELETED