@cloudbase/cloudbase-mcp 1.0.7 → 1.0.8

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.
@@ -48,10 +48,10 @@ export function registerFunctionTools(server) {
48
48
  version: z.number()
49
49
  })).optional().describe("Layer配置")
50
50
  }).describe("函数配置"),
51
- functionRootPath: z.string().optional().describe("函数根目录"),
51
+ functionRootPath: z.string().optional().describe("函数根目录,传绝对路径,指定之后可以自动上传这部分的文件作为代码"),
52
52
  force: z.boolean().describe("是否覆盖"),
53
- base64Code: z.string().optional().describe("base64编码的代码"),
54
- codeSecret: z.string().optional().describe("代码保护密钥")
53
+ base64Code: z.string().optional().describe("base64编码的代码,一般不采用这种方式"),
54
+ codeSecret: z.string().optional().describe("代码保护密钥,一般无需配置")
55
55
  }, async ({ func, functionRootPath, force, base64Code, codeSecret }) => {
56
56
  const result = await cloudbase.functions.createFunction({
57
57
  func,
@@ -74,9 +74,9 @@ export function registerFunctionTools(server) {
74
74
  func: z.object({
75
75
  name: z.string().describe("函数名称")
76
76
  }).describe("函数配置"),
77
- functionRootPath: z.string().optional().describe("函数根目录"),
78
- base64Code: z.string().optional().describe("base64编码的代码"),
79
- codeSecret: z.string().optional().describe("代码保护密钥")
77
+ functionRootPath: z.string().optional().describe("函数根目录,传绝对路径,指定之后可以自动上传这部分的文件作为代码"),
78
+ base64Code: z.string().optional().describe("base64编码的代码,这种方式也可以更新代码,不推荐使用"),
79
+ codeSecret: z.string().optional().describe("代码保护密钥,一般无需配置")
80
80
  }, async ({ func, functionRootPath, base64Code, codeSecret }) => {
81
81
  const result = await cloudbase.functions.updateFunctionCode({
82
82
  func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cloudbase-mcp",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "腾讯云开发 MCP Server,支持静态托管/环境查询/",
5
5
  "main": "index.js",
6
6
  "type": "module",