@cloudbase/cloudbase-mcp 2.32.4 → 2.32.5

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
@@ -40,6 +40,14 @@ export declare type CloudBaseOptions = CloudBaseConfigBase & {
40
40
  requestFn?: CloudApiRequestFn;
41
41
  /** 站点:domestic(国内站)/ intl(国际站)。可选;缺省按 TCB_SITE / region 映射表 / 项目配置解析 */
42
42
  site?: string;
43
+ /**
44
+ * 凭证权限范围的显式声明(可选,由宿主传入)。
45
+ * - 'env':环境级凭证(如 tcb-bff hosted OAuth 签发的 federated STS,policy 收敛到单个 env)。
46
+ * MCP 据此启用 queryEnv(action="list") 的 pin 降级,并在凭证边界标注中上报 single_env。
47
+ * - 缺省/'account':账号级凭证,按地域全量 DescribeEnvs。
48
+ * 注意:不要用 token 字段的有无来推断权限范围——sessionToken 本身不携带范围语义。
49
+ */
50
+ credentialScope?: 'env' | 'account';
43
51
  };
44
52
 
45
53
  /**