[feat] synchronize client and agent component versions

This commit is contained in:
dijunkun committed 2026-11-12 12:36:53 +08:00
1 parent 2a9faf1eb1
commit b1236534ac
28 files changed
+548 -37

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env node
import { parseArgs } from "node:util";
import { VERSION } from "./version.js";
import { createInterface } from "node:readline/promises";
import { Writable } from "node:stream";
import {
@@ -149,7 +150,7 @@ async function main() {
},
});
if (values.version) {
process.stdout.write("0.1.0\n");
process.stdout.write(`${VERSION}\n`);
return;
}
if (values.help || !positionals.length) {
+2 -1
View File
@@ -1,4 +1,5 @@
import { readFile } from "node:fs/promises";
import { VERSION } from "./version.js";
import { z } from "zod";
import { McpServer } from "@modelcontextprotocol/server";
import type {
@@ -80,7 +81,7 @@ export function createServer(
terminal: TerminalPanel,
): McpServer {
const server = new McpServer(
{ name: "crossdesk-mcp", version: "0.1.0" },
{ name: "crossdesk-mcp", version: VERSION },
{
capabilities: { tools: {}, resources: {} },
instructions:
+5
View File
@@ -0,0 +1,5 @@
import { readFileSync } from "node:fs";
export const VERSION: string = JSON.parse(
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
).version;