sad-mcp 0.1.26 → 0.1.27

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/index.js +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,13 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { readFileSync } from "fs";
5
+ import { join, dirname } from "path";
6
+ import { fileURLToPath } from "url";
4
7
  import { registerToolHandlers } from "./tools.js";
5
8
  import { registerPromptHandlers } from "./prompts.js";
6
9
  import { trackServerStart } from "./tracking.js";
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
7
13
  async function main() {
8
14
  // Connect to Claude Desktop IMMEDIATELY — no blocking auth here
9
15
  // Auth happens lazily on first Drive API call
10
- const server = new Server({ name: "sad-mcp", version: "0.1.7" }, {
16
+ const server = new Server({ name: "sad-mcp", version: pkg.version }, {
11
17
  capabilities: {
12
18
  tools: {},
13
19
  prompts: {},
@@ -18,7 +24,7 @@ async function main() {
18
24
  trackServerStart();
19
25
  const transport = new StdioServerTransport();
20
26
  await server.connect(transport);
21
- console.error("SAD MCP server started.");
27
+ console.error(`SAD MCP server v${pkg.version} started.`);
22
28
  }
23
29
  main().catch((err) => {
24
30
  console.error("SAD MCP failed to start:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sad-mcp",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "MCP server for Software Analysis and Design course materials at BGU",
5
5
  "type": "module",
6
6
  "bin": {