@cloudbase/cloudbase-mcp 2.8.0 → 2.9.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 CHANGED
@@ -74,6 +74,7 @@ AI 编程工具(如 Cursor、CodeBuddy)解决了**代码生成**的难题。
74
74
 
75
75
  在支持 MCP 的 AI IDE 中(Cursor、WindSurf、CodeBuddy 等),只需添加一行配置:
76
76
 
77
+ Local Mode (推荐):
77
78
  ```json
78
79
  {
79
80
  "mcpServers": {
@@ -85,6 +86,36 @@ AI 编程工具(如 Cursor、CodeBuddy)解决了**代码生成**的难题。
85
86
  }
86
87
  ```
87
88
 
89
+ Hosted Mode:
90
+ ```json
91
+ {
92
+ "mcpServers": {
93
+ "cloudbase": {
94
+ "type": "http",
95
+ "url": "https://tcb-api.cloud.tencent.com/mcp/v1?env_id=<env_id>",
96
+ "headers": {
97
+ "X-TencentCloud-SecretId": "<腾讯云 Secret ID>",
98
+ "X-TencentCloud-SecretKey": "<腾讯云 Secret Key"
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ ```
105
+
106
+ > [!TIP]
107
+ > 推荐在本地可以执行Node(npx)时使用本地CLI模式,Host 模式下缺少部分依赖文件系统的tools。
108
+
109
+ 使用 HTTP 模式的 MCP Server 时,可以通过 URL query 参数控制启用的插件:
110
+
111
+ **禁用插件示例:**
112
+ ```
113
+ # 禁用 rag 和 env 插件
114
+ https://tcb-api.cloud.tencent.com/mcp/v1?env_id=YOUR_ENV_ID&disable_plugins=rag&disable_plugins=env
115
+ ```
116
+ **可用插件枚举值:**
117
+ `env`, `database`, `functions`, `hosting`, `storage`, `setup`, `interactive`, `rag`, `cloudrun`, `gateway`, `download`, `security-rule`, `invite-code`, `capi`
118
+
88
119
  > [!TIP]
89
120
  > **推荐使用 CloudBase AI CLI**
90
121
  >