@cloudbase/cloudbase-mcp 2.33.1 → 2.34.0

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/index.d.ts CHANGED
@@ -103,6 +103,12 @@ export declare function createCloudBaseMcpServer(options?: {
103
103
  pluginsEnabled?: string[];
104
104
  pluginsDisabled?: string[];
105
105
  pluginOptions?: PluginOptions;
106
+ /**
107
+ * 实例输出语言(zh/en)。解析链:本参数 > TCB_LANG 环境变量
108
+ * > `.cloudbase/project.json` 的 lang > 默认 zh。
109
+ * 影响:工具 description / title 里的词典 key 按本语言解析 + 工具输出文案默认语言。
110
+ */
111
+ lang?: Lang | string;
106
112
  }): Promise<ExtendedMcpServer>;
107
113
 
108
114
  export declare interface DataModel {
@@ -190,6 +196,8 @@ export declare const error: (message: string, data?: object | Error) => void;
190
196
  export declare interface ExtendedMcpServer extends McpServer {
191
197
  cloudBaseOptions?: CloudBaseOptions;
192
198
  authOptions?: AuthOptions;
199
+ /** 实例输出语言(zh/en):description 注册选择 + 工具输出文案默认语言 */
200
+ lang?: Lang;
193
201
  ide?: string;
194
202
  /** MCP client 来源标识(hosted 场景由上游解析注入,如 cursor / claude-code) */
195
203
  client?: string;
@@ -351,6 +359,14 @@ declare class InteractiveServer {
351
359
  */
352
360
  export declare function isCloudMode(): boolean;
353
361
 
362
+ /**
363
+ * MCP 输出语言。解析链(与 spec specs/intl-site-enhancement 对齐):
364
+ *
365
+ * 调用级 lang 参数(工具入参,作为 t() 的 langOverride) > 实例 lang(createCloudBaseMcpServer options.lang,
366
+ * server 启动时 setInstanceLang) > TCB_LANG 环境变量 > .cloudbase/project.json lang > 默认 zh
367
+ */
368
+ declare type Lang = "zh" | "en";
369
+
354
370
  export declare interface ListFilesParams {
355
371
  prefix: string;
356
372
  marker?: string;