CodeBuddy Code Setup Guide
After setup, you can operate CloudBase services directly from CodeBuddy Code’s CLI chat.
Examples:
- "Build a WeChat Mini Program ordering system with CloudBase" — AI scaffolds pages, creates the cloud database, writes cloud functions, and guides preview
- "Build a reservation management system that lets users place orders and admins update status" — AI models it with CloudBase PostgreSQL, configures permissions, and wires up frontend and backend
- "Add phone-number login to a Web app" — AI enables the auth method and integrates the CloudBase SDK
No need to switch to the Cloud console — you can do everything from the CLI with natural language.
Prerequisites
Before you start, make sure you have:
Node.js and a CloudBase environment ready
Node.js: Install Node.js v18.15.0 or later:
node --version
If you don’t have it installed, download it from the Node.js website.
CloudBase environment: See Create a CloudBase environment. New users can start for free.
Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.
Step 1: Install / Configure CloudBase
CLI command:
codebuddy mcp add --scope project cloudbase --env INTEGRATION_IDE=CodeBuddyCode -- npx @cloudbase/cloudbase-mcp@latest或者将以下配置添加到 .mcp.json:
Or manual configuration:
或者将以下配置添加到 .mcp.json:
1{2 "mcpServers": {3 "cloudbase": {4 "type": "stdio",5 "command": "npx",6 "args": ["@cloudbase/cloudbase-mcp@latest"],7 "env": {8 "INTEGRATION_IDE": "CodeBuddyCode"9 }10 }11 }12}Step 2: Chat with AI
Enter the following in your AI chat in order:
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -yUse CloudBase Skills: 创建一个使用 CloudBase AI 模型 的小程序应用,支持流式响应FAQ
Q: MCP connection failed?
A: Check your .mcp.json format, ensure npx is available, and restart CodeBuddy Code.
Q: Tool count shows 0?
A: See the FAQ.
More: FAQ