Skip to content

Commit 10d58b7

Browse files
authored
fix: change step text (#3090)
1 parent bbc720d commit 10d58b7

2 files changed

Lines changed: 43 additions & 41 deletions

File tree

docs/cn/guides/51-ai-functions/03-mcp-integration.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import TabItem from '@theme/TabItem';
1212
[Databend MCP](https://github.com/databendlabs/mcp-databend) 基于 Model Context Protocol 协议,将 Databend 的数据能力无缝集成到您的 AI 助手工作流中。支持 Claude Code、Codex、Cursor、Claude Desktop、VS Code 等主流 MCP 客户端。
1313

1414
**核心能力:**
15+
1516
- **智能 SQL 生成**:根据业务需求自动生成复杂的 SQL 查询。
1617
- **自动化运维**:直接创建和管理定时数据管道任务。
1718
- **交互式探索**:即时查看数据库 Schema 结构并校验查询语法。
1819
- **ETL 工作流**:流畅执行 COPY、MERGE 和 Stage 文件操作。
1920

20-
例如:*"创建一个定时任务,每分钟从 @my_stage 复制 parquet 文件到 orders 表,并验证任务是否正常运行。"*
21+
例如:_"创建一个定时任务,每分钟从 @my_stage 复制 parquet 文件到 orders 表,并验证任务是否正常运行。"_
2122

2223
## 安装
2324

@@ -26,7 +27,7 @@ import TabItem from '@theme/TabItem';
2627
推荐使用 **Databend Cloud** 以获得开箱即用的体验。
2728

2829
1. 登录 [Databend Cloud](https://app.databend.cn)
29-
2. 点击 **链接(DSN)**
30+
2. 点击 **与 AI 工具连接**
3031
3. 获取常规连接信息(Host, User, Password 等)。
3132
4. 复制完整 DSN,格式如下:
3233
`databend://user:pwd@host:443/database?warehouse=warehouse_name`
@@ -170,33 +171,33 @@ uv tool run mcp-databend
170171

171172
### 数据库操作
172173

173-
| 工具 | 说明 |
174-
|------|------|
175-
| `execute_sql` | 执行 SQL (含超时保护) |
176-
| `show_databases` | 查看所有数据库 |
177-
| `show_tables` | 查看表列表 (支持模糊搜索) |
178-
| `describe_table` | 查看表结构信息 |
174+
| 工具 | 说明 |
175+
| ---------------- | ------------------------- |
176+
| `execute_sql` | 执行 SQL (含超时保护) |
177+
| `show_databases` | 查看所有数据库 |
178+
| `show_tables` | 查看表列表 (支持模糊搜索) |
179+
| `describe_table` | 查看表结构信息 |
179180

180181
### Stage 管理
181182

182-
| 工具 | 说明 |
183-
|------|------|
184-
| `show_stages` | 查看所有 Stage |
185-
| `list_stage_files` | 列出 Stage 文件 |
186-
| `create_stage` | 创建 Stage (支持 Connection) |
183+
| 工具 | 说明 |
184+
| ------------------ | ---------------------------- |
185+
| `show_stages` | 查看所有 Stage |
186+
| `list_stage_files` | 列出 Stage 文件 |
187+
| `create_stage` | 创建 Stage (支持 Connection) |
187188

188189
### 连接管理
189190

190-
| 工具 | 说明 |
191-
|------|------|
191+
| 工具 | 说明 |
192+
| ------------------ | ------------ |
192193
| `show_connections` | 查看可用连接 |
193194

194195
## 参数配置
195196

196-
| 变量 | 说明 | 默认值 |
197-
|------|------|--------|
198-
| `DATABEND_DSN` | 连接字符串 (DSN) | 必填 |
199-
| `SAFE_MODE` | 安全模式 (禁止 DROP/DELETE 等高危操作) | `true` |
200-
| `DATABEND_QUERY_TIMEOUT` | 查询超时 (秒) | `300` |
197+
| 变量 | 说明 | 默认值 |
198+
| ------------------------ | -------------------------------------- | ------ |
199+
| `DATABEND_DSN` | 连接字符串 (DSN) | 必填 |
200+
| `SAFE_MODE` | 安全模式 (禁止 DROP/DELETE 等高危操作) | `true` |
201+
| `DATABEND_QUERY_TIMEOUT` | 查询超时 (秒) | `300` |
201202

202203
更多关于构建对话式 BI 工具的内容,请参阅 [MCP Server 指南](02-mcp.md)

docs/en/guides/51-ai-functions/03-mcp-integration.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import TabItem from '@theme/TabItem';
1212
[Databend MCP](https://github.com/databendlabs/mcp-databend) connects AI assistants to Databend via Model Context Protocol. Works with Claude Code, Codex, Cursor, Claude Desktop, VS Code, and other MCP-compatible clients.
1313

1414
**What you can do:**
15+
1516
- Generate complex SQL queries based on your requirements
16-
- Create and manage scheduled data pipeline tasks
17+
- Create and manage scheduled data pipeline tasks
1718
- Explore database schemas and validate query syntax
1819
- Build ETL workflows with COPY, MERGE, and Stage operations
1920

20-
For example: *"Create a scheduled task that copies parquet files from @my_stage to the orders table every minute, and verify it's running correctly."*
21+
For example: _"Create a scheduled task that copies parquet files from @my_stage to the orders table every minute, and verify it's running correctly."_
2122

2223
## Installation
2324

@@ -26,7 +27,7 @@ For example: *"Create a scheduled task that copies parquet files from @my_stage
2627
We recommend using **Databend Cloud** for the best experience.
2728

2829
1. Log in to [Databend Cloud](https://app.databend.com).
29-
2. Click **Connect** in the navigation bar.
30+
2. Click **Use with AI Tools** in the navigation bar.
3031
3. Select regular connection information (Host, User, Password, etc.).
3132
4. Copy your DSN, which looks like:
3233
`databend://user:pwd@host:443/database?warehouse=warehouse_name`
@@ -170,33 +171,33 @@ uv tool run mcp-databend
170171

171172
### Database Operations
172173

173-
| Tool | Description |
174-
|------|-------------|
175-
| `execute_sql` | Execute SQL queries with timeout protection |
176-
| `show_databases` | List all databases |
177-
| `show_tables` | List tables in a database (with optional filter) |
178-
| `describe_table` | Get table schema information |
174+
| Tool | Description |
175+
| ---------------- | ------------------------------------------------ |
176+
| `execute_sql` | Execute SQL queries with timeout protection |
177+
| `show_databases` | List all databases |
178+
| `show_tables` | List tables in a database (with optional filter) |
179+
| `describe_table` | Get table schema information |
179180

180181
### Stage Management
181182

182-
| Tool | Description |
183-
|------|-------------|
184-
| `show_stages` | List all available stages |
185-
| `list_stage_files` | List files in a specific stage |
186-
| `create_stage` | Create a new stage with connection support |
183+
| Tool | Description |
184+
| ------------------ | ------------------------------------------ |
185+
| `show_stages` | List all available stages |
186+
| `list_stage_files` | List files in a specific stage |
187+
| `create_stage` | Create a new stage with connection support |
187188

188189
### Connection Management
189190

190-
| Tool | Description |
191-
|------|-------------|
191+
| Tool | Description |
192+
| ------------------ | ------------------------------ |
192193
| `show_connections` | List all available connections |
193194

194195
## Configuration
195196

196-
| Variable | Description | Default |
197-
|----------|-------------|---------|
198-
| `DATABEND_DSN` | Connection string | Required |
199-
| `SAFE_MODE` | Block dangerous SQL operations (`DROP`, `DELETE`, etc.) | `true` |
200-
| `DATABEND_QUERY_TIMEOUT` | Query timeout in seconds | `300` |
197+
| Variable | Description | Default |
198+
| ------------------------ | ------------------------------------------------------- | -------- |
199+
| `DATABEND_DSN` | Connection string | Required |
200+
| `SAFE_MODE` | Block dangerous SQL operations (`DROP`, `DELETE`, etc.) | `true` |
201+
| `DATABEND_QUERY_TIMEOUT` | Query timeout in seconds | `300` |
201202

202203
For more details on building conversational BI tools, see [MCP Server Guide](02-mcp.md).

0 commit comments

Comments
 (0)