@cloudbase/cloudbase-mcp 2.34.0 → 2.34.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.
- package/dist/cli.cjs +1 -1
- package/dist/index.cjs +13 -8
- package/dist/index.js +13 -8
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -227899,32 +227899,37 @@ async function downloadWebTemplate() {
|
|
|
227899
227899
|
async function downloadOpenAPI() {
|
|
227900
227900
|
const baseDir = path.join(CACHE_BASE_DIR, "openapi");
|
|
227901
227901
|
await fs.mkdir(baseDir, { recursive: true });
|
|
227902
|
-
const
|
|
227903
|
-
await Promise.all(OPENAPI_SOURCES.map(async (source) => {
|
|
227902
|
+
const downloaded = await Promise.all(OPENAPI_SOURCES.map(async (source) => {
|
|
227904
227903
|
try {
|
|
227905
227904
|
const response = await fetch(source.url);
|
|
227906
227905
|
if (!response.ok) {
|
|
227907
227906
|
(0, logger_js_1.warn)(`[downloadOpenAPI] Failed to download ${source.name}`, {
|
|
227908
227907
|
status: response.status,
|
|
227909
227908
|
});
|
|
227910
|
-
return;
|
|
227909
|
+
return undefined;
|
|
227911
227910
|
}
|
|
227912
227911
|
const content = await response.text();
|
|
227913
227912
|
const filePath = path.join(baseDir, `${source.name}.openapi.yaml`);
|
|
227914
227913
|
await fs.writeFile(filePath, content, "utf8");
|
|
227915
|
-
|
|
227914
|
+
return {
|
|
227916
227915
|
name: source.name,
|
|
227917
227916
|
description: source.description,
|
|
227918
227917
|
absolutePath: filePath,
|
|
227919
227918
|
url: source.url,
|
|
227920
|
-
}
|
|
227919
|
+
};
|
|
227921
227920
|
}
|
|
227922
227921
|
catch (error) {
|
|
227923
227922
|
(0, logger_js_1.warn)(`[downloadOpenAPI] Failed to download ${source.name}`, {
|
|
227924
227923
|
error,
|
|
227925
227924
|
});
|
|
227925
|
+
return undefined;
|
|
227926
227926
|
}
|
|
227927
227927
|
}));
|
|
227928
|
+
// 顺序必须跟随 OPENAPI_SOURCES 声明顺序。`Promise.all` 只保证按输入顺序
|
|
227929
|
+
// 返回结果,所以这里先收集再过滤;若改成在各并发任务内部 `results.push()`,
|
|
227930
|
+
// 数组顺序会变成网络完成顺序,导致 tools.json / mcp-tools.md 里内联的
|
|
227931
|
+
// OpenAPI 清单在每次构建之间无意义漂移。
|
|
227932
|
+
const results = downloaded.filter((item) => item !== undefined);
|
|
227928
227933
|
(0, logger_js_1.debug)("[downloadOpenAPI] openAPIDocs 下载完成", {
|
|
227929
227934
|
successCount: results.length,
|
|
227930
227935
|
total: OPENAPI_SOURCES.length,
|
|
@@ -231557,7 +231562,7 @@ class TelemetryReporter {
|
|
|
231557
231562
|
const arch = os_1.default.arch(); // 系统架构
|
|
231558
231563
|
// Build-time injected version; guard for vitest / non-webpack runtimes.
|
|
231559
231564
|
const mcpVersion = process.env.npm_package_version ||
|
|
231560
|
-
( true ? "2.34.
|
|
231565
|
+
( true ? "2.34.1" : 0);
|
|
231561
231566
|
return {
|
|
231562
231567
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
231563
231568
|
deviceId: this.deviceId,
|
|
@@ -232150,7 +232155,7 @@ ${envIdSection}
|
|
|
232150
232155
|
## 环境信息
|
|
232151
232156
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
232152
232157
|
- Node.js版本: ${process.version}
|
|
232153
|
-
- MCP 版本:${process.env.npm_package_version || ( true ? "2.34.
|
|
232158
|
+
- MCP 版本:${process.env.npm_package_version || ( true ? "2.34.1" : 0)}
|
|
232154
232159
|
- 系统架构: ${os_1.default.arch()}
|
|
232155
232160
|
- 时间: ${new Date().toISOString()}
|
|
232156
232161
|
- 请求ID: ${requestId}
|
|
@@ -232239,7 +232244,7 @@ function createWrappedHandler(name, handler, server) {
|
|
|
232239
232244
|
requestId,
|
|
232240
232245
|
ide: server.ide || process.env.INTEGRATION_IDE || ''
|
|
232241
232246
|
});
|
|
232242
|
-
const mcpVersion = true ? "2.34.
|
|
232247
|
+
const mcpVersion = true ? "2.34.1" : 0;
|
|
232243
232248
|
const requestIdSuffix = requestId ? `\n🆔 RequestId: ${requestId}` : '';
|
|
232244
232249
|
const enhancedErrorMessage = `${errorMessage}${requestIdSuffix}\n\n📦 CloudBase MCP v${mcpVersion}\n🔗 遇到问题?请复制以下链接到浏览器打开\n即可自动携带错误详情快速创建 GitHub Issue:\n${issueLink}`;
|
|
232245
232250
|
// 创建新的错误对象,保持原有的错误类型但更新消息
|
package/dist/index.js
CHANGED
|
@@ -28847,32 +28847,37 @@ async function downloadWebTemplate() {
|
|
|
28847
28847
|
async function downloadOpenAPI() {
|
|
28848
28848
|
const baseDir = path.join(CACHE_BASE_DIR, "openapi");
|
|
28849
28849
|
await fs.mkdir(baseDir, { recursive: true });
|
|
28850
|
-
const
|
|
28851
|
-
await Promise.all(OPENAPI_SOURCES.map(async (source) => {
|
|
28850
|
+
const downloaded = await Promise.all(OPENAPI_SOURCES.map(async (source) => {
|
|
28852
28851
|
try {
|
|
28853
28852
|
const response = await fetch(source.url);
|
|
28854
28853
|
if (!response.ok) {
|
|
28855
28854
|
(0, logger_js_1.warn)(`[downloadOpenAPI] Failed to download ${source.name}`, {
|
|
28856
28855
|
status: response.status,
|
|
28857
28856
|
});
|
|
28858
|
-
return;
|
|
28857
|
+
return undefined;
|
|
28859
28858
|
}
|
|
28860
28859
|
const content = await response.text();
|
|
28861
28860
|
const filePath = path.join(baseDir, `${source.name}.openapi.yaml`);
|
|
28862
28861
|
await fs.writeFile(filePath, content, "utf8");
|
|
28863
|
-
|
|
28862
|
+
return {
|
|
28864
28863
|
name: source.name,
|
|
28865
28864
|
description: source.description,
|
|
28866
28865
|
absolutePath: filePath,
|
|
28867
28866
|
url: source.url,
|
|
28868
|
-
}
|
|
28867
|
+
};
|
|
28869
28868
|
}
|
|
28870
28869
|
catch (error) {
|
|
28871
28870
|
(0, logger_js_1.warn)(`[downloadOpenAPI] Failed to download ${source.name}`, {
|
|
28872
28871
|
error,
|
|
28873
28872
|
});
|
|
28873
|
+
return undefined;
|
|
28874
28874
|
}
|
|
28875
28875
|
}));
|
|
28876
|
+
// 顺序必须跟随 OPENAPI_SOURCES 声明顺序。`Promise.all` 只保证按输入顺序
|
|
28877
|
+
// 返回结果,所以这里先收集再过滤;若改成在各并发任务内部 `results.push()`,
|
|
28878
|
+
// 数组顺序会变成网络完成顺序,导致 tools.json / mcp-tools.md 里内联的
|
|
28879
|
+
// OpenAPI 清单在每次构建之间无意义漂移。
|
|
28880
|
+
const results = downloaded.filter((item) => item !== undefined);
|
|
28876
28881
|
(0, logger_js_1.debug)("[downloadOpenAPI] openAPIDocs 下载完成", {
|
|
28877
28882
|
successCount: results.length,
|
|
28878
28883
|
total: OPENAPI_SOURCES.length,
|
|
@@ -32499,7 +32504,7 @@ class TelemetryReporter {
|
|
|
32499
32504
|
const arch = os_1.default.arch(); // 系统架构
|
|
32500
32505
|
// Build-time injected version; guard for vitest / non-webpack runtimes.
|
|
32501
32506
|
const mcpVersion = process.env.npm_package_version ||
|
|
32502
|
-
( true ? "2.34.
|
|
32507
|
+
( true ? "2.34.1" : 0);
|
|
32503
32508
|
return {
|
|
32504
32509
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
32505
32510
|
deviceId: this.deviceId,
|
|
@@ -33091,7 +33096,7 @@ ${envIdSection}
|
|
|
33091
33096
|
## 环境信息
|
|
33092
33097
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
33093
33098
|
- Node.js版本: ${process.version}
|
|
33094
|
-
- MCP 版本:${process.env.npm_package_version || ( true ? "2.34.
|
|
33099
|
+
- MCP 版本:${process.env.npm_package_version || ( true ? "2.34.1" : 0)}
|
|
33095
33100
|
- 系统架构: ${os_1.default.arch()}
|
|
33096
33101
|
- 时间: ${new Date().toISOString()}
|
|
33097
33102
|
- 请求ID: ${requestId}
|
|
@@ -33180,7 +33185,7 @@ function createWrappedHandler(name, handler, server) {
|
|
|
33180
33185
|
requestId,
|
|
33181
33186
|
ide: server.ide || process.env.INTEGRATION_IDE || ''
|
|
33182
33187
|
});
|
|
33183
|
-
const mcpVersion = true ? "2.34.
|
|
33188
|
+
const mcpVersion = true ? "2.34.1" : 0;
|
|
33184
33189
|
const requestIdSuffix = requestId ? `\n🆔 RequestId: ${requestId}` : '';
|
|
33185
33190
|
const enhancedErrorMessage = `${errorMessage}${requestIdSuffix}\n\n📦 CloudBase MCP v${mcpVersion}\n🔗 遇到问题?请复制以下链接到浏览器打开\n即可自动携带错误详情快速创建 GitHub Issue:\n${issueLink}`;
|
|
33186
33191
|
// 创建新的错误对象,保持原有的错误类型但更新消息
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cloudbase-mcp",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.1",
|
|
4
4
|
"mcpName": "io.github.TencentCloudBase/cloudbase-mcp",
|
|
5
5
|
"packageManager": "pnpm@10.8.0",
|
|
6
6
|
"description": "CloudBase MCP Server — operate Tencent CloudBase (database, auth, functions, storage, hosting) from AI coding tools via the Model Context Protocol. Part of CloudBase AI Toolkit.",
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.TencentCloudBase/cloudbase-mcp",
|
|
4
4
|
"title": "CloudBase",
|
|
5
5
|
"description": "CloudBase MCP: DB, functions, storage, hosting via @cloudbase/cloudbase-mcp",
|
|
6
|
-
"version": "2.34.
|
|
6
|
+
"version": "2.34.1",
|
|
7
7
|
"websiteUrl": "https://github.com/TencentCloudBase/CloudBase-AI-Toolkit",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/TencentCloudBase/CloudBase-AI-Toolkit",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"registryType": "npm",
|
|
26
26
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
27
27
|
"identifier": "@cloudbase/cloudbase-mcp",
|
|
28
|
-
"version": "2.34.
|
|
28
|
+
"version": "2.34.1",
|
|
29
29
|
"runtimeHint": "npx",
|
|
30
30
|
"transport": {
|
|
31
31
|
"type": "stdio"
|