You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/source/skills/cloudbase-platform/SKILL.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,9 @@ Keep local `references/...` paths for files that ship with the current skill dir
48
48
- Staying here after the correct implementation skill is already clear.
49
49
- Mixing platform overview with platform-specific API shapes or SDK details.
50
50
- Using this overview skill as a detour in an existing application where the active auth, storage, and data files are already obvious.
51
+
-**Confusing security domains with custom domains**: These are two completely different tools for different purposes:
52
+
-`envDomainManagement` (action: create/delete) = Security domains (安全域名) for CORS/request source validation - used for browser upload whitelisting. Does NOT accept certificateId.
53
+
-`manageGateway(action="bindCustomDomain")` = Custom domains (自定义域名) for public HTTPS access with SSL certificates - requires domain and certificateId parameters.
51
54
52
55
## When to use this skill
53
56
@@ -93,6 +96,45 @@ Use this skill for **CloudBase platform knowledge** when you need to:
93
96
94
97
# CloudBase Platform Knowledge
95
98
99
+
### Domain Management Tools: Clear Distinction
100
+
101
+
When working with domain-related tasks, use the correct tool based on the requirement:
102
+
103
+
| Requirement | Tool | Parameters | Purpose |
104
+
|-------------|------|------------|---------|
105
+
|**Security Domain (安全域名)**|`envDomainManagement`|`action`, `domains` (array of host:port strings) | CORS/request source validation for browser uploads. No certificate involved. |
106
+
|**Custom Domain (自定义域名)**|`manageGateway(action="bindCustomDomain")`|`domain` (string), `certificateId` (string) | Public HTTPS access with SSL certificate. Requires certId from SSL console. |
Copy file name to clipboardExpand all lines: mcp/src/tools/env.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1483,14 +1483,14 @@ export function registerEnvTools(server: ExtendedMcpServer) {
1483
1483
server.registerTool?.(
1484
1484
"envDomainManagement",
1485
1485
{
1486
-
title: "环境域名管理",
1486
+
title: "环境域名管理(安全域名 / CORS 白名单)",
1487
1487
description:
1488
-
"管理云开发环境的安全域名,支持添加和删除操作。(原工具名:createEnvDomain/deleteEnvDomain,为兼容旧AI规则可继续使用这些名称)当浏览器 Web 应用需要从本地 Vite / dev server 或自定义域名直接访问 CloudBase 资源时,应先用 envQuery(action=domains) 检查当前实际浏览器 origin 对应的 host:port 是否已在白名单中,再按该实际值添加。新增或删除后通常需要继续轮询 envQuery(action=domains) 确认状态收敛;安全域名一般约 10 分钟生效。",
1488
+
"管理云开发环境的安全域名(安全域名 / CORS 白名单),支持添加和删除操作。(原工具名:createEnvDomain/deleteEnvDomain,为兼容旧AI规则可继续使用这些名称)当浏览器 Web 应用需要从本地 Vite / dev server 直接访问 CloudBase 资源时,应先用 envQuery(action=domains) 检查当前实际浏览器 origin 对应的 host:port 是否已在白名单中,再按该实际值添加。新增或删除后通常需要继续轮询 envQuery(action=domains) 确认状态收敛;安全域名一般约 10 分钟生效。⚠️ 重要:此工具仅用于 CORS/请求来源验证,不涉及 SSL 证书。如需绑定自定义域名供公网 HTTPS 访问,请使用 manageGateway(action=\"bindCustomDomain\")。",
0 commit comments