@opsee/mcp-server 0.1.4 → 0.1.5

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/bin/opsee-mcp.js +7 -2
  2. package/package.json +1 -1
package/bin/opsee-mcp.js CHANGED
@@ -3,14 +3,19 @@
3
3
  import { spawn } from "node:child_process";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
+ import { createRequire } from "node:module";
6
7
 
7
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
- const tsx = resolve(__dirname, "..", "node_modules", ".bin", "tsx");
9
+ const require = createRequire(import.meta.url);
10
+
11
+ // Resolve tsx binary from wherever npm installed it (handles hoisting)
12
+ const tsxPkg = dirname(require.resolve("tsx/package.json"));
13
+ const tsx = resolve(tsxPkg, "dist", "cli.mjs");
9
14
 
10
15
  const command = process.argv[2];
11
16
  const script = command === "login"
12
17
  ? resolve(__dirname, "..", "src", "auth", "login-cli.ts")
13
18
  : resolve(__dirname, "..", "src", "index.ts");
14
19
 
15
- const child = spawn(tsx, [script], { stdio: "inherit", env: process.env });
20
+ const child = spawn(process.execPath, [tsx, script], { stdio: "inherit", env: process.env });
16
21
  child.on("exit", (code) => process.exit(code || 0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opsee/mcp-server",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Opsee MCP server — manage projects, tasks, docs, and cycles from AI coding environments",
5
5
  "type": "module",
6
6
  "bin": {