Skip to content

Commit 01e1301

Browse files
authored
mcp: add chatbi ui (#2650)
1 parent 253595b commit 01e1301

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/en/guides/51-ai-functions/02-mcp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
This tutorial shows you how to build a conversational Business Intelligence tool using mcp-databend and the Agno framework. You'll create a local agent that can answer data questions in natural language.
1515

16+
![Databend MCP ChatBI](@site/static/img/connect/databend-mcp-chatbi.png)
17+
1618
## Step-by-Step Tutorial
1719

1820
### Step 1: Setup Databend Connection
@@ -49,6 +51,9 @@ Now create your ChatBI agent that uses mcp-databend to interact with your databa
4951

5052
Create a file `agent.py`:
5153

54+
<details>
55+
<summary>Click to view agent.py code</summary>
56+
5257
```python
5358
from contextlib import asynccontextmanager
5459
import os
@@ -162,6 +167,8 @@ if __name__ == "__main__":
162167
playground.serve(app="agent:app", host="127.0.0.1", port=7777)
163168
```
164169

170+
</details>
171+
165172
### Step 4: Configure Environment
166173

167174
Set up your API keys and database connection:
426 KB
Loading

0 commit comments

Comments
 (0)