@reposkein/mcp 0.1.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/dist/SKILL.md +67 -0
- package/dist/cli/init.d.ts +9 -0
- package/dist/cli/init.js +54 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/guard/caps.d.ts +7 -0
- package/dist/guard/caps.js +22 -0
- package/dist/guard/caps.js.map +1 -0
- package/dist/guard/readonly.d.ts +4 -0
- package/dist/guard/readonly.js +91 -0
- package/dist/guard/readonly.js.map +1 -0
- package/dist/guard/summaryValidation.d.ts +18 -0
- package/dist/guard/summaryValidation.js +44 -0
- package/dist/guard/summaryValidation.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +143 -0
- package/dist/index.js.map +1 -0
- package/dist/indexer/fetchBinary.d.ts +24 -0
- package/dist/indexer/fetchBinary.js +109 -0
- package/dist/indexer/fetchBinary.js.map +1 -0
- package/dist/indexer/runIndexer.d.ts +26 -0
- package/dist/indexer/runIndexer.js +42 -0
- package/dist/indexer/runIndexer.js.map +1 -0
- package/dist/profile/assemble.d.ts +5 -0
- package/dist/profile/assemble.js +90 -0
- package/dist/profile/assemble.js.map +1 -0
- package/dist/profile/inline.d.ts +4 -0
- package/dist/profile/inline.js +32 -0
- package/dist/profile/inline.js.map +1 -0
- package/dist/profile/resolve.d.ts +10 -0
- package/dist/profile/resolve.js +24 -0
- package/dist/profile/resolve.js.map +1 -0
- package/dist/profile/summary.d.ts +13 -0
- package/dist/profile/summary.js +12 -0
- package/dist/profile/summary.js.map +1 -0
- package/dist/profile/types.d.ts +55 -0
- package/dist/profile/types.js +2 -0
- package/dist/profile/types.js.map +1 -0
- package/dist/store/GraphStore.d.ts +62 -0
- package/dist/store/GraphStore.js +9 -0
- package/dist/store/GraphStore.js.map +1 -0
- package/dist/store/JsonlGraphStore.d.ts +37 -0
- package/dist/store/JsonlGraphStore.js +275 -0
- package/dist/store/JsonlGraphStore.js.map +1 -0
- package/dist/store/Neo4jGraphStore.d.ts +27 -0
- package/dist/store/Neo4jGraphStore.js +148 -0
- package/dist/store/Neo4jGraphStore.js.map +1 -0
- package/dist/store/UnconfiguredStore.d.ts +16 -0
- package/dist/store/UnconfiguredStore.js +36 -0
- package/dist/store/UnconfiguredStore.js.map +1 -0
- package/dist/store/federation.d.ts +9 -0
- package/dist/store/federation.js +29 -0
- package/dist/store/federation.js.map +1 -0
- package/dist/store/jsonlGraph.d.ts +43 -0
- package/dist/store/jsonlGraph.js +176 -0
- package/dist/store/jsonlGraph.js.map +1 -0
- package/dist/store/repoId.d.ts +3 -0
- package/dist/store/repoId.js +18 -0
- package/dist/store/repoId.js.map +1 -0
- package/dist/store/sidecar.d.ts +16 -0
- package/dist/store/sidecar.js +65 -0
- package/dist/store/sidecar.js.map +1 -0
- package/dist/tools/getContextProfile.d.ts +10 -0
- package/dist/tools/getContextProfile.js +44 -0
- package/dist/tools/getContextProfile.js.map +1 -0
- package/dist/tools/indexerTools.d.ts +27 -0
- package/dist/tools/indexerTools.js +89 -0
- package/dist/tools/indexerTools.js.map +1 -0
- package/dist/tools/readCypher.d.ts +16 -0
- package/dist/tools/readCypher.js +40 -0
- package/dist/tools/readCypher.js.map +1 -0
- package/dist/tools/writeSemanticSummary.d.ts +8 -0
- package/dist/tools/writeSemanticSummary.js +40 -0
- package/dist/tools/writeSemanticSummary.js.map +1 -0
- package/package.json +35 -0
- package/scripts/bundle-skill.mjs +19 -0
- package/scripts/postinstall.mjs +19 -0
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@reposkein/mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "RepoSkein MCP server",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"reposkein-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"scripts",
|
|
13
|
+
"bin"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"start": "node dist/index.js",
|
|
20
|
+
"prepare": "npm run build && node scripts/bundle-skill.mjs",
|
|
21
|
+
"postinstall": "node scripts/postinstall.mjs",
|
|
22
|
+
"bench": "tsx bench/run.ts"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
26
|
+
"neo4j-driver": "^6.1.0",
|
|
27
|
+
"zod": "^4.4.3"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"typescript": "^5.7.0",
|
|
31
|
+
"vitest": "^3.0.0",
|
|
32
|
+
"@types/node": "^24.0.0",
|
|
33
|
+
"tsx": "^4.0.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copies the repo-root skill/SKILL.md into dist/ so it ships in the npm tarball
|
|
2
|
+
// and `reposkein-mcp init` can install it. Graceful when the source is absent
|
|
3
|
+
// (registry/git installs already have dist/SKILL.md).
|
|
4
|
+
import { copyFileSync, existsSync, mkdirSync } from "node:fs";
|
|
5
|
+
import { dirname, join } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
const here = dirname(fileURLToPath(import.meta.url)); // mcp/scripts
|
|
9
|
+
const src = join(here, "..", "..", "skill", "SKILL.md"); // repo-root skill/SKILL.md
|
|
10
|
+
const distDir = join(here, "..", "dist");
|
|
11
|
+
const dest = join(distDir, "SKILL.md");
|
|
12
|
+
|
|
13
|
+
if (existsSync(src)) {
|
|
14
|
+
mkdirSync(distDir, { recursive: true });
|
|
15
|
+
copyFileSync(src, dest);
|
|
16
|
+
console.error(`reposkein: bundled SKILL.md -> ${dest}`);
|
|
17
|
+
} else {
|
|
18
|
+
console.error("reposkein: source skill/SKILL.md not found; assuming dist/SKILL.md already present.");
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Best-effort: fetch the prebuilt indexer binary at install time. Never fails
|
|
2
|
+
// the install — offline/CI/dev degrade to lazy fetch on first use or PATH.
|
|
3
|
+
|
|
4
|
+
let downloadBinary;
|
|
5
|
+
try {
|
|
6
|
+
({ downloadBinary } = await import("../dist/indexer/fetchBinary.js"));
|
|
7
|
+
} catch {
|
|
8
|
+
console.error("reposkein: dist not built yet; skipping indexer prefetch.");
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
const path = await downloadBinary();
|
|
13
|
+
console.error(`reposkein: fetched indexer binary -> ${path}`);
|
|
14
|
+
} catch (e) {
|
|
15
|
+
console.error(
|
|
16
|
+
`reposkein: skipped indexer prefetch (${e instanceof Error ? e.message : e}); ` +
|
|
17
|
+
`fetched on first use, or set REPOSKEIN_INDEXER_BIN.`
|
|
18
|
+
);
|
|
19
|
+
}
|