You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-53Lines changed: 81 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# XiYan MCP Server
4
4
5
-
A Model Context Protocol (MCP) server that enables natural language queries to MySQL databases, power by XiYanSQL as text-to-sql technique.
5
+
A Model Context Protocol (MCP) server that enables natural language queries to MySQL databases, power by XiYanSQL(https://github.com/XGenerationLab/XiYan-SQL) as text-to-sql technique.
6
6
7
7
8
8
## Features
@@ -12,74 +12,102 @@ A Model Context Protocol (MCP) server that enables natural language queries to M
12
12
13
13
## Installation
14
14
15
-
Python 3.11+ is required.
15
+
Python 3.11+ is required.
16
+
you can install the server by a pre-release verion
16
17
17
18
```bash
18
-
pip install xiyan-mcp-server
19
+
pip install xiyan_mcp_server-0.1.0-py3-none-any
19
20
```
20
21
21
-
## Configuration
22
-
23
-
Set the following environment variables:
24
-
22
+
After that you can directly run the server by:
25
23
```bash
26
-
YML= # yml config file path
24
+
python -m xiyan_mcp_server
25
+
```
26
+
But it does not provide any functions until you complete following config.
27
+
You will get a yml file. After that you can run the server by:
28
+
```yaml
29
+
env YML=path/to/yml python -m xiyan_mcp_server
27
30
```
28
31
29
-
see config_demo.yml for example
30
-
31
-
## Models
32
-
33
-
Any LLMs are supported as long as they support the `chat` API.
34
-
We recommend using xiyansql-qwencoder-32b (https://github.com/XGenerationLab/XiYanSQL-QwenCoder) for best performance.
35
32
36
-
## Usage
33
+
## Configuration
37
34
38
-
### With Claude Desktop
35
+
You need a yml config file to configure the server.
36
+
a default config file is provided in config_demo.yml which looks like this:
source venv/bin/activate # or `venv\Scripts\activate` on Windows
100
+
## Citation
101
+
If you find our work helpful, feel free to give us a cite.
102
+
```bib
103
+
@article{xiyansql,
104
+
title={A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQL},
105
+
author={Yingqi Gao and Yifu Liu and Xiaoxia Li and Xiaorong Shi and Yin Zhu and Yiming Wang and Shiqi Li and Wei Li and Yuntao Hong and Zhiling Luo and Jinyang Gao and Liyu Mou and Yu Li},
0 commit comments