@teamdream/sems-mcp 1.1.0 → 1.1.1

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/dist/main.js +3 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -11,6 +11,7 @@
11
11
  * 3. **未绑定不能让进程崩**。起不来 → 连工具列表都没有 → 用户无从自助。
12
12
  * 正确做法是照常暴露工具,调用时统一返回「请先绑定」。
13
13
  */
14
+ import { readFileSync } from "node:fs";
14
15
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
15
16
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
16
17
  import { fetchHealth, ProxyClient } from "./client/proxy.js";
@@ -27,7 +28,8 @@ import { registerQueries } from "./tools/queries.js";
27
28
  import { registerWrites } from "./tools/writes.js";
28
29
  import { UserProfileCache } from "./user-profile.js";
29
30
  const SERVER_NAME = "sems";
30
- const SERVER_VERSION = "1.0.0";
31
+ /** 自报版本取自包清单,换版本号时无需改这里。 */
32
+ const SERVER_VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
31
33
  /**
32
34
  * 随 initialize 下发的服务说明。
33
35
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamdream/sems-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "SEMS × WorkBuddy MCP 适配层(stdio,运行在用户电脑,不持有 SEMS 账号密码)",
5
5
  "license": "UNLICENSED",
6
6
  "author": "TeamDream",