fa-mcp-sdk 0.2.131 → 0.2.132

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/bin/fa-mcp.js +4 -1
  2. package/package.json +1 -1
package/bin/fa-mcp.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import fs from 'fs/promises';
4
+ import fss from 'fs';
4
5
  import path from 'path';
5
6
  import { fileURLToPath } from 'url';
6
7
  import readline from 'readline';
@@ -27,7 +28,9 @@ const printFilled = (paramName, paramValue) => {
27
28
  }
28
29
  };
29
30
 
30
- const faMcpSdkVersion = require(path.join(PROJ_ROOT, 'package.json')).version;
31
+ const pjContent = fss.readFileSync(path.join(PROJ_ROOT, 'package.json'));
32
+
33
+ const faMcpSdkVersion = JSON.parse(pjContent).version;
31
34
 
32
35
  const getAsk = () => {
33
36
  const rl = readline.createInterface({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fa-mcp-sdk",
3
3
  "productName": "FA MCP SDK",
4
- "version": "0.2.131",
4
+ "version": "0.2.132",
5
5
  "description": "Core infrastructure and templates for building Model Context Protocol (MCP) servers with TypeScript",
6
6
  "type": "module",
7
7
  "main": "dist/core/index.js",