Skip to main content

CodeBuddy Configuration Guide

After configuration, you can directly operate CloudBase services in CodeBuddy's AI conversations.

For example:

  • "Create user table" - AI automatically creates database collection
  • "Deploy this function" - AI automatically uploads and configures cloud function
  • "Deploy frontend to CDN" - AI automatically uploads files and configures hosting

No need to switch to cloud console, all operations can be completed in CodeBuddy using natural language.

Prerequisites

Before starting configuration, please ensure the following conditions are met:

Node.js environment and CloudBase environment are ready

Node.js Environment: Ensure Node.js v18.15.0 or higher is installed:

node --version

If not installed, please download and install from Node.js official website.

CloudBase Environment: Please refer to the documentation Create CloudBase Environment. New users can sign up for free.


Client

Configure your MCP client to connect with your CloudBase environment

Step 1: Configure CloudBase MCP

Use project template (recommended) - Template includes MCP configuration and AI rulesView templates
推荐:CodeBuddy IDE 已内置集成 CloudBase MCP,建议优先使用配置集成方式。查看 BaaS 集成文档。如需手动配置 MCP,请参考下方配置。

Alternatively, add this configuration to

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

After configuration, enter the following in your AI chat:

prompt
检查 CloudBase MCP 工具是否可用, 下载 CloudBase AI 开发规则到当前项目

CodeBuddy IDE Edition

CodeBuddy IDE users can directly click the "Tencent CloudBase" management button in Settings/Integrations and authorize, no need to manually configure MCP.

CodeBuddy Plugin Edition

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

Common Questions

Q: MCP connection failed? A: Check if configuration file format is correct, restart CodeBuddy, confirm network connection is normal.

Q: Tool count shows 0? A: Please refer to FAQ.

More questions please check: Complete FAQ

相关资源