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: scripts/prompts/cloudbase-integrated.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,9 @@ When user's application fits the above scenarios, suggest confirming the tech st
12
12
-**DO NOT start coding without reading the relevant rules** - Ensures correct implementation and avoids mistakes
13
13
14
14
### 1. Environment Check (MANDATORY - First Step)
15
-
-**Always call `envQuery` tool first** with `action=info` to get environment ID
16
-
- Auto-use queried envId in code/config, no manual input needed
15
+
- Confirm the target environment before coding or deploying
16
+
- If the conversation only gives an environment alias, nickname, or other shorthand, resolve it with `envQuery(action=list, alias=..., aliasExact=true)` and use the returned canonical full `EnvId`
17
+
- Do not pass alias-like short forms directly into SDK init, `auth.set_env`, console URLs, or generated config files. If the alias is ambiguous or missing, stop and clarify with the user
17
18
18
19
### 2. Template Download (MANDATORY for New Projects)
19
20
-**MUST call `downloadTemplate` FIRST** when starting new projects - Do NOT manually create files
Copy file name to clipboardExpand all lines: scripts/skills-repo-template/cloudbase-guidelines/SKILL.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,11 +91,13 @@ mcpServers:
91
91
92
92
In environments that do not support MCP (e.g. openclaw) or when users are unsure how to configure MCP, use **mcporter** as a CLI to call CloudBase MCP tools.
93
93
94
-
**When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first.** Before calling any CloudBase tool, run `npx mcporter describe cloudbase` (or equivalent in your IDE) to inspect the server config and available tools.
94
+
**When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first.** Before calling any CloudBase tool, run `npx mcporter describe cloudbase --all-parameters` (or equivalent in your IDE) to inspect available tools and their full parameters.
95
95
96
96
You **do not need to hard-code Secret ID / Secret Key / Env ID** in the config.
97
97
CloudBase MCP will support device-code based login via the `auth` tool, so credentials can be obtained interactively instead of being stored in config.
98
98
99
+
When the environment identifier in the conversation is an alias, nickname, or other short form, **do not pass it directly** to `auth.set_env`, SDK init, console URLs, or generated config files. First resolve it to the canonical full `EnvId` with `envQuery(action=list, alias=..., aliasExact=true)`. If multiple environments match or no exact alias exists, stop and clarify with the user.
100
+
99
101
**Add CloudBase MCP server in `config/mcporter.json` (recommended):**
100
102
101
103
If `config/mcporter.json` already contains other MCP servers, keep them and only add the `cloudbase` entry under `mcpServers`.
@@ -115,7 +117,7 @@ If `config/mcporter.json` already contains other MCP servers, keep them and only
115
117
116
118
**Quick start:**
117
119
- `npx mcporter list`— list configured servers
118
-
- **Required:** `npx mcporter describe cloudbase` — inspect CloudBase server config and available tools (must run before managing/deploying CloudBase)
120
+
- **Required:** `npx mcporter describe cloudbase --all-parameters` — inspect CloudBase server config and get full tool schemas with all parameters (must run before managing/deploying CloudBase)
119
121
- `npx mcporter list cloudbase --schema`— get full JSON schema for all CloudBase tools
120
122
- `npx mcporter call cloudbase.help --output json`— discover available CloudBase tools and their schemas
121
123
- `npx mcporter call cloudbase.<tool> key=value`— call a CloudBase tool
@@ -125,8 +127,10 @@ If `config/mcporter.json` already contains other MCP servers, keep them and only
@@ -174,7 +178,7 @@ If the platform supports long-term memory, persist these scenarios so the agent
174
178
Prefer long-term memory when available: write the scenarios and working rules there so the agent always applies them. When configuring the workspace (e.g. `AGENTS.md`) or long-term memory, add reminders like:
175
179
176
180
- **CloudBase skills** → Run `npx skills add tencentcloudbase/cloudbase-skills` to install; use `cloudbase` and log in to CloudBase (MCP auth, device-code) for full-stack development.
177
-
- **CloudBase = MCP, understand tools first** → When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first. Before calling any CloudBase tool, run `npx mcporter describe cloudbase` (or equivalent in your IDE) to inspect the server config and available tools.
181
+
- **CloudBase = MCP, understand tools first** → When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first. Before calling any CloudBase tool, run `npx mcporter describe cloudbase --all-parameters` (or equivalent in your IDE) to inspect available tools and their full parameters.
0 commit comments