File tree Expand file tree Collapse file tree 2 files changed +45
-6
lines changed
Expand file tree Collapse file tree 2 files changed +45
-6
lines changed Original file line number Diff line number Diff line change 1+ # MCP Connectivity Overview
2+
3+ This directory provides examples and configuration files to help you connect MCP servers with Datu.
4+ Datu uses the [ mcp-use] ( https://github.com/mcp-use/mcp-use ) package to implement MCP clients and manage connectivity.
5+
6+
7+ ## Purpose
8+
9+ With Datu, you can connect to your MCP servers and use their tools through the Datu AI Analyst.
10+
11+ ## Enabling MCP Servers
12+
13+ To enable MCP connectivity, set the following environment variable (see also [ configurations.md] ( ../configurations.md ) ):
14+
15+ ``` sh
16+ export DATU_ENABLE_MCP=true
17+ ```
18+
19+ Alternatively, add it to your .env file:
20+
21+ ``` sh
22+ DATU_ENABLE_MCP=true
23+ ```
24+
25+
26+ ### Connecting MCP Servers
27+
28+ MCP servers are defined in a JSON configuration file (e.g. mcp_config.json).
29+ Each server entry specifies the command, arguments, and environment needed to start it.
30+
31+ ** Structure of mcp_config.json**
32+
33+ ``` sh
34+ {
35+ " mcpServers" : {
36+ " sql_generator" : {
37+ " command" : " python" ,
38+ " args" : [" -m" , " datu.mcp.tools.sql_generator" ],
39+ " env" : { " PYTHONPATH" : " ." }
40+ }
41+ }
42+ }
43+ ` ` `
Original file line number Diff line number Diff line change 5656 - user-guide/configurations.md
5757 - Deploy :
5858 - Container service : user-guide/deploy/deploy_as_container_service.md
59- - MCP Connectivity :
60- - user-guide/MCP Connectivity/mcp_connectivity.md
61- - Contribute ❤️ : https://github.com/Datuanalytics/datu-core/blob/main/CONTRIBUTING.md
62-
63-
64-
59+ - MCP :
60+ - user-guide/MCP/mcp_connectivity.md
6561 - Architecture :
6662 - Overview : architecture/README.md
6763 - Contribute ❤️ : https://github.com/Datuanalytics/datu-core/blob/main/CONTRIBUTING.md
You can’t perform that action at this time.
0 commit comments