We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b80757 + 71d7ba0 commit 13608bcCopy full SHA for 13608bc
1 file changed
src/index.ts
@@ -16,9 +16,17 @@ import { designerPlugin } from "./plugins/designer/index.js";
16
import { shadcnPlugin } from "./plugins/shadcn/index.js";
17
import { hyperstackPlugin } from "./plugins/hyperstack/index.js";
18
19
+import { readFileSync } from "node:fs";
20
+import { dirname, join } from "node:path";
21
+import { fileURLToPath } from "node:url";
22
+
23
+const __dirname = dirname(fileURLToPath(import.meta.url));
24
+const pkgPath = join(__dirname, "..", "package.json");
25
+const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
26
27
const server = new McpServer({
28
name: "hyperstack",
- version: "1.0.5",
29
+ version: pkg.version,
30
});
31
32
export const allPlugins = [
0 commit comments