Skip to content

Commit 06cb948

Browse files
committed
feat: README update hosted mcp
1 parent 1570252 commit 06cb948

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

mcp/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ AI 编程工具(如 Cursor、CodeBuddy)解决了**代码生成**的难题。
7474

7575
在支持 MCP 的 AI IDE 中(Cursor、WindSurf、CodeBuddy 等),只需添加一行配置:
7676

77+
Local Mode (推荐):
7778
```json
7879
{
7980
"mcpServers": {
@@ -85,6 +86,36 @@ AI 编程工具(如 Cursor、CodeBuddy)解决了**代码生成**的难题。
8586
}
8687
```
8788

89+
Hosted Mode:
90+
```json
91+
{
92+
"mcpServers": {
93+
"cloudbase": {
94+
"type": "http",
95+
"url": "https://weda-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://weda-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+
88119
> [!TIP]
89120
> **推荐使用 CloudBase AI CLI**
90121
>

0 commit comments

Comments
 (0)