@tencentcloud/sdk-mcp 1.6.0-beta.1 → 1.6.0-beta.2

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.
@@ -4,16 +4,8 @@ import { fileURLToPath } from 'url';
4
4
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
5
  const fileCache = new Map();
6
6
  function resolveResourceRoot() {
7
- const candidates = [
8
- path.resolve(__dirname, '../../resource'),
9
- path.resolve(__dirname, '../../../resource'),
10
- ];
11
- for (const candidate of candidates) {
12
- if (fs.existsSync(path.join(candidate, 'index', 'manifest.json'))) {
13
- return candidate;
14
- }
15
- }
16
- return candidates[0];
7
+ // dist/knowledge/ → 上溯两级到包根,resource/ 与 package.json 平级
8
+ return path.resolve(__dirname, '../../resource');
17
9
  }
18
10
  function readSourceFile(source) {
19
11
  const cached = fileCache.get(source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/sdk-mcp",
3
- "version": "1.6.0-beta.1",
3
+ "version": "1.6.0-beta.2",
4
4
  "description": "Tencent Cloud MCP Server for SDK",
5
5
  "type": "module",
6
6
  "main": "index.js",