project-context-map-mcp 0.1.10 → 0.1.12
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/package.json +10 -2
- package/scripts/sync-server-json.js +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-context-map-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"mcpName": "io.github.tamojit-123/project-context-map-mcp",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/tamojit-123/project-context-map-mcp.git"
|
|
8
|
+
},
|
|
4
9
|
"description": "MCP server and Claude Code skill for project-aware code changes with low token usage.\nmcprush.com-2ae221dd5221ac77c562f870",
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "src/cli.js",
|
|
@@ -13,8 +18,11 @@
|
|
|
13
18
|
"install-hooks": "node src/cli.js install-hooks",
|
|
14
19
|
"configure-claude": "node src/cli.js configure-claude",
|
|
15
20
|
"print-mcp-config": "node src/cli.js print-mcp-config",
|
|
21
|
+
"sync-server-json": "node scripts/sync-server-json.js",
|
|
22
|
+
"mcp:validate": "mcp-publisher validate",
|
|
23
|
+
"mcp:publish": "mcp-publisher publish",
|
|
16
24
|
"build": "npm run lint",
|
|
17
|
-
"lint": "node --check src/cli.js && node --check src/claude.js && node --check src/git.js && node --check src/indexer.js && node --check src/ranker.js && node --check src/server.js && node --check src/utils.js && node --check scripts/install-git-hooks.js && node --check scripts/refresh-map.js && node --check test/claude.test.js && node --check test/helpers.js && node --check test/hooks.test.js && node --check test/indexer.test.js && node --check test/ranker.test.js && node --check test/server.test.js && node --check test/utils.test.js",
|
|
25
|
+
"lint": "node --check src/cli.js && node --check src/claude.js && node --check src/git.js && node --check src/indexer.js && node --check src/ranker.js && node --check src/server.js && node --check src/utils.js && node --check scripts/install-git-hooks.js && node --check scripts/refresh-map.js && node --check scripts/sync-server-json.js && node --check test/claude.test.js && node --check test/helpers.js && node --check test/hooks.test.js && node --check test/indexer.test.js && node --check test/ranker.test.js && node --check test/server.test.js && node --check test/utils.test.js",
|
|
18
26
|
"check": "npm run lint && npm test",
|
|
19
27
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
|
|
20
28
|
"prepublishOnly": "npm run check"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
|
|
6
|
+
const rootDir = process.cwd();
|
|
7
|
+
const packageJsonPath = path.join(rootDir, "package.json");
|
|
8
|
+
const serverJsonPath = path.join(rootDir, "server.json");
|
|
9
|
+
|
|
10
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
11
|
+
const serverJson = JSON.parse(fs.readFileSync(serverJsonPath, "utf8"));
|
|
12
|
+
|
|
13
|
+
serverJson.version = packageJson.version;
|
|
14
|
+
|
|
15
|
+
if (Array.isArray(serverJson.packages)) {
|
|
16
|
+
for (const pkg of serverJson.packages) {
|
|
17
|
+
if (pkg && typeof pkg === "object") {
|
|
18
|
+
pkg.version = packageJson.version;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
fs.writeFileSync(serverJsonPath, `${JSON.stringify(serverJson, null, 2)}\n`, "utf8");
|
|
24
|
+
process.stdout.write(`Synced server.json to version ${packageJson.version}\n`);
|