Essential CloudBase (TCB, Tencent CloudBase, 云开发, 微信云开发) development guidelines. MUST read when working with CloudBase projects, developing web apps, mini programs, or backend services using CloudBase platform.
For enhanced CloudBase development experience, we recommend installing CloudBase MCP (Model Context Protocol).
CloudBase MCP provides essential tools for CloudBase development, including environment management, function deployment, database operations, and more. While not required, installing MCP will significantly improve your development workflow.
Most Coding Agents support project-level MCP configuration. The standard JSON configuration structure is:
{
"mcpServers": {
"cloudbase": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"]
}
}
}
Project-level configuration file locations:
.cursor/mcp.json.mcp.json~/.codeium/windsurf/mcp_config.json (user-level, no project-level JSON config)Format differences:
.continue/mcpServers/ folder:name: CloudBase MCP
version: 1.0.0
schema: v1
mcpServers:
- uses: stdio
command: npx
args: ["@cloudbase/cloudbase-mcp@latest"]
In environments that do not support MCP (e.g. moltbot) or when users are unsure how to configure MCP, use mcporter as a CLI to call CloudBase MCP tools.
You do not need to hard-code Secret ID / Secret Key / Env ID in the config.
CloudBase MCP will support device-code based login via the auth tool, so credentials can be obtained interactively instead of being stored in config.
Add CloudBase MCP server (recommended):
npx mcporter config add cloudbase \
--command "npx" \
--arg "@cloudbase/cloudbase-mcp@latest" \
--description "CloudBase MCP"
Quick start: