From b4ddaf8374c1df17ef76235a17cb79df77413056 Mon Sep 17 00:00:00 2001 From: Kailas Mahavarkar <66670953+KailasMahavarkar@users.noreply.github.com> Date: Wed, 15 Apr 2026 04:08:45 +0530 Subject: [PATCH 1/2] fix: update hardcoded MCP server version to v1.1.0 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1b9b15a..24bdafb 100755 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ import { hyperstackPlugin } from "./plugins/hyperstack/index.js"; const server = new McpServer({ name: "hyperstack", - version: "1.0.5", + version: "1.1.0", }); export const allPlugins = [ From 71d7ba02bceb9cf57a287eacd3842449aaae8caf Mon Sep 17 00:00:00 2001 From: Kailas Mahavarkar <66670953+KailasMahavarkar@users.noreply.github.com> Date: Wed, 15 Apr 2026 04:10:04 +0530 Subject: [PATCH 2/2] feat: read version dynamically from package.json in server start --- src/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 24bdafb..8082695 100755 --- a/src/index.ts +++ b/src/index.ts @@ -16,9 +16,17 @@ import { designerPlugin } from "./plugins/designer/index.js"; import { shadcnPlugin } from "./plugins/shadcn/index.js"; import { hyperstackPlugin } from "./plugins/hyperstack/index.js"; +import { readFileSync } from "node:fs"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const pkgPath = join(__dirname, "..", "package.json"); +const pkg = JSON.parse(readFileSync(pkgPath, "utf-8")); + const server = new McpServer({ name: "hyperstack", - version: "1.1.0", + version: pkg.version, }); export const allPlugins = [