Codex Configuration Guide
Codex can install the CloudBase plugin through the plugin marketplace to get both MCP tool connectivity and AI Skills in one go, or connect manually via MCP configuration. The plugin marketplace approach is recommended.
For example:
- "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 — all operations can be done in Codex using natural language.
Prerequisites
Before configuring, ensure the following conditions are met:
Node.js environment and CloudBase environment ready
Node.js Environment: Make sure Node.js v18.15.0 or later is installed:
node --version
If not installed, download from the Node.js website.
CloudBase Environment: See the guide Create a CloudBase Environment. New users can try it for free.
Method 1: Install via Plugin Marketplace (Recommended)
The plugin marketplace installs both MCP tools and AI Skills simultaneously — one installation provides full capabilities.
Add the CloudBase plugin marketplace and install the plugin via the Codex App graphical interface.
Click the + button in the top-right corner of Codex App.
Select Add Plugin Marketplace from the menu.
Enter the following information in the dialog:
TencentCloudBase/CloudBase-MCPmainOnce added, find the Tencent CloudBase marketplace in the plugin list.
Click the install button next to the cloudbase plugin.
After installation, start a new Codex thread to let the plugin, skills, and MCP tools fully load.
Method 2: Connect via MCP Configuration
If you only need MCP tool connectivity, you can also configure manually:
Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.
Step 1: Install / Configure CloudBase
前置步骤:
npm i @cloudbase/cloudbase-mcp -g根据运行系统在终端中运行指令:
MacOS, Linux, WSL:
codex mcp add cloudbase --env INTEGRATION_IDE=CodeX -- cloudbase-mcpWindows Powershell:
codex mcp add cloudbase --env INTEGRATION_IDE=CodeX -- cmd /c cloudbase-mcpStep 2: Chat with AI
Enter the following in your AI chat in order:
Read https://docs.cloudbase.net/skill.md and tell me what it can doUse CloudBase Skills: 帮我按照 Spec 工作流开发一个 CloudBase 新功能FAQ
Q: MCP connection failed? A: Check if the command executed correctly, restart Codex, and verify your network connection.
Q: Showing 0 tools? A: See the FAQ.
More questions: Full FAQ