Skip to content

Commit 13608bc

Browse files
Merge pull request #72 from orkait/fix/mcp-version-string
fix: sync MCP server version to v1.1.0
2 parents 0b80757 + 71d7ba0 commit 13608bc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ import { designerPlugin } from "./plugins/designer/index.js";
1616
import { shadcnPlugin } from "./plugins/shadcn/index.js";
1717
import { hyperstackPlugin } from "./plugins/hyperstack/index.js";
1818

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+
1927
const server = new McpServer({
2028
name: "hyperstack",
21-
version: "1.0.5",
29+
version: pkg.version,
2230
});
2331

2432
export const allPlugins = [

0 commit comments

Comments
 (0)