Skip to main content

iFlow CLI Configuration Guide

After configuration, you can directly operate CloudBase services in iFlow CLI'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 iFlow CLI 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. Supports local and hosted connection. See connection modes.

Works better with Skills. See how to use.

Step 1: Configure CloudBase MCP

CLI command:

iflow mcp add-json --scope project cloudbase '{"command":"npx","args":["@cloudbase/cloudbase-mcp@latest"],"env":{"INTEGRATION_IDE":"iFlow"}}'

或者将以下配置添加到 .iflow/settings.json:

Or manual configuration:

或者将以下配置添加到 .iflow/settings.json:

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

Step 2: Chat with AI

After configuration, enter the following in your AI chat:

prompt
调用 MCP 工具下载 CloudBase AI 开发规则到当前项目,然后介绍CloudBase MCP 的所有功能
在 Android 应用中使用 CloudBase HTTP API 实现数据查询和更新

Common Questions

Q: MCP connection failed? A: Check that the configuration file format is correct and network connection is normal. You can use iflow mcp list to view installed MCP servers.

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

Q: How do I manage MCP in iFlow CLI? A: Use /mcp list to view installed MCP servers and /mcp online to browse the MCP marketplace.

For more questions, see Full FAQ.

相关资源