Skip to main content

CodeBuddy Setup Guide

After setup, you can operate CloudBase services directly from CodeBuddy’s AI chat.

Examples:

  • "Create a users collection" - AI creates database collections automatically
  • "Deploy this function" - AI uploads and configures cloud functions
  • "Deploy the frontend to CDN" - AI uploads files and configures hosting

No need to switch to the Cloud console — you can do everything in CodeBuddy 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.


Client

Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.

Step 1: Install / Configure CloudBase

Use project template (recommended) - Template includes MCP configuration and AI rulesView templates
Recommended: CodeBuddy IDE already includes built-in CloudBase MCP integration. Prefer the integrated setup flow first.View BaaS integration docs. If you still need manual MCP configuration, use the setup below.

在 MCP 配置中增加如下配置

json
1{
2 "mcpServers": {
3 "cloudbase": {
4 "command": "npx",
5 "args": ["@cloudbase/cloudbase-mcp@latest"],
6 "env": {
7 "INTEGRATION_IDE": "CodeBuddyManual"
8 }
9 }
10 }
11}

Step 2: Chat with AI

Enter the following in your AI chat in order:

prompt
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -y
Use CloudBase Skills: 帮我创建一个使用 CloudBase 关系型数据库的 Web 应用

CodeBuddy IDE Edition

If you are using CodeBuddy IDE, you can authorize and manage CloudBase via the Settings/Integrations page ("Tencent CloudBase") — no manual MCP config needed.

CodeBuddy Extension Edition

  1. Click the MCP button in the top-right corner of CodeBuddy
  2. Search for CloudBase in the MCP marketplace
  3. Click Install

FAQ

Q: MCP connection failed?

A: Check the MCP configuration format, restart CodeBuddy, and confirm your network is working.

Q: Tool count shows 0?

A: See the FAQ.

More: FAQ

相关资源