@chamba/mcp 0.6.0 → 0.6.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/dist/main.js +17 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// src/main.ts
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
2
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
5
|
|
|
4
6
|
// src/logging.ts
|
|
@@ -832,7 +834,22 @@ function createServer(logger, services = createNodeServices()) {
|
|
|
832
834
|
}
|
|
833
835
|
|
|
834
836
|
// src/main.ts
|
|
837
|
+
function readPackageVersion() {
|
|
838
|
+
try {
|
|
839
|
+
const pkgPath = fileURLToPath(new URL("../package.json", import.meta.url));
|
|
840
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
|
|
841
|
+
return pkg.version ?? "unknown";
|
|
842
|
+
} catch {
|
|
843
|
+
return "unknown";
|
|
844
|
+
}
|
|
845
|
+
}
|
|
835
846
|
async function main() {
|
|
847
|
+
const flag = process.argv[2];
|
|
848
|
+
if (flag === "--version" || flag === "-v") {
|
|
849
|
+
process.stdout.write(`${readPackageVersion()}
|
|
850
|
+
`);
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
836
853
|
const logger = createLogger();
|
|
837
854
|
const server = createServer(logger);
|
|
838
855
|
const transport = new StdioServerTransport();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamba/mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "chamba MCP server — orchestration, workspace, worktree and Obsidian tools for any MCP-capable editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
37
37
|
"pino": "^9.0.0",
|
|
38
38
|
"zod": "^3.23.0",
|
|
39
|
-
"@chamba/adapters": "0.6.
|
|
40
|
-
"@chamba/core": "0.6.
|
|
39
|
+
"@chamba/adapters": "0.6.2",
|
|
40
|
+
"@chamba/core": "0.6.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.0.0",
|