@tacitai/mcp-server 0.6.36 → 0.6.37

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -0
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -256,6 +256,17 @@ function checkProfileExpiry(profile) {
256
256
  }
257
257
  // ─── Main ─────────────────────────────────────────────────────────────────────
258
258
  async function run() {
259
+ if (process.argv.includes('--version') || process.argv.includes('-v')) {
260
+ const pkgPath = path.join(__dirname, '..', 'package.json');
261
+ try {
262
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
263
+ process.stdout.write(`${pkg.version}\n`);
264
+ }
265
+ catch {
266
+ process.stderr.write('unknown\n');
267
+ }
268
+ return;
269
+ }
259
270
  if (process.argv[2] === 'setup') {
260
271
  await setup(process.argv.slice(3));
261
272
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tacitai/mcp-server",
3
- "version": "0.6.36",
3
+ "version": "0.6.37",
4
4
  "description": "stdio MCP server wrapping Tacit /api/v1 REST/SSE API",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -39,6 +39,5 @@
39
39
  "@types/semver": "^7.5.0",
40
40
  "typescript": "^5.4.0",
41
41
  "vitest": "^4.1.7"
42
- },
43
- "private": false
42
+ }
44
43
  }