@cloudbase/cloudbase-mcp 2.34.4 → 2.34.6

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/README.md CHANGED
@@ -67,9 +67,16 @@ You need a [CloudBase environment](https://tcb.cloud.tencent.com/dev) and should
67
67
 
68
68
  ## Connection modes
69
69
 
70
- **Local** (default): `npx` on your machine—full features, including local filesystem upload/templates. Requires Node.js v18.15.0+.
70
+ **Remote** (recommended): your IDE connects over HTTP to Tencent Cloud MCP. No local Node, and interactive clients finish authorization in the browser.
71
71
 
72
- **Hosted**: IDE connects over HTTP to Tencent Cloud MCP; no local Node. Some local-file features are unavailable.
72
+ | Site | MCP endpoint |
73
+ |------|--------------|
74
+ | China (domestic) | `https://tcb-api.cloud.tencent.com/mcp/v1` |
75
+ | International | `https://tcb-api.tencentcloud.com/mcp/v1` |
76
+
77
+ Pick the endpoint matching the site your environment lives in—the two sites use separate accounts and credentials.
78
+
79
+ **Local**: runs `npx @cloudbase/cloudbase-mcp@latest` on your machine—full features, including local filesystem upload and template download. Requires Node.js v18.15.0+.
73
80
 
74
81
  ```json
75
82
  {
@@ -86,21 +93,29 @@ You need a [CloudBase environment](https://tcb.cloud.tencent.com/dev) and should
86
93
  }
87
94
  ```
88
95
 
89
- Hosted URLs can use `site=domestic` to pin the login site—domestic-site Singapore must pass `site=domestic`—plus `enable_plugins` / `disable_plugins` (comma-separated). Canonical plugin names: see `src/server.ts` in this package (e.g. `env`, `database`, `functions`, `hosting`, `storage`, `pg_database`, `cloudrun`, `logs`).
96
+ Remote auth takes one of two paths:
97
+
98
+ - **OAuth (interactive, recommended)**: add the URL only—your IDE opens the browser for login and consent, so no keys land in config files.
99
+ - **Static credentials (CI/CD)**: add `env_id` with the `X-TencentCloud-*` headers above.
100
+
101
+ Remote trade-off: local-filesystem features (upload, template download) are unavailable, and the international site does not yet expose NoSQL tools.
102
+
103
+ Remote URLs accept `site` for one case only—a China-site environment in `ap-singapore`, where the region is ambiguous—plus `enable_plugins` / `disable_plugins` (comma-separated). Canonical plugin names: see `src/server.ts` in this package (e.g. `env`, `database`, `functions`, `hosting`, `storage`, `pg_database`, `cloudrun`, `logs`).
90
104
 
91
105
  **Self-hosted Cloud Mode**: set `CLOUDBASE_MCP_CLOUD_MODE=true` (or `MCP_CLOUD_MODE=true`) so local file and process tools are disabled for remote callers.
92
106
 
93
107
  | Scenario | Suggestion |
94
108
  |------|------|
95
- | Personal | Local `npx` |
96
- | Team / zero ops | Hosted HTTP |
109
+ | Personal / fastest start | Remote URL (OAuth) |
110
+ | Need local file features | Local `npx` |
111
+ | CI / automation | Remote + static credentials |
97
112
  | Self-hosted MCP | Cloud Mode required |
98
113
 
99
114
  ### Site & region
100
115
 
101
116
  Set `TCB_SITE` (`domestic` / `intl`) to select the login/credential site, and `TCB_REGION` for API routing. The domestic and international sites are separate account systems. `ap-singapore` exists on both, so **domestic-site Singapore users must set `TCB_SITE=domestic`**; otherwise it defaults to `intl`. Project-level `.cloudbase/project.json` (`{ site, region, envId }`) is also supported.
102
117
 
103
- In **hosted mode** there is no MCP `env` block for HTTP servers, so pass the site as a URL query parameter instead: `https://tcb-api.cloud.tencent.com/mcp/v1?env_id=<env_id>&site=domestic`. Self-hosted Cloud Mode deployments can still use the `TCB_SITE` environment variable.
118
+ In **remote mode** the site is determined by the endpoint host itself—`tcb-api.cloud.tencent.com` is the China site, `tcb-api.tencentcloud.com` is the international site—and there is no `site` query parameter to set. This holds for a China-site environment in `ap-singapore` too: keep using the China-site endpoint. Self-hosted Cloud Mode deployments can still use the `TCB_SITE` environment variable.
104
119
 
105
120
  ## Capabilities
106
121
 
package/README.zh-CN.md CHANGED
@@ -67,9 +67,16 @@ IDE 支持时优先用 Plugin;只需 MCP 配置时用本包即可。
67
67
 
68
68
  ## 连接方式
69
69
 
70
- **本地**(默认):本机 `npx`,功能最全(含本地文件上传/模板)。需 Node.js v18.15.0+。
70
+ **远端**(推荐):IDE 通过 HTTP 连接腾讯云 MCP,无需本机 Node,交互式客户端在浏览器里完成授权。
71
71
 
72
- **托管**:IDE 通过 HTTP 连接腾讯云 MCP,无需本机 Node。部分依赖本地文件的能力不可用。
72
+ | 站点 | MCP 地址 |
73
+ |------|----------|
74
+ | 国内站 | `https://tcb-api.cloud.tencent.com/mcp/v1` |
75
+ | 国际站 | `https://tcb-api.tencentcloud.com/mcp/v1` |
76
+
77
+ 按环境所在站点选择地址——两个站点账号与凭证相互独立。
78
+
79
+ **本地**:在本机运行 `npx @cloudbase/cloudbase-mcp@latest`,功能最全(含本地文件上传、模板下载)。需 Node.js v18.15.0+。
73
80
 
74
81
  ```json
75
82
  {
@@ -86,16 +93,30 @@ IDE 支持时优先用 Plugin;只需 MCP 配置时用本包即可。
86
93
  }
87
94
  ```
88
95
 
89
- 托管 URL 可用 `site=domestic` 指定登录站点(国内站新加坡需 `site=domestic`),也可用 `enable_plugins` / `disable_plugins`(逗号分隔)裁剪工具集。插件名见本包 `src/server.ts`(如 `env`、`database`、`functions`、`hosting`、`storage`、`pg_database`、`cloudrun`、`logs`)。
96
+ 远端模式有两种鉴权路径:
97
+
98
+ - **OAuth(交互式,推荐)**:只填 URL,IDE 会打开浏览器完成登录与授权,密钥不落配置文件。
99
+ - **静态凭证(CI/CD)**:补上 `env_id` 与上面的 `X-TencentCloud-*` 请求头。
100
+
101
+ 远端的取舍:依赖本地文件系统的能力(上传、模板下载)不可用;国际站暂未提供 NoSQL 相关工具。
102
+
103
+ 远端 URL 可用 `site`,仅用于国内站账号的 `ap-singapore` 环境(该地域两站都有、服务端无法归属),另可用 `enable_plugins` / `disable_plugins`(逗号分隔)裁剪工具集。插件名见本包 `src/server.ts`(如 `env`、`database`、`functions`、`hosting`、`storage`、`pg_database`、`cloudrun`、`logs`)。
90
104
 
91
105
  **自建 Cloud Mode**:设置 `CLOUDBASE_MCP_CLOUD_MODE=true`(或 `MCP_CLOUD_MODE=true`),禁用面向远程调用方的本地文件/进程类工具。
92
106
 
93
107
  | 场景 | 建议 |
94
108
  |------|------|
95
- | 个人开发 | 本地 `npx` |
96
- | 团队 / 免运维 | 托管 HTTP |
109
+ | 个人开发 / 最快上手 | 远端 URL(OAuth) |
110
+ | 需要本地文件能力 | 本地 `npx` |
111
+ | CI / 自动化 | 远端 + 静态凭证 |
97
112
  | 自建 MCP | 必须开 Cloud Mode |
98
113
 
114
+ ### 站点与地域
115
+
116
+ 用 `TCB_SITE`(`domestic` / `intl`)选择登录与凭证站点,`TCB_REGION` 控制 API 走哪个地域。国内站与国际站是两套独立账号体系。`ap-singapore` 在两个站点都存在,所以**国内站新加坡的用户必须显式设置 `TCB_SITE=domestic`**,否则会默认走国际站。也支持项目级 `.cloudbase/project.json`(`{ site, region, envId }`)。
117
+
118
+ **远端模式下,站点由地址本身决定**——`tcb-api.cloud.tencent.com` 是国内站,`tcb-api.tencentcloud.com` 是国际站,不需要也不应该再选。国内站环境落在 `ap-singapore` 也照样用国内站地址——远端没有 `site` 参数,站点只由域名决定。自建 Cloud Mode 部署仍可用 `TCB_SITE` 环境变量。
119
+
99
120
  ## 能力
100
121
 
101
122
  在你的环境中完成常见后端工作(关键步骤请确认):