@cloudbase/cloudbase-mcp 2.26.0 → 2.28.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/README.md +8 -1
- package/README.zh-CN.md +2 -1
- package/dist/341.index.js +6 -1
- package/dist/602.index.cjs +6 -1
- package/dist/cli.cjs +5 -5
- package/dist/index.cjs +2247 -610
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2318 -665
- package/package.json +4 -2
- package/server.json +60 -0
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@ You need a [CloudBase environment](https://tcb.cloud.tencent.com/dev) and should
|
|
|
60
60
|
|
|
61
61
|
| Path | When |
|
|
62
62
|
|------|------|
|
|
63
|
+
| Official MCP Registry `io.github.TencentCloudBase/cloudbase-mcp` | Discover via [registry search=cloudbase](https://registry.modelcontextprotocol.io/v0/servers?search=cloudbase) |
|
|
63
64
|
| `npx plugins add TencentCloudBase/cloudbase-plugin` | Open Plugin Spec tools |
|
|
64
65
|
| `npm i -g @cloudbase/cli && tcb ai` | [CloudBase AI CLI](https://docs.cloudbase.net/cli-v1/ai/introduce) configures many IDEs |
|
|
65
66
|
| Marketplace / built-in plugin | Claude Code, Codex, CodeBuddy, WorkBuddy, ZCode, etc. |
|
|
@@ -85,7 +86,7 @@ You need a [CloudBase environment](https://tcb.cloud.tencent.com/dev) and should
|
|
|
85
86
|
}
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
Hosted URLs can use `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`).
|
|
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`).
|
|
89
90
|
|
|
90
91
|
**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.
|
|
91
92
|
|
|
@@ -95,6 +96,12 @@ Hosted URLs can use `enable_plugins` / `disable_plugins` (comma-separated). Cano
|
|
|
95
96
|
| Team / zero ops | Hosted HTTP |
|
|
96
97
|
| Self-hosted MCP | Cloud Mode required |
|
|
97
98
|
|
|
99
|
+
### Site & region
|
|
100
|
+
|
|
101
|
+
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
|
+
|
|
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.
|
|
104
|
+
|
|
98
105
|
## Capabilities
|
|
99
106
|
|
|
100
107
|
Typical backend work in your environment (confirm critical steps):
|
package/README.zh-CN.md
CHANGED
|
@@ -60,6 +60,7 @@ IDE 支持时优先用 Plugin;只需 MCP 配置时用本包即可。
|
|
|
60
60
|
|
|
61
61
|
| 路径 | 适用 |
|
|
62
62
|
|------|------|
|
|
63
|
+
| Official MCP Registry `io.github.TencentCloudBase/cloudbase-mcp` | [registry search=cloudbase](https://registry.modelcontextprotocol.io/v0/servers?search=cloudbase) 发现 |
|
|
63
64
|
| `npx plugins add TencentCloudBase/cloudbase-plugin` | 支持 Open Plugin Spec 的工具 |
|
|
64
65
|
| `npm i -g @cloudbase/cli && tcb ai` | [CloudBase AI CLI](https://docs.cloudbase.net/cli-v1/ai/introduce) 统一配置多种 IDE |
|
|
65
66
|
| Marketplace / 内置插件 | Claude Code、Codex、CodeBuddy、WorkBuddy、ZCode 等 |
|
|
@@ -85,7 +86,7 @@ IDE 支持时优先用 Plugin;只需 MCP 配置时用本包即可。
|
|
|
85
86
|
}
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
托管 URL 可用 `enable_plugins` / `disable_plugins
|
|
89
|
+
托管 URL 可用 `site=domestic` 指定登录站点(国内站新加坡需 `site=domestic`),也可用 `enable_plugins` / `disable_plugins`(逗号分隔)裁剪工具集。插件名见本包 `src/server.ts`(如 `env`、`database`、`functions`、`hosting`、`storage`、`pg_database`、`cloudrun`、`logs`)。
|
|
89
90
|
|
|
90
91
|
**自建 Cloud Mode**:设置 `CLOUDBASE_MCP_CLOUD_MODE=true`(或 `MCP_CLOUD_MODE=true`),禁用面向远程调用方的本地文件/进程类工具。
|
|
91
92
|
|
package/dist/341.index.js
CHANGED
|
@@ -4036,13 +4036,17 @@ exports.renderErrorBanner = renderErrorBanner;
|
|
|
4036
4036
|
function renderHeader(accountInfo, ide) {
|
|
4037
4037
|
const hasAccount = !!accountInfo?.uin;
|
|
4038
4038
|
const isCodeBuddy = ide === "CodeBuddy";
|
|
4039
|
+
// 国际站不支持切换账号:优先按 site 判定,兼容未传 site 的旧调用方按 region 兜底
|
|
4040
|
+
const site = accountInfo?.site;
|
|
4041
|
+
const isIntl = site === "intl" ? true : site === "domestic" ? false : accountInfo?.region === "ap-singapore";
|
|
4042
|
+
const siteLabel = site === "intl" ? "国际站" : site === "domestic" ? "国内站" : undefined;
|
|
4039
4043
|
return `
|
|
4040
4044
|
<div class="header">
|
|
4041
4045
|
<div class="header-left">
|
|
4042
4046
|
<img class="logo" src="https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/mcp/cloudbase-logo.svg" alt="CloudBase Logo" />
|
|
4043
4047
|
<span class="title">CloudBase</span>
|
|
4044
4048
|
</div>
|
|
4045
|
-
${(hasAccount &&
|
|
4049
|
+
${(hasAccount && !isIntl) ? `
|
|
4046
4050
|
<div class="header-right">
|
|
4047
4051
|
<div class="account-section">
|
|
4048
4052
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
@@ -4050,6 +4054,7 @@ function renderHeader(accountInfo, ide) {
|
|
|
4050
4054
|
<circle cx="12" cy="7" r="4"/>
|
|
4051
4055
|
</svg>
|
|
4052
4056
|
<span class="account-uin">${accountInfo.uin}</span>
|
|
4057
|
+
${siteLabel ? `<span class="account-site">${siteLabel}</span>` : ''}
|
|
4053
4058
|
${accountInfo.region ? `<span class="account-region">${accountInfo.region}</span>` : ''}
|
|
4054
4059
|
${!isCodeBuddy ? `
|
|
4055
4060
|
<button class="btn-switch" onclick="switchAccount()" title="切换账号">
|
package/dist/602.index.cjs
CHANGED
|
@@ -1079,13 +1079,17 @@ exports.renderErrorBanner = renderErrorBanner;
|
|
|
1079
1079
|
function renderHeader(accountInfo, ide) {
|
|
1080
1080
|
const hasAccount = !!accountInfo?.uin;
|
|
1081
1081
|
const isCodeBuddy = ide === "CodeBuddy";
|
|
1082
|
+
// 国际站不支持切换账号:优先按 site 判定,兼容未传 site 的旧调用方按 region 兜底
|
|
1083
|
+
const site = accountInfo?.site;
|
|
1084
|
+
const isIntl = site === "intl" ? true : site === "domestic" ? false : accountInfo?.region === "ap-singapore";
|
|
1085
|
+
const siteLabel = site === "intl" ? "国际站" : site === "domestic" ? "国内站" : undefined;
|
|
1082
1086
|
return `
|
|
1083
1087
|
<div class="header">
|
|
1084
1088
|
<div class="header-left">
|
|
1085
1089
|
<img class="logo" src="https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/mcp/cloudbase-logo.svg" alt="CloudBase Logo" />
|
|
1086
1090
|
<span class="title">CloudBase</span>
|
|
1087
1091
|
</div>
|
|
1088
|
-
${(hasAccount &&
|
|
1092
|
+
${(hasAccount && !isIntl) ? `
|
|
1089
1093
|
<div class="header-right">
|
|
1090
1094
|
<div class="account-section">
|
|
1091
1095
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
@@ -1093,6 +1097,7 @@ function renderHeader(accountInfo, ide) {
|
|
|
1093
1097
|
<circle cx="12" cy="7" r="4"/>
|
|
1094
1098
|
</svg>
|
|
1095
1099
|
<span class="account-uin">${accountInfo.uin}</span>
|
|
1100
|
+
${siteLabel ? `<span class="account-site">${siteLabel}</span>` : ''}
|
|
1096
1101
|
${accountInfo.region ? `<span class="account-region">${accountInfo.region}</span>` : ''}
|
|
1097
1102
|
${!isCodeBuddy ? `
|
|
1098
1103
|
<button class="btn-switch" onclick="switchAccount()" title="切换账号">
|